[Initial Release] RaspberryPints - Digital Taplist Solution

HomeBrewTalk.com - Beer, Wine, Mead, & Cider Brewing Discussion Community.

Help Support Homebrew Talk:

JonW

Well-Known Member
Lifetime Supporter
Joined
Dec 9, 2009
Messages
2,100
Reaction score
310
Location
Huntington Beach, CA
I know I inquired about this a little while ago, but I was still wondering if anyone was able to split the display vertically to basically have two different keezers on display.
Ex. I have 2 different keezers so I would like to put "basement keezer" after tap #4 to show that these taps are in the basement vs. upstairs keezer.

I attached a picture of what JonW has, but was hoping to edit the index.php to do this vertically instead of horizontally.

Thank you for any input.
Not real clear on what you're asking for. You're not going to get a 2 column layout like mine in portrait (vertical) orientation - there just isn't enough width to show the info (which is why this is horizontal).

If you were to use the original layout in vertical, you could do what you want. You'd need to put some conditional code in the middle of the loop that draws the tap list to basically say "when tap = 4 then write new header". If you have 8 taps and 4 are upstairs and 4 are downstairs, you could do my layout with a header and/or footer for each column to say which keezer it is.

Just not clear on what exactly you're asking for though, so I can't really give any more guidance than this.
 

JonW

Well-Known Member
Lifetime Supporter
Joined
Dec 9, 2009
Messages
2,100
Reaction score
310
Location
Huntington Beach, CA
You need to insert some conditional code near the beginning of the tap list loop. This code needs to check if the tap # equals 1 and if so, write a keezer name description row. You can then repeat that if the tap # equals 5 and write the second keezer description row.

Below is a real basic example. Note that only the highlighted code is what has been added. You may need to do some addtional formatting.

taplist_mod.png
 

jmtwo

Well-Known Member
Joined
Mar 1, 2012
Messages
101
Reaction score
16
Location
Texas
Since I run my rpints on a tablet and I don't use the flow meters I wanted a cheap and dirty way to track pours. I think I may have mentioned in this thread before that I was working on some touch controls. Here is the first thing I've implemented:

http://brewingintheburgh.com/raspberrypints/

Tap (or click) on any row and a popup will appear allowing you to select how much you are pouring with a slider. Hit Pour and the amount you entered will be subtracted from the amount remaining in the keg. Simple and should at least give you a general idea how much you have left in the kegs.

If anyone is interested I will share the code.
I'd be very interested in how you implemented this. I'm just starting to set up Raspberrypints, but I don't know if I'll jump right to flow meters. I love your solution for a starting point to track volume
 

dstauth

Well-Known Member
Joined
Mar 1, 2011
Messages
72
Reaction score
20
Location
Littleton
Since I run my rpints on a tablet and I don't use the flow meters I wanted a cheap and dirty way to track pours. I think I may have mentioned in this thread before that I was working on some touch controls. Here is the first thing I've implemented:

http://brewingintheburgh.com/raspberrypints/

Tap (or click) on any row and a popup will appear allowing you to select how much you are pouring with a slider. Hit Pour and the amount you entered will be subtracted from the amount remaining in the keg. Simple and should at least give you a general idea how much you have left in the kegs.

If anyone is interested I will share the code.
I'd also be interested in this code. I am currently using code another user made for tracking pours in this post .
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
Wondering if anyone can help?
I have a Raspberry Pi2 running Fashion Jessie. Have come a long way into the raspberry pints set up. Now I'm stuck at the step to unzip Raspberry Pints 2.0.1 file.

I type sudo rm /var/www/index.html
I get this error

Rm: cannot remove '/var/www/index.html': No such file or directory

Also get other errors with other commands during this process.
It's doing my head in.......please help
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
Wondering if anyone can help?
I have a Raspberry Pi2 running Fashion Jessie. Have come a long way into the raspberry pints set up. Now I'm stuck at the step to unzip Raspberry Pints 2.0.1 file.

I type sudo rm /var/www/index.html
I get this error

Rm: cannot remove '/var/www/index.html': No such file or directory

Also get other errors with other commands during this process.
It's doing my head in.......please help
Screenshots attached (hopefully)

FB_IMG_1458795265223.jpg


FB_IMG_1458795417995.jpg
 

day_trippr

Moderna Or Bust! :D
Joined
May 31, 2011
Messages
35,942
Reaction score
18,381
Location
Stow, MA
You're not finding an index.html file in /var/www on Jessie - because unlike Wheezy, Jessie's default folder for web stuff moved to /var/www/html...

Cheers!
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
You're not finding an index.html file in /var/www on Jessie - because unlike Wheezy, Jessie's default folder for web stuff moved to /var/www/html...

Cheers!
ok, sorry but im kinda new to the world of Raspberry Pi so not understanding what your saying.

is there a link i can follow that will help with the install? as the RaspberryPints website isnt much help at the moment

thanks for responding
 

DrunkleJon

Objects in mirror are closer than they appear
Lifetime Supporter
Joined
Jan 18, 2011
Messages
8,187
Reaction score
2,567
Location
Alexandria
ok, sorry but im kinda new to the world of Raspberry Pi so not understanding what your saying.

is there a link i can follow that will help with the install? as the RaspberryPints website isnt much help at the moment

thanks for responding
Just type
sudo rm /var/www/html/index.html

instead. Of course you want to copy the RaspberryPints install files into
/var/www/html instead of /var/www/
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
Thanks but I tried that and this is what I got
[email protected]:~ $ sudo rm /var/www/html/index.html
rm: cannot remove ‘/var/www/html/index.html’: No such file or directory
 

volsherdeers

Well-Known Member
Joined
Jun 4, 2010
Messages
108
Reaction score
43
Location
Tennessee
Thanks but I tried that and this is what I got
[email protected]:~ $ sudo rm /var/www/html/index.html
rm: cannot remove ‘/var/www/html/index.html’: No such file or directory
Click the up arrow in the file manager twice, go to var > www > html. Verify index.html is there!
sudo chmod -R 777 /var/www (the R is upper case)
sudo rm /var/www/html/index.html
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
Click the up arrow in the file manager twice, go to var > www > html. Verify index.html is there!
sudo chmod -R 777 /var/www (the R is upper case)
sudo rm /var/www/html/index.html
ok. done the mentioned steps.
clicked the up arrow in file manager twice, clicked var, then www then html and the folder is empty.:confused:
 

volsherdeers

Well-Known Member
Joined
Jun 4, 2010
Messages
108
Reaction score
43
Location
Tennessee
ok. done the mentioned steps.
clicked the up arrow in file manager twice, clicked var, then www then html and the folder is empty.:confused:
Step 6: "If you get an error message stating that the file was not found, you can safely disregard it."

Should be good to go! Extract Raspberrypints files to the HTML folder.
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
Step 6: "If you get an error message stating that the file was not found, you can safely disregard it."

Should be good to go! Extract Raspberrypints files to the HTML folder.
ok. ive extracted the zip file to HTML, then i type:
sudo rm /var/www/index.html
and get this error::::::

[email protected]:~ $ sudo rm /var/www/index.html
rm: cannot remove ‘/var/www/index.html’: No such file or directory

I dont see index.html in there. Only the extracted file RaspberryPints 2.0.1


sorry to be a pain but ive no where else to turn as i really want this up and running for my homebrewery

thanks again
 

DrunkleJon

Objects in mirror are closer than they appear
Lifetime Supporter
Joined
Jan 18, 2011
Messages
8,187
Reaction score
2,567
Location
Alexandria
ok. ive extracted the zip file to HTML, then i type:
sudo rm /var/www/index.html
and get this error::::::

[email protected]:~ $ sudo rm /var/www/index.html
rm: cannot remove ‘/var/www/index.html’: No such file or directory

I dont see index.html in there. Only the extracted file RaspberryPints 2.0.1


sorry to be a pain but ive no where else to turn as i really want this up and running for my homebrewery

thanks again
The command "sudo rm /var/www/index.html" is just there to delete the built in "This is a placeholder webpage" that is on the pi. You do not want to delete it again after extracting the files.

two questions:
- What happens when you open a web browser and type http://localhost/ in the address bar and hit enter?
- When you did the copy from the raspberrypints folder, did you copy the folder itself or did you copy the contents of the folder?
 

volsherdeers

Well-Known Member
Joined
Jun 4, 2010
Messages
108
Reaction score
43
Location
Tennessee
ok. ive extracted the zip file to HTML, then i type:
sudo rm /var/www/index.html
and get this error::::::

[email protected]:~ $ sudo rm /var/www/index.html
rm: cannot remove ‘/var/www/index.html’: No such file or directory

I dont see index.html in there. Only the extracted file RaspberryPints 2.0.1


sorry to be a pain but ive no where else to turn as i really want this up and running for my homebrewery

thanks again
Already covered this > Step 6: "If you get an error message stating that the file was not found, you can safely disregard it."

The file was already gone!

Continue the setup...
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
The command "sudo rm /var/www/index.html" is just there to delete the built in "This is a placeholder webpage" that is on the pi. You do not want to delete it again after extracting the files.

two questions:
- What happens when you open a web browser and type http://localhost/ in the address bar and hit enter?
- When you did the copy from the raspberrypints folder, did you copy the folder itself or did you copy the contents of the folder?[/QUOTE

when I type http://localhost/ into my Chromium web browser i get this....
Index of /

[ICO] Name Last modified Size Description
[DIR] RaspberryPints-2.0.1/ 2014-09-11 10:05 -
Apache/2.4.10 (Raspbian) Server at localhost Port 80

not sure about when i copied the Raspberry Pints if I copied the folder or the contents.

sorry about this but its doing my head in not being able to get a result from the Raspberry Pints website instructions
 

Drew7544

Member
Joined
Mar 27, 2016
Messages
8
Reaction score
0
ok all, i followed the intructions posted and its now up and running.
Thank you DrunkleJon for your input as it helped out a lot.

i couldnt be a happier brewer right now
 

DNuggs

Well-Known Member
Lifetime Supporter
Joined
Nov 22, 2009
Messages
137
Reaction score
13
Location
Boston
Aaaaand it just plain works!

To answer DanH: The HC SR501 PIR motion sensor is powered directly by the RPi, via the 5V rail. The sensor uses three connections to the RPi: 5V, GND, and GPIO7. The sensor has a local regulator that converts the 5V to 3.3V which runs the entire board, and making the output "RPi Safe" without dividers, etc.

Ok...So I haven't had to put an "instructable" together for a looong time, so bear with me. First person through let me know if there are any problems and I'll fix 'em up pronto. And I hope putting this here is ok with the 'Pints community!

Preview: You'll install xscreensaver and verify it works, stick the test and runtime scripts in the /home/pi folder, shut down and wire up the sensor, power up and test the sensor, then add an entry to the LXDE autostart file, and finally reboot to what should be a working feature.

Right then, we're off:

Unpack zip file:

I've put a zip file up on Google Drive with the two scripts, the instructions, and a couple of images to orient the user to the RPi GPIO header and the sensor. That file can be downloaded from here.

Unpack the file and place the two Python scripts (pir_test.py and pir_run.py) in the /home/pi folder. Have the other files handy as you put things together.


Install xscreensaver from an LXDE terminal:

apt-get install xscreensaver

After the installation completes, you can Add the ScreenSaver Preferences shortcut from the 'start' menu (look in folder "Other") to the desktop to make it handy while you're setting things up.

Most of the screensavers are not installed as part of the kit, but they are selected in the ScreenSaver Preferences - Display Modes sheet. You'll want to de-select the unavailable screensavers (stick your cursor on a title and if it doesn't show up in the preview pane it isn't installed), and probably quite a few of the installed ones as well. The Preferences gui is a total POS but it's free, so don't complain ;)

In any case, you'll want to verify the xscreensaver is actually working before proceeding. In ScreenSaver Preferences - Display Modes you can set the "Blank After" delay to something short so you're not twiddling your thumbs waiting for it to kick in.


Shut down, remove power and wire up the PIR sensor

Refer to hc_sr501.jpg and 2x13_header.jpg for connection locations (pictures are below).
A detailed description of the HC SR501 can be found here: http://www.mpja.com/download/31227sc.pdf

5V: Pin 2
GND: Pin 6,9,14,20 or 25 (pick one)
GPIO7: Pin 26

For orientation on a Model B RPi, Pin 2 is located almost in the very corner of the RPi board. Pin 26 is at the opposite end of the same row.

You don't need heavy wire for this. The PIR sensor uses very little power, so 18-22ga stranded is fine.

Notes:
- Verify that the two pin jumper is positioned as shown in hc_sr501.jpg
- Set the Sensitivity Adjust to 50% of travel to start
- Set the Time Delay Adjust full counter-clockwise to start (minimum delay between triggers is roughly 10 seconds)


Power up and boot to the desktop

Open an LXDE terminal and run pir_test.py as root

sudo python pir_test.py

You'll see the following text appear:

PIR Module Test (CTRL+C to exit)
Ready



Let the PIR settle for ~10 seconds, then wave a hand in front of the sensor.
The terminal should immediately show:

Motion Detected!

The script will continue to respond to PIR interrupts until you CTRL+C out.

If you do not get the PIR to respond, shut down and verify your wiring, then verify the above steps.

You can play around with the Sensitivity Adjust potentiometer until you're happy with the response, and you'll likely want to tune it when you have the RPi and sensor in their final locations. The Time Delay Adjust can be left at minimum - the sensor will retrigger after the delay and keep the display "alive" while you're moving around in front of your dispensing system.


Set up Autostart for the PIR runtime script

Add an entry to LXDE startup to autostart the PIR run time script. In an LXDE terminal:

sudo nano /etc/xdg/lxsession/LXDE/autostart

Add this line at the bottom:

sudo python pir_run.py

Write out the file (^o) and exit (^x)


Restart the RPi and boot to the desktop

Allow xscreensaver to kick in, then wake it up by waving at the PIR sensor.


That's all there is to it!

fwiw, both sensors I received worked perfectly (best as I can tell, anyway).

I haven't spent a lot of time playing with the Sensitivity adjustment. Set at 50% of travel the sensor picks me up when I come in my office door a good ten feet from the sensor, which isn't even pointed at the doorway. So it appears the sensor is certainly sensitive enough for this application :)

Cheers!
Hey day_tripper....I know this is a much older thread than the current one but I was wanting to implement the motion detector system on my Pints setup. With the use of flow meters and an Alamode board, does the pin selection for the PIR change? I'm assuming that I can use the VIN and ground pins on the Alamode instead of the GPIO pins.....what about the signal pin you used (I think it was pin 26 on the GPIO)? Thanks!
 

CadiBrewer

Supporting Member
HBT Supporter
Joined
Feb 21, 2013
Messages
813
Reaction score
222
Location
Pasadena
Hey day_tripper....I know this is a much older thread than the current one but I was wanting to implement the motion detector system on my Pints setup. With the use of flow meters and an Alamode board, does the pin selection for the PIR change? I'm assuming that I can use the VIN and ground pins on the Alamode instead of the GPIO pins.....what about the signal pin you used (I think it was pin 26 on the GPIO)? Thanks!
The pin selection does not change with the Alamode board. The Alamode board pulls up the GPIO pins directly from the Pi. You use 26 on the GPIO for the signal and then any 5v and GND pins that you want on the Alamode.
 

day_trippr

Moderna Or Bust! :D
Joined
May 31, 2011
Messages
35,942
Reaction score
18,381
Location
Stow, MA
The pin selection does not change with the Alamode board. The Alamode board pulls up the GPIO pins directly from the Pi. You use 26 on the GPIO for the signal and then any 5v and GND pins that you want on the Alamode.
Totally correct, and thanks for helping out!
Been out on a BVI beach all day and need to catch up :d

Cheers!
 

SleepyCreekBrews

Well-Known Member
Joined
Jul 18, 2012
Messages
940
Reaction score
270
Location
Leesville, NC
Something minor that i can tweak if you guys weren't planning on it. But yes, when I tap a keg and add my beer to it that has already been created, it does not auto populate any of the data. The only data it pulls is the description (which is not an option to be filled in). I am required to add data into the blank cells, which then will overwrite what was supposed to be pulled.

Mine does the same thing . It fails to auto populate the beer parameters when I select the beer from the drop-down .
Ideas??
 

day_trippr

Moderna Or Bust! :D
Joined
May 31, 2011
Messages
35,942
Reaction score
18,381
Location
Stow, MA
Auto-population failure is a result of using hard returns in the "Tasting Notes" field in a "My Beers" table entry.

Don't do that. Let the entry wrap on its own.
And don't use TAB characters or any other formatting character...

Cheers!
 

SleepyCreekBrews

Well-Known Member
Joined
Jul 18, 2012
Messages
940
Reaction score
270
Location
Leesville, NC
Auto-population failure is a result of using hard returns in the "Tasting Notes" field in a "My Beers" table entry.

Don't do that. Let the entry wrap on its own.
And don't use TAB characters or any other formatting character...

Cheers!
Ah yes, went back and looked. Turns out all it takes is one bad apple to spoil the whole database.

Thanks
 

wanger99

Supporting Member
HBT Supporter
Joined
Jan 20, 2014
Messages
739
Reaction score
31
Location
Chicago - NW Burbs
Using NOOBS 1.9, im trying to install chromium using the sudo get-apt -y install chromium-browser command and it says the package is not available but may be part of another package. Is there another line of code that will work to install Chromium?
 

day_trippr

Moderna Or Bust! :D
Joined
May 31, 2011
Messages
35,942
Reaction score
18,381
Location
Stow, MA
You posted the same question in the newer thread.

And this thread really should be locked...

Cheers!
 

day_trippr

Moderna Or Bust! :D
Joined
May 31, 2011
Messages
35,942
Reaction score
18,381
Location
Stow, MA
yes it was posted here too because it was over looked by everyone there . There was more activity here. Need help
It wasn't overlooked, it wasn't even ignored.
Nobody has the answer you need.
Not there. Not here...
 

CaptnDelta

Well-Known Member
Joined
May 7, 2014
Messages
164
Reaction score
26
yes it was posted here too because it was over looked by everyone there . There was more activity here. Need help
The other reason for lack of response might very well be that this question has come up numerous times, and a search of the thread would have yielded an answer.

Chromium is no longer supported in the RPi Jessie distribution. Your alternatives are:
* install the (older) wheezy distribution
* use a different browser (as long as you don't have flow meters, it doesn't matter much which one)
* use my forked version of raspberry pints which supports updates w/o the hack of using xdotools (and the requirement of using chromium)
https://github.com/HentschelT/RaspberryPints/releases/tag/th-2.1.1

Cheers,
-Th
 

11julian

Member
Joined
Aug 22, 2015
Messages
8
Reaction score
2
Aaaaand it just plain works!

To answer DanH: The HC SR501 PIR motion sensor is powered directly by the RPi, via the 5V rail. The sensor uses three connections to the RPi: 5V, GND, and GPIO7. The sensor has a local regulator that converts the 5V to 3.3V which runs the entire board, and making the output "RPi Safe" without dividers, etc.

Ok...So I haven't had to put an "instructable" together for a looong time, so bear with me. First person through let me know if there are any problems and I'll fix 'em up pronto. And I hope putting this here is ok with the 'Pints community!

Preview: You'll install xscreensaver and verify it works, stick the test and runtime scripts in the /home/pi folder, shut down and wire up the sensor, power up and test the sensor, then add an entry to the LXDE autostart file, and finally reboot to what should be a working feature.

Right then, we're off:

Unpack zip file:

I've put a zip file up on Google Drive with the two scripts, the instructions, and a couple of images to orient the user to the RPi GPIO header and the sensor. That file can be downloaded from here.

Unpack the file and place the two Python scripts (pir_test.py and pir_run.py) in the /home/pi folder. Have the other files handy as you put things together.


Install xscreensaver from an LXDE terminal:

apt-get install xscreensaver

After the installation completes, you can Add the ScreenSaver Preferences shortcut from the 'start' menu (look in folder "Other") to the desktop to make it handy while you're setting things up.

Most of the screensavers are not installed as part of the kit, but they are selected in the ScreenSaver Preferences - Display Modes sheet. You'll want to de-select the unavailable screensavers (stick your cursor on a title and if it doesn't show up in the preview pane it isn't installed), and probably quite a few of the installed ones as well. The Preferences gui is a total POS but it's free, so don't complain ;)

In any case, you'll want to verify the xscreensaver is actually working before proceeding. In ScreenSaver Preferences - Display Modes you can set the "Blank After" delay to something short so you're not twiddling your thumbs waiting for it to kick in.


Shut down, remove power and wire up the PIR sensor

Refer to hc_sr501.jpg and 2x13_header.jpg for connection locations (pictures are below).
A detailed description of the HC SR501 can be found here: http://www.mpja.com/download/31227sc.pdf

5V: Pin 2
GND: Pin 6,9,14,20 or 25 (pick one)
GPIO7: Pin 26

For orientation on a Model B RPi, Pin 2 is located almost in the very corner of the RPi board. Pin 26 is at the opposite end of the same row.

You don't need heavy wire for this. The PIR sensor uses very little power, so 18-22ga stranded is fine.

Notes:
- Verify that the two pin jumper is positioned as shown in hc_sr501.jpg
- Set the Sensitivity Adjust to 50% of travel to start
- Set the Time Delay Adjust full counter-clockwise to start (minimum delay between triggers is roughly 10 seconds)


Power up and boot to the desktop

Open an LXDE terminal and run pir_test.py as root

sudo python pir_test.py

You'll see the following text appear:

PIR Module Test (CTRL+C to exit)
Ready



Let the PIR settle for ~10 seconds, then wave a hand in front of the sensor.
The terminal should immediately show:

Motion Detected!

The script will continue to respond to PIR interrupts until you CTRL+C out.

If you do not get the PIR to respond, shut down and verify your wiring, then verify the above steps.

You can play around with the Sensitivity Adjust potentiometer until you're happy with the response, and you'll likely want to tune it when you have the RPi and sensor in their final locations. The Time Delay Adjust can be left at minimum - the sensor will retrigger after the delay and keep the display "alive" while you're moving around in front of your dispensing system.


Set up Autostart for the PIR runtime script

Add an entry to LXDE startup to autostart the PIR run time script. In an LXDE terminal:

sudo nano /etc/xdg/lxsession/LXDE/autostart

Add this line at the bottom:

sudo python pir_run.py

Write out the file (^o) and exit (^x)


Restart the RPi and boot to the desktop

Allow xscreensaver to kick in, then wake it up by waving at the PIR sensor.


That's all there is to it!

fwiw, both sensors I received worked perfectly (best as I can tell, anyway).

I haven't spent a lot of time playing with the Sensitivity adjustment. Set at 50% of travel the sensor picks me up when I come in my office door a good ten feet from the sensor, which isn't even pointed at the doorway. So it appears the sensor is certainly sensitive enough for this application :)

Cheers!

I can't get this to work. RuntimeWarning: this channel is already in use....
 

day_trippr

Moderna Or Bust! :D
Joined
May 31, 2011
Messages
35,942
Reaction score
18,381
Location
Stow, MA
I can't get this to work. RuntimeWarning: this channel is already in use....
My apologies, I totally missed this post back when it was fresh.

Before we get into it, what OS version are you using?
I have yet to try getting this feature working on Jessie...

Cheers!
 
Top