When ran in the background, this utility will read the data transmitted by a USB scale (tested on a Fairbanks Ultegra) into keystrokes. This was built to help automate a weight-based audit system.
- This useful tutorial by [Steven Snyder] (http://steventsnyder.com/reading-a-dymo-usb-scale-using-python/)
- Instantly outputs (as keystrokes) weight of items from a USB scale
- Currently, only tested on a Fairbanks Ultegra scale.
- [PyUSB] (https://sourceforge.net/projects/pyusb/)
- PyKeyboard from [PyUserInput] (https://github.com/SavinaRoja/PyUserInput)
MacOS (High Sierra) PyUserInput required Quartz
pip install pyusb
pip install PyUserInput
pip install pyobjc-framework-QuartzIssue following command in console. This will run the scale script in the background.
# switch to the directory containing the script
(sudo) python scale.py &Further notes and constants can be found in the the script (scale.py)
Please open an issue on GitHub
This software is released under the MIT License. See the bundled LICENSE file for details.