Merge pull request #96 from rtanaka/master

default campercent to 90
This commit is contained in:
cimryan
2018-11-05 22:47:54 -08:00
committed by GitHub
2 changed files with 13 additions and 6 deletions

View File

@@ -69,13 +69,19 @@ Follow the instructions corresponding to the technology you'd like to use to hos
* SFTP/rsync: [Instructions](doc/SetupRSync.md)
* **Experimental:** Google Drive, Amazon S3, DropBox, Microsoft OneDrive: [Instructions](doc/SetupRClone.md)
### Set up the USB storage functionality
1. Indicate how much, as a percentage, of the drive you want to allocate to recording dashcam footage by running this command:
### Optional: Allocate SD Card Storage
Indicate how much, as a percentage, of the drive you want to allocate to recording dashcam footage by running this command:
```
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.
1. If you'd like to receive a text message when your Pi finishes archiving clips follow these [Instructions](doc/ConfigureNotificationsForArchive.md).
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 `campercent`, the script will allocate 90% of the total space to the dashcam by default.
### 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:
```
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
CONFIGURE_ARCHIVING=${CONFIGURE_ARCHIVING:-true}
UPGRADE_PACKAGES=${UPGRADE_PACKAGES:-true}
campercent=${campercent:-90}
function setup_progress () {
local setup_logfile=/boot/teslausb-headless-setup.log