Benachrichtigungen
Alles löschen

[Gelöst] Prusa Link - API - preheat Prusa Mini+  

  RSS
Kousi
(@kousi)
Active Member
Prusa Link - API - preheat Prusa Mini+

I’m able to pull the printer status and job status using API. Is there an API to set the tool and bed temp? Or, an API to call a specific gcode file to do it?

Thanks!

 

Best Answer by _KaszpiR_:

Not sure about direct preheat but surely there is an API endpoint when requesting to print given gcode that resides on the pendrive. You can reverse engineer it what chrome and network activity under F12

Veröffentlicht : 04/11/2023 9:46 pm
_KaszpiR_
(@_kaszpir_)
Honorable Member
RE:

Not sure about direct preheat but surely there is an API endpoint when requesting to print given gcode that resides on the pendrive. You can reverse engineer it what chrome and network activity under F12

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

Veröffentlicht : 05/11/2023 4:56 pm
Kousi
(@kousi)
Active Member
Themenstarter answered:
RE: Prusa Link - API - preheat Prusa Mini+

 

Posted by: @_kaszpir_

Not sure about direct preheat but surely there is an API endpoint when requesting to print given gcode that resides on the pendrive. You can reverse engineer it what chrome and network activity under F12

Thanks, will take a look.

Veröffentlicht : 05/11/2023 5:38 pm
Kousi
(@kousi)
Active Member
Themenstarter answered:
RE: Prusa Link - API - preheat Prusa Mini+

it worked. Placed a Gcode file with just preheat command and called the API print the file and it preheats the printer.

Veröffentlicht : 05/11/2023 11:20 pm
_KaszpiR_ gefällt das
ekainz
(@ekainz)
Mitglied
What endpoint did you end up calling?

Sending a POST to

 http://192.168.44.50/api/v1/files/usb/PREHEA~1.GCO 

as I see in under the Network tab in Inspect doesn't seem to do anything and it doesn't seem to be referenced in the API Spec.

Looking online this Python library seems to be sending the payload

{'command': 'start'}

but that doesn't seem to work either.

Diese r Beitrag wurde geändert Vor 8 months 5 mal von ekainz
Veröffentlicht : 03/03/2024 6:48 am
ekainz
(@ekainz)
Mitglied
RE: Prusa Link - API - preheat Prusa Mini+

for any future people stumbling on this thread, my preheat.gcode is very simple:

M140 S100

 

meaning "preheat the bed to 100c" as I am just trying to preheat my enclosure. It doesn't seem to matter that there no other commands, the printer just intermediately says its "finished" and preheats until the 30 minute preheat timer expires.

Veröffentlicht : 03/03/2024 7:32 am
Teilen: