Notifications
Clear all

Controlling MK4 locally  

  RSS
dddev
(@dddev)
Member
Controlling MK4 locally

Hi,

I am looking for a way to control my MK4 over my local network - so not using Prusa Connect. Basically all I want is create a button in my HomeAssistant setup which pre-heats the bed & nozzle. As this is already possible through Prusa Connect, this should not be too difficult, at least that is what I thought.

I went through the Github repos, but I have yet to discover a way to do this. Running a local version of Prusa Link Web offers some endpoints that work (like `/api/version`), but the ones I need (like `/api/printer/bed`) are deprecated.

It should be possible to run a local instance of Prusa Link, but the readme specifically mentions only supporting 8-bit printers. The readme might be outdated, but even if it is not, I prefer not to hook up an RPi just to be able to run a very simple command.

At this point, I am a little bit lost. I checked the MK4 firmware repo, and it seems to use a bundled version of Prusa Link Web ( https://github.com/prusa3d/Prusa-Firmware-Buddy/tree/master/src/resources/web), which in its turn uses the Mini (?) config. As far as I can tell, the Mini also uses the newer version of Prusa Link Web, with the necessary endpoints being deprecated.

So it seems like there are three options:

  1. Prusa Connect needs to be changed (perhaps a public API) which allows me to send commands to Connect, which in its turn communicates with the printer (not ideal, as this requires an internet connection)
  2. The new version of Prusa Link Web needs to reimplement the deprecated endpoints.
  3. I overlooked something and it is already possible.

Please let me know how to tackle this problem. Thanks in advance!

Posted : 06/02/2024 10:56 am
fabnavigator
(@fabnavigator)
Estimable Member
RE:

I've only ever printed using OctoPrint. Three years with my MK3S, and now with my MK4. I highly recommend it. I run it in a docker container on a RPi4 but there are other ways to run it. The lead developer is very dedicated to the project.

If you are willing to go down that road you can do what you want to do. Here is the link to their REST API documentation:

https://docs.octoprint.org/en/master/api/index.html

Posted : 09/02/2024 4:30 pm
Allen8355
(@allen8355)
Estimable Member
RE: Controlling MK4 locally

 

Posted by: @dddev

It should be possible to run a local instance of Prusa Link, but the readme specifically mentions only supporting 8-bit printers.

It runs on the MK4. Just put the printer IP address in your browser.

Posted : 19/07/2024 1:48 am
Share: