Notifications
Clear all

Original Prusa SL1S Web Hooks?  

  RSS
ginger VS pie
(@ginger-vs-pie)
New Member
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 ???

This topic was modified 6 days ago by ginger VS pie
Posted : 14/10/2021 2:00 am
gnat
 gnat
(@gnat)
Noble Member

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.

MMU tips and troubleshooting
Stop SL1 tank leaks with a simple o-ring...
Posted : 14/10/2021 2:11 pm
ejberg
(@ejberg)
Trusted Member

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

 

Posted : 14/10/2021 3:12 pm
gnat liked
gnat
 gnat
(@gnat)
Noble Member
Posted by: @ejberg

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.

MMU tips and troubleshooting
Stop SL1 tank leaks with a simple o-ring...
Posted : 14/10/2021 3:33 pm
Share: