Skip to content

Commit

Permalink
Updated Instructions and beerstock.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Davies committed May 5, 2013
1 parent 6bd7fca commit 0f548a6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 27 deletions.
6 changes: 3 additions & 3 deletions INSTRUCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Install pyserial from here http://pyserial.sourceforge.net/
Change the sqlrfidbeerstock1.py script to reference the tag numbers you have to a couple of the beers.


Load the keg folder into the /var/www folder of your Pi (can do this by FTP, as long as you are logged in as root or use the sudo command to copy from your /home/pi folder assuming the structure is this /home/pi/keg you would use this command sudo cp –r /home/pi/keg /var/www/keg)
Load the keg and kegerface folders into the /var/www folder of your Pi (can do this by FTP, as long as you are logged in as root or use the sudo command to copy from your /home/pi folder assuming the structure is this /home/pi/keg you would use this command sudo cp –r /home/pi/keg /var/www/keg and then repeat for the kegerface folder)


Run the temperature script and RFID script on the Pi (if working remotely run these from Putty or if you want to be able to disconnect from the Pi and leave it running, try using VNC. I hear lots of good things about using “screen” but haven’t tried it yet)
Expand All @@ -59,15 +59,15 @@ e) Get the browser to refresh the page every minute or x minutes depending on bi

Future Development Ideas:

a) Depending on the Tag ID’s, maybe implement joining the site code and ID together as a unique number instead
a) Depending on the Tag IDs, maybe implement joining the site code and ID together as a unique number instead

b) Use RFID stickers rather than tags, to actually stick to the bottles (could be expensive!)

c) Store the tag information in a database table rather than the python script and change the trigger accordingly

d) Change the background or make a lower res one that is quicker to load

e)Add a purple SRM for Fruit Ciders
e)Add a purple SRM for Fruit Ciders (Done 05/05/13)


Credits
Expand Down
52 changes: 28 additions & 24 deletions beerstock.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,31 @@ CREATE TABLE `BeerStock` (
-- Dumping data for table `BeerStock`
--

INSERT INTO `BeerStock` VALUES (10, 'Coronita', 3570, '2013-04-14 15:35:45', 'Stock Update');
INSERT INTO `BeerStock` VALUES (11, 'Bittersweet Apple Cider', 1000, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (12, 'Carlsberg', 0, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (13, 'Double Chocolate Stout', 500, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (14, 'Sole Star', 3500, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (15, 'Stella 4', 0, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (16, 'Summer Zest', 4620, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (17, 'Toffee Apple Cider', 0, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (18, 'Winter Zest', 330, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (24, 'Vintage Reserve', 1704, '2013-04-14 15:35:45', 'Stock Update');
INSERT INTO `BeerStock` VALUES (19, 'Alcohol Free', 1925, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (20, 'Farm Pressed Medium Cider', 500, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (21, '2011 Vintage Cider', 500, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (22, 'Crabbies', 330, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (23, 'Mythos', 0, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (25, 'Mocha Beer', 500, '2013-04-14 15:35:45', 'Stock Update');
INSERT INTO `BeerStock` VALUES (26, 'Pumpking', 500, '2013-04-14 15:35:45', 'Stock Update');
INSERT INTO `BeerStock` VALUES (27, 'Rudolph', 500, '2013-04-14 15:35:45', 'Stock Update');
INSERT INTO `BeerStock` VALUES (32, 'Ginger Zest', 3960, '2013-04-14 15:39:52', 'Stock');
INSERT INTO `BeerStock` VALUES (30, 'Black Cherry Cider', 568, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (31, 'Peach & Apricot Cider', 500, '2013-04-14 15:35:45', 'Stock');
INSERT INTO `BeerStock` VALUES (33, 'Sole Star', -1000, '0000-00-00 00:00:00', 'Andy');
INSERT INTO `BeerStock` VALUES (34, 'Vintage Reserve', -568, '0000-00-00 00:00:00', 'Pete');
INSERT INTO `BeerStock` VALUES (35, 'Winter Zest', -330, '2013-04-24 22:40:03', 'RFID');
INSERT INTO `BeerStock` (`ID`, `Beer`, `Quantity`, `Date`, `Reason`) VALUES
(10, 'Coronita', 3570, '2013-04-14 15:35:45', 'Stock Update'),
(11, 'Bittersweet Apple Cider', 1000, '2013-04-14 15:35:45', 'Stock'),
(12, 'Carlsberg', 8360, '2013-04-14 15:35:45', 'Stock'),
(13, 'Double Chocolate Stout', 500, '2013-04-14 15:35:45', 'Stock'),
(14, 'Sole Star', 3500, '2013-04-14 15:35:45', 'Stock'),
(15, 'Stella 4', 0, '2013-04-14 15:35:45', 'Stock'),
(17, 'Toffee Apple Cider', 0, '2013-04-14 15:35:45', 'Stock'),
(18, 'Winter Zest', 4620, '2013-04-14 15:35:45', 'Stock'),
(24, 'Vintage Reserve', 0, '2013-04-14 15:35:45', 'Stock Update'),
(19, 'Alcohol Free', 1925, '2013-04-14 15:35:45', 'Stock'),
(20, 'Farm Pressed Medium Cider', 500, '2013-04-14 15:35:45', 'Stock'),
(21, '2011 Vintage Cider', 500, '0000-00-00 00:00:00', 'Stock'),
(22, 'Crabbies', 330, '2013-04-14 15:35:45', 'Stock'),
(23, 'Mythos', 0, '2013-04-14 15:35:45', 'Stock'),
(25, 'Mocha Beer', 500, '2013-04-14 15:35:45', 'Stock Update'),
(26, 'Pumpking', 500, '2013-04-14 15:35:45', 'Stock Update'),
(27, 'Rudolph', 500, '2013-04-14 15:35:45', 'Stock Update'),
(32, 'Ginger Zest', 2310, '2013-04-14 15:39:52', 'Stock'),
(30, 'Black Cherry Cider', 568, '2013-04-14 15:35:45', 'Stock'),
(31, 'Peach & Apricot Cider', 0, '2013-04-14 15:35:45', 'Stock'),
(33, 'Summer Zest', 1980, '2013-04-16 11:41:42', 'Stock'),
(96, 'Magners', 7040, '2013-05-04 11:06:39', 'Stock'),
(95, 'Carling Cider', 0, '2013-05-04 11:06:06', 'Stock'),
(94, 'Spindrift', 0, '2013-05-04 11:06:06', 'Stock'),
(93, 'Brooklyn Lager', 355, '2013-04-28 10:27:53', 'Stock'),
(92, 'Boston Lager', 660, '2013-04-28 10:27:39', 'Stock'),
(91, 'Jaipur IPA', 500, '2013-04-28 10:27:39', 'Stock');

0 comments on commit 0f548a6

Please sign in to comment.