Skip to content

Commit

Permalink
add ability to change serial options between restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
stewartoallen committed Dec 26, 2019
1 parent 2a8ffaf commit 3f57049
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion start-gridbot.sh
Expand Up @@ -4,10 +4,12 @@ export HOME=/home/pi
export ROOT=${HOME}/grid-bot
export NODE=${ROOT}/node/bin/node
export BAUD=250000
export OPTS='--web --listen --baud=${BAUD} --filedir=${ROOT}/uploads'

cd ${HOME}/grid-host
while /bin/true; do
[ -f etc/serial.conf ] && source etc/serial.conf
echo "--- starting --- $(date)"
${NODE} src/serial.js --baud=${BAUD} --web --listen --filedir=${ROOT}/uploads
eval "${NODE} src/serial.js ${OPTS}"
echo "--- exited ---"
done

0 comments on commit 3f57049

Please sign in to comment.