Compare commits

..
2 Commits
Author SHA1 Message Date
ftc 677119f5b9 Added actual reboot 2019-08-31 18:08:33 +00:00
ftc 5057596cb1 Added script to run them all 2019-08-31 18:06:41 +00:00
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -25,3 +25,4 @@ while True:
except CalledProcessError as e: except CalledProcessError as e:
log.error(e.output.decode('ascii', 'ignore')) log.error(e.output.decode('ascii', 'ignore'))
log.error("Will reboot now") log.error("Will reboot now")
output = subprocess.check_output(['shutdown', '-r', 'now'], stderr=subprocess.STDOUT)
Executable
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
nohup bash -c "cd ~/rpi_dht_modbus; source ./venv/bin/activate; ./read.py" &
nohup bash -c "cd ~/rpi_weather; source ./venv/bin/activate; ./monitor_network.py" &