Closed redphx closed 1 year ago
What do you think about renaming niimbotpacket.py
to niimbot_packet.py
? I think it look better.
What being called barcode in the get_rfid() method is actually called one_code. I think we should rename it.
In API's response, the code referenced as "barcode". So, I think barcode is more appropriate.
File permission changed to 755. Was it intended?
Sorry it wasn't intentional. The Samba server on my Pi did it. I had to use it to code remotely on Pi from Mac.
Thank you for the repo. It also works on my D110. Sadly Python's Bluetooth API doesn't support MacOS so I have to test it on a Raspi 2 Zero W. Tried to implement
pybluez
but it was outdated.This MR added some features:
printerclient.PrinterModel
. It isn't being used at the moment but it could be useful later.niimbot_web_api.get_cloud_template_by_one_code()
. It's pretty barebone because I don't know how you like to name it. Feel free to update it to your liking. What being calledbarcode
in theget_rfid()
method is actually calledone_code
. I think we should rename it.Example code:
It will return all the info about the paper roll: name, size, background image URL... It's really useful if you want to print/design the correct size.
More will be added later.