Created
November 22, 2018 14:41
-
-
Save mrprompt/d990b150ee845daed253fc80e7cf30e0 to your computer and use it in GitHub Desktop.
Start meteotux_pi in background
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
BASE_DIR="/home/pi/Captures" | |
INTERVAL=60 | |
EXPOSURE=6000 | |
TIME="21:30-8:00" | |
DATE_END=`date -d "1 day" '+%Y%m%d'` | |
DATE_START=`date +%Y%m%d` | |
CAPTURE_DIR="$DATE_START-$DATE_END" | |
cd $BASE_DIR | |
mkdir -p $CAPTURE_DIR; cd $_ | |
nohup meteotux_pi -d $INTERVAL -e $EXPOSURE -t $TIME > /dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment