schedule some graphs

pull/123/head
jbruce 2022-11-04 16:50:51 -04:00
rodzic fc8cfb9c40
commit 01abf01431
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -50,6 +50,15 @@ Stop any running firing at 3pm tomorrow:
curl -d '{"cmd":"stop"}' -H "Content-Type: application/json" -X POST http://0.0.0.0:8081/api
END
Start a 15 hour long glaze firing in 5 minutes and schedule for graphs from [kiln-stats](https://github.com/jbruce12000/kiln-stats) to be created on the raspberry-pi afterward and make the graphs available via a web server running on port 8000. You can do all kinds of interesting things with this. You could create a single job for the webserver and a job per hour to update the graphs. This way you can see detailed graphs of PID params and how the system is responding to your PID parameters.
at now + 5 minutes <<END
curl -d '{"cmd":"run", "profile":"cone-6-long-glaze"}' -H "Content-Type: application/json" -X POST http://0.0.0.0:8081/api
END
at now + 16 hours <<END
source ~/kiln-stats/venv/bin/activate; cd ~/kiln-stats/scripts/; cat /var/log/daemon.log |./log-splitter.pl |grep ^1|./go; cd ~/kiln-stats/output; python3 -m http.server
END
List scheduled jobs...
atq