From 4991d2afa4de788656e1d52b2864380df8e9ba96 Mon Sep 17 00:00:00 2001 From: Ray Tanaka Date: Mon, 5 Nov 2018 21:57:12 -0800 Subject: [PATCH] - defaulting campercent to 90 per our discussion. - updating docs to reflect new campercent default. --- README.md | 12 ++++++++---- setup/pi/setup-teslausb | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8923f85..32acc69 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,17 @@ 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= ``` - 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 this, 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 diff --git a/setup/pi/setup-teslausb b/setup/pi/setup-teslausb index 7fae377..28ad24c 100644 --- a/setup/pi/setup-teslausb +++ b/setup/pi/setup-teslausb @@ -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