This repository creates CSV files for upload to METRC.
This repository currently handles input through an A&D scale, Zebra Scanner, and keyboard to create a METRC-compliant CSV to upload weighed items
I need it to help streamline operations in a cannabis grow operation.
- Python 3.10+
- Python Modules [Run requirements.bat]: time, serial, datetime, textwrap, tabulate, os, numpy, [See imports.py]
- RS-232C Port for Input from Scale
- Scanner for METRC Tag Input (HID Mode)
- Plug in RS-232C Cord and USB to PC/Mac/Potato
- Plug USB scanner into same Potato
- Run Device Manager to locate COM port for scale and put it into pyserial.py
- Run main.py It is just a script so it does not really have a installation. Run "main.py" with computer connected to scale and scanner. Follow the prompts. CSV will populate in folder run. You can change the name of the create file main.py line 16.
Currently new rows will be appended to the same document during the same day. As METRC only requires the day/date, double check csv before submitting to the State. Consider yourself warned...