• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

[Initial Release] RaspberryPints - Digital Taplist Solution

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
ok. ive extracted the zip file to HTML, then i type:
sudo rm /var/www/index.html
and get this error::::::

pi@raspberrypi:~ $ 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...
 
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
 
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
 
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!
 
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.
 
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!
 
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??
 
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
 
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?
 
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
 
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....
 
Been meaning to post this request for some time, and now that I'm actually on the keyboard while this thought is resident:

RaspberryPints has moved on from the "Initial Release". Like, years ago.

I'd personally appreciate it if folks would stop posting here and move on to the current thread, located here.

Particularly if you are asking for help - and of course, speaking for myself - it would behoove you to post where I usually look.
Otherwise - demonstrably - it could be weeks before I stumble across your post.

Cheers! :mug:
 
Ahh that is why, I am using Jessie
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!
 
I can't figure out why chromium isn't launching when I reboot and my screen blanking is still active. I've double and tripled checked the autostart file.

I don't see any problems with this file after double and triple checking.

Any ideas? I've searched the forum and it looks like most other people with this problem had typos, I can't find anything else to try.

Here is what the LXDE-pi file looks like:

image1.jpg
 
Back
Top