GithubHelp home page GithubHelp logo

wbrenna / inventory Goto Github PK

View Code? Open in Web Editor NEW
44.0 9.0 10.0 24 KB

Use a barcode reader to scan the foods in your house and add them to a database. See legacy for zbarcam integration. Master integrates with a USB barcode laser scanner.

License: Other

Python 95.66% Shell 4.34%
barcode food upc expiry database inventory zbarcam

inventory's Introduction

Inventory

This set of Python scripts will allow you to interface a barcode reader such as zbarcam with a UPC database to keep track of foods as you buy them.

Install

Download the set of scripts, ensure you have a working Python installation (I use Python>=2.6), and run

python inventory --help

for information.

Run

There are a number of features and options. Most of them are self-described. You can run

python inventory add

to begin adding items to your database. It is important to note that some of the commands require input prefixed by the barcode type (only EAN-13 is fully supported at the moment), while others require just the barcode iteself. This is because some commands are designed to receive input piped from zbarcam, while others are designed to receive manual input. For example

./inventory add

requires input such as

0068100084245

The "modifyexpiry" allows you to enter a specific product EAN-13 manually and customize its expiry date. The expiry dates persist through deletion of stock, so you will never need to enter expiry lengths for that particular product again. The "remove" option allows you to scan barcodes on the way out, removing that product from your inventory. The "printout" option will print the database out for you, neatly. Finally, the "daily" option allows for cron or some other scheduling tool to check daily for products nearing expiry. This is best used with a line in crontab that runs inventory with the daily option. You will need to enter your email in inventory_daily.py in order for this to properly work, as well as ensure that your system is a working mailserver.

Interfacing with Cronometer

Inventory also checks your Cronometer database for UPC codes. First, ensure you have the Cronometer foods folder specified in inventory_grabcronometer.py (it is a global variable). Then, when you add custom items into Cronometer, just put the UPC in the Comments section. Inventory will automatically scan for Cronometer UPCs before turning to the web.

TODO

Integrate with webserver to display printout status

inventory's People

Contributors

wbrenna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inventory's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.