Notifications
Clear all

Send pause and unpause commands through api?  

  RSS
Marcus Makes
(@marcus-makes)
New Member
Send pause and unpause commands through api?

Im trying to code a python script that connects to prusalink through its api and sends pause and unpause commands and im wondering if there is even way to do that and how it might be done?

Posted : 19/01/2024 12:39 am
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE:

do you mean PrusaLink  (send directly to printer API) or PrusaConnect (send to the connect.prusa3d.com and the it will translate it to a command to send it back to the printer)?

 

For the first one see HomeAssistant lib https://github.com/home-assistant-libs/pyprusalink/blob/main/pyprusalink/__init__.py  and https://github.com/home-assistant/core/blob/dev/homeassistant/components/prusalink/button.py#L50
or just connect locally over the browser and see what it sends

for the second one I  haven't tried to find it yet, probably also doable but may need more things related to authorization.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 19/01/2024 7:56 am
Tojik liked
Share: