add pause and resume to api

This commit is contained in:
jbruce12000
2024-06-30 11:44:45 -04:00
parent 8c9d3881dc
commit df7ee9e234
4 changed files with 30 additions and 7 deletions
+8
View File
@@ -18,3 +18,11 @@ post a memo
stats for currently running schedule
curl -X GET http://0.0.0.0:8081/api/stats
pause a run (maintain current temperature until resume)
curl -d '{"cmd":"pause"}' -H "Content-Type: application/json" -X POST http://0.0.0.0:8081/api
resume a paused run
curl -d '{"cmd":"resume"}' -H "Content-Type: application/json" -X POST http://0.0.0.0:8081/api