You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on your documentation under the headline "Printer instance" it says to create the printer-object by: printer = Printer(const.PrinterType.I3MK3, SN, SERVER, TOKEN)
This throws the following error: init
if max_retries > 1:
TypeError: '>' not supported between instances of 'str' and 'int'
It seems the constructor doesn't require the server address at all. With the code in your documentation, the SERVER address is written to the token variable and the TOKEN is written to max_retries, which is a string but should be an integer for the if statement.
Besides, I don't see, what the FINGERPRINT is used for. I assume, only the TOKEN is required.
.from_config() doesn't seem to work for me and I couldn't find it in the source.
Johannes
The text was updated successfully, but these errors were encountered:
I installed a Pi Zero in my printer and I tested Octoprint and PrusaLink. PrusaLink is not supporting the pi camera and Octoprint is aparrently to demanding on the limited resources. So I wrote a python script, which takes a picture every minute and saves it to my NAS, but only, while the printer is actually printing. So I get the printer state by using the API you provide here. Thank's alot for the code!
Hey,
on your documentation under the headline "Printer instance" it says to create the printer-object by: printer = Printer(const.PrinterType.I3MK3, SN, SERVER, TOKEN)
This throws the following error:
init
if max_retries > 1:
TypeError: '>' not supported between instances of 'str' and 'int'
It seems the constructor doesn't require the server address at all. With the code in your documentation, the SERVER address is written to the token variable and the TOKEN is written to max_retries, which is a string but should be an integer for the if statement.
Besides, I don't see, what the FINGERPRINT is used for. I assume, only the TOKEN is required.
.from_config() doesn't seem to work for me and I couldn't find it in the source.
Johannes
The text was updated successfully, but these errors were encountered: