Commit Graph

1 Commits (f972f74b87045c4a7269774b73579fcddb7e3c32)

Author SHA1 Message Date
Robert von Könemann c76e845056 This commit adds support for Moonraker.
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.

Signed-off-by: Robert von Könemann <robert@vonkoenemann.de>
2022-02-18 11:10:02 +01:00