Arduino script updates

This commit is contained in:
2019-08-29 22:19:32 -04:00
parent 5a0e1b043f
commit fa9dd15525
2 changed files with 27 additions and 19 deletions

View File

@@ -3,9 +3,9 @@ weather:
arduino-cli compile -b arduino:avr:uno Weather.ino -o bin/Weather
install:
sudo service weather stop
kubectl scale --replicas=0 --namespace=home-monitor deployment/weather-serial-reader
arduino-cli upload -b arduino:avr:uno -p /dev/ttyACM0 -i bin/Weather
sudo service weather start
kubectl scale --replicas=1 --namespace=home-monitor deployment/weather-serial-reader
clean:
rm -rf bin/