Original Prusa SL1S Web Hooks?
Any ideas how I can blink a light, based on print job start, failing, or finishing on the SL1S... I am doing this with octopi -> webhooks plugin -> Arduino -> to LED light tower ... successfully on the Prusa i3 - but how to do it with Prusa SL1S ???
I know they have greatly improved the web UI, but I haven't heard anything about an API (I haven't looked closely though). You could look into the firmware code to see what is there (and extend it if you are so inclined/capable). A REST API would be a nice thing to have though.
If there isn't an API and the UI has the information you are looking for, you could always write a scrape tool to hit the UI periodically, look for the desired information, and then act on it.
It looks like there is something, but I have only scratched the surface a bit (and I don't know much about what I am seeing). Have a look at this file, and then maybe the rest of the "remote-api" repository:
https://gitlab.com/prusa3d/sl1/remote-api/-/blob/master/prusa_connect/prusa/connect/sl1/states.py
It looks like there is something, but I have only scratched the surface a bit (and I don't know much about what I am seeing). Have a look at this file, and then maybe the rest of the "remote-api" repository:
https://gitlab.com/prusa3d/sl1/remote-api/-/blob/master/prusa_connect/prusa/connect/sl1/states.py
Oh. Nice find. They are being really good and apparently using the OpenAPI standard so the entire API is documented here: https://github.com/prusa3d/Prusa-Link-Web/blob/master/spec/openapi.yaml
For example it appears that a GET request for /api/job would return information about the current job including it's progress and state.