- adding a smoker service that restarts a specific schedule if the power goes out

pull/12/head
Jason Bruce 2020-03-18 04:31:37 -09:00
rodzic 547577b896
commit 217482b10c
1 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,10 @@
[Unit]
Description=kiln-controller
[Service]
ExecStart=/home/pi/kiln-controller/venv/bin/python /home/pi/kiln-controller/kiln-controller.py
ExecStartPost=/bin/sleep 5
ExecStartPost=curl -d '{"cmd":"run", "profile":"pork-butt","startat":10}' -H "Content-Type: application/json" -X POST http://0.0.0.0:8081/api
[Install]
WantedBy=multi-user.target