Skip to content

Little python script using a barcode scanner and the Speisekammer.App api to keep your groceries fresh and updated!

License

Notifications You must be signed in to change notification settings

speisekammer/raspi-scan-station

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry PI Scan Station for Speisekammer.App

Tested with:

  • Raspberry PI 3B
  • Raspbian PI OS (Debian Bullseye)

Right now just supports one specific USB scanner, needs more work to be more generic.

Perform the following steps to get it running:

  • Create an SD Card with "Raspberry PI Imager", choosing Raspberry PI OS. I chose the lite image without a desktop. Bildschirmfoto 2024-02-29 um 12 51 39
  • Connect to your PI using SSH or a monitor and keyboard
  • Download this repo to you Raspberry PI: git clone https://github.com/speisekammer/raspi-scan-station
  • cd raspi-scan-station
  • pip install evdev requests ujson
  • Get a Speisekammer.App API key from here: https://app.speisekammer.app/developer
  • Create a config file named config.json with your account data:
{
  "token": "your_api_key",
  "communityId": "your_community_id",
  "storageLocationId": "your_storage_location_id"
}
  • Print a sheet with the "INSERT" and "REMOVE" barcodes, located in doc/Speisekammer.App Scan Station.pdf
  • Run the scanner script: python scanner.py

About

Little python script using a barcode scanner and the Speisekammer.App api to keep your groceries fresh and updated!

Resources

License

Stars

Watchers

Forks

Languages