Introduction: Sparkfun Stock Checker

This is a simple instructable in how to make a device that checks the stock of various products at it is very easy to modify and i hope someone does!

Step 1:

you will need all of these parts:
-Raspberry Pi with all the fixins (sd card, keyboard, mouse, ethernet/wifi, preferably a monitor)
-and then one of these two: (the pi lcd plate is easier for beginners):
---raspberry pi lcd plate (
---or a lcd shield ( and a logic level converter (3.3v to 5v, your choice.)

install Raspbian on your pi if you dont have it already. there are many great instructables for doing that.

Set up I2C as described here: (don't do any of the libraries yet)

then download this whole gist from github: (sorry the name is messed up)

Step 2:

Once you have the code, using it is very simple. extract everything to your home folder and open a terminal. then type "sudo python".
to edit the list of products it displays, just type nano and use your arrow keys to navigate to the line that says
productid = [11546,11868,11589,11021,11286,9716,11215,11712,8938,709,569,8653]
You can edit those numbers to any IDs you want. seperate each one with a comma.
if you know a bit about python programming, you can change the api it uses. minidom is a great XML parser and the CSV library also is very useful.
Weekend Projects Contest

Participated in the
Weekend Projects Contest