Scripts running on the Raspberry Pi in 4163SES.
In the pi's /home/pi/ directory:
$ git clone git@github.com:CabanaLab/LabPi.git
$ pip install -e LabPi/
Setup empty.py
to run on startup in a headless commandline environment (no GUI). This script is designed to await input from a barcode scanner on a forever-loop.
Prints output to a 16x2 character LCD screen. This item has been modified for the purposes here. The original creator and file can be found here.
The package will look for configuration in ~/labpi.conf
. Example
configuration is:
[server]
# Url for the professor oak server
# {id} will be replaced with the container ID.
base_url = http://example.com/container/{id}
# Username for the professor oak server
username =
# Password for the professor oak server
password =
[pi]
# Which LCD is installed (i2c_rgb, gpio)
lcd_panel = i2c_rgb
Connect the barcode reader to the PI, then execute run-empty
from
the command line.