Skip to content

Scripts running on the Raspberry Pi in 4163SES.

Notifications You must be signed in to change notification settings

CabanaLab/LabPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LabPi

GitHub tag

Scripts running on the Raspberry Pi in 4163SES.

Installation

In the pi's /home/pi/ directory:

$ git clone git@github.com:CabanaLab/LabPi.git
$ pip install -e LabPi/

run-empty

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.

lcd_16x2.py

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.

Configuration

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

Usage

Connect the barcode reader to the PI, then execute run-empty from the command line.