- defaulting campercent to 90 per our discussion.

- updating docs to reflect new campercent default.
This commit is contained in:
Ray Tanaka
2018-11-05 21:57:12 -08:00
parent 12b1963ee3
commit 4991d2afa4
2 changed files with 9 additions and 4 deletions

View File

@@ -69,13 +69,17 @@ Follow the instructions corresponding to the technology you'd like to use to hos
* SFTP/rsync: [Instructions](doc/SetupRSync.md) * SFTP/rsync: [Instructions](doc/SetupRSync.md)
* **Experimental:** Google Drive, Amazon S3, DropBox, Microsoft OneDrive: [Instructions](doc/SetupRClone.md) * **Experimental:** Google Drive, Amazon S3, DropBox, Microsoft OneDrive: [Instructions](doc/SetupRClone.md)
### Set up the USB storage functionality ### Optional: Allocate SD Card Storage
1. Indicate how much, as a percentage, of the drive you want to allocate to recording dashcam footage by running this command: Indicate how much, as a percentage, of the drive you want to allocate to recording dashcam footage by running this command:
``` ```
export campercent=<number> export campercent=<number>
``` ```
For example, using `export campercent=100` would allocate 100% of the space to recording footage from your car, and would not create a separate music partition. `export campercent=50` would allocate half of the space for a dashcam footage drive and allocates the other half to for a music storage drive. For example, using `export campercent=100` would allocate 100% of the space to recording footage from your car, and would not create a separate music partition. `export campercent=50` would allocate half of the space for a dashcam footage drive and allocates the other half to for a music storage drive. If you don't set this, the script will allocate 90% of the total space to the dashcam by default.
1. If you'd like to receive a text message when your Pi finishes archiving clips follow these [Instructions](doc/ConfigureNotificationsForArchive.md).
### Optional: Configure push notification via Pushover
If you'd like to receive a text message when your Pi finishes archiving clips follow these [Instructions](doc/ConfigureNotificationsForArchive.md).
### Set up the USB storage functionality
1. Run these commands: 1. Run these commands:
``` ```
wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/pi/setup-teslausb wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/pi/setup-teslausb

View File

@@ -6,6 +6,7 @@ HEADLESS_SETUP=${HEADLESS_SETUP:-false}
USE_LED_FOR_SETUP_PROGRESS=true USE_LED_FOR_SETUP_PROGRESS=true
CONFIGURE_ARCHIVING=${CONFIGURE_ARCHIVING:-true} CONFIGURE_ARCHIVING=${CONFIGURE_ARCHIVING:-true}
UPGRADE_PACKAGES=${UPGRADE_PACKAGES:-true} UPGRADE_PACKAGES=${UPGRADE_PACKAGES:-true}
campercent=${campercent:-90}
function setup_progress () { function setup_progress () {
local setup_logfile=/boot/teslausb-headless-setup.log local setup_logfile=/boot/teslausb-headless-setup.log