Skip to content

The PantrySentry is a program written in Python 3 that keeps track of the items in your pantry.

Notifications You must be signed in to change notification settings

Simon-Stone/PantrySentry

Repository files navigation

PantrySentry

The PantrySentry is a program written in Python 3 that keeps track of the items in your pantry.

Usage:

Set up your user data. First run the following lines through the Python interpreter (replacing your personal information):

import keyring
keyring.set_password("Google Keep", "your-username", "your-google-keep-password")

Then create a file userdata.py and place it in the PantrySentry root directory. The file needs to define two variables as follows:

openGTIN_user_id = your_openGTIN_user_id
google_keep_username = your_Google_Keep_user_id

You can obtain a user ID for the Open GTIN database here. The openGTIN id variable has to be of type int, the Google Keep username is expected to be of type str.

Start the script PantrySentry.py

Add to pantry:

  • Use the keyboard or a barcode scanner to enter the EAN of the item you want to process. The EAN is looked up in the Open GTIN database and the retrieved name is added to a Google Keep list. If an item of the same name is already on the list, the item's count is increased by one.

Remove from pantry:

  • Use the barcode in switch_direction.gif to switch to "remove" mode. Everything scanned in the next minute will be removed from the pantry.

About

The PantrySentry is a program written in Python 3 that keeps track of the items in your pantry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages