Notifications
Clear all

PrusaLink "read API"  

  RSS
Tomáš Nosek
(@tomas-nosek)
Member
PrusaLink "read API"

Hello, I would ask to if there is something like "simple JSON read API" as was in Prusa Connect Local on Prusa Mini FW. I want to read data from PrusaLink (connected to MK3S+) to HomeAssistant and do some automatizations based on smart plugs (in which are Prusa Link and MK3S+ connected) and data from PrusaLink (status, temperatures, printing time etc..).

On PrusaMini there was (supposedly; I don't have an personall expierence with this) URL ("/api/telemetry") which returned JSON dict like this:

{"temp_nozzle":214,"temp_bed":60,"material":"PLA","pos_z_mm":4.44,"printing_speed":100,"flow_factor":95,"progress":95,"print_dur":" 59m 50s","time_est":"120","project_name":"myfile.gcode"}

Is there something similar in PrusaLink? URL /api/telemetry isn't working...

Thank you very much!

Opublikowany : 05/09/2022 3:40 pm
Tojik
(@tojik)
Member Moderator
RE: PrusaLink "read API"

Hi, the API spec should already be public, together with the web source code. https://github.com/prusa3d/Prusa-Link-Web/tree/master/spec
Be careful with the frequence with which you poll the data tho, you will impact the print performance on the zero 1 - opening the local web interface makes it kinda chug too.

Opublikowany : 05/09/2022 5:48 pm
Tomáš Nosek polubić
Tomáš Nosek
(@tomas-nosek)
Member
Topic starter answered:
RE: PrusaLink "read API"

Thank you very much for your reply. I run PrusaLink on RPi4 with 4 GB of RAM. I am planning to pool data about once by 30 seconds. I think this combination should work (or i'm wrong?).

Thynk you!

Opublikowany : 05/09/2022 7:25 pm
Tojik
(@tojik)
Member Moderator
RE: PrusaLink "read API"

That's more than fine 😅 I was thinking more about sub second intervals.

Opublikowany : 05/09/2022 7:37 pm
Tomáš Nosek polubić
Share: