printer-monitor icon indicating copy to clipboard operation
printer-monitor copied to clipboard

This commit adds support for Moonraker.

Open vKnmnn opened this issue 3 years ago • 1 comments

I copied the OctoPrint.cpp and .h and changed the API calls and getters and renamed all occurences of OctoPrintClient to MoonrakerClient. I then added two more API-call that were needed. (line 210 to 241) This one of them requires the filename property to be set first. As we’re then making a request to Moonraker with said filename as a parameter and that filename is just a file on a unix host, i needed to add urlencoding. This is a method of the MoonrakerClient class. (line 445++)

I also removed trailing whitespaces and fixed indentation to two spaces in the new files.

Settings.h a new comment, telling us how to enable Moonraker support.

printermonitor.ino uses the new define from settings.h to enable moonraker. I also fixed the creation of Timestamps here.

vKnmnn avatar Feb 18 '22 10:02 vKnmnn

I don't suppose there are compiled binary's for the mainsail version so I can do a simple upgrade?

Ga1j1n avatar Apr 01 '23 11:04 Ga1j1n