• 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.
Im not sure if anybody could help me but for some reason the color on the glasses under "gravity" goes outside the line of the glass and I would like to get it fixed.

Thanks in advance for your help

Are you viewing this from your desktop via IE? I get that problem with IE, but Chrome draws it correctly.
 
Huh - lookie there, IE does indeed bork the SRM display.
And so does Firefox.

Neither one of them handles the image mask correctly, I guess.

Chrome gets it right. That's all I use these days on all my systems and 'Droids - I've never even tried IE or FF on my own web sites before right now ;)

Cheers!
 
Thank you for the suggestion. the 4 files were in there and I even extracted all 4 new ones from the downloaded zip file and it still did not fix it
 
Hi All,

First I am new to messing around with my Raspberry Pi, currently I am using Raspberry Pints, I have also added the PIR motion sensor to wake the screen when motion is detected. All is working great however I wanted to also integrate an additional function to trigger an SSR to turn on the fridge lights when the same motion is detected, I have my SSR wired into GPIO24 (Pin18 & Pin20 for Ground) and I am having a hard time manipulating the code to get the SSR to also switch when motion is detected.

Any and all help is much appreciated, below is my current code running for the screen wake.

#!/usr/bin/env python

import os
import RPi.GPIO as GPIO
import time

cmd = 'xscreensaver-command -deactivate'

GPIO.setmode(GPIO.BCM)
PIR_PIN=7
GPIO.setup(PIR_PIN, GPIO.IN)

def MOTION(PIR_PIN):
os.system(cmd)
time.sleep(1)

time.sleep(2)

try:
GPIO.add_event_detect(PIR_PIN, GPIO.RISING, callback=MOTION)
while 1:
time.sleep(100)

except KeyboardInterrupt:
GPIO.cleanup()

Also a pic of my beer fridge.

7VwXVSc.jpg
 
Hi All,

First I am new to messing around with my Raspberry Pi, currently I am using Raspberry Pints, I have also added the PIR motion sensor to wake the screen when motion is detected. All is working great however I wanted to also integrate an additional function to trigger an SSR to turn on the fridge lights when the same motion is detected, I have my SSR wired into GPIO24 (Pin18 & Pin20 for Ground) and I am having a hard time manipulating the code to get the SSR to also switch when motion is detected.

Any and all help is much appreciated, below is my current code running for the screen wake.

What makes this interesting is it's trivial to have the PIR script turn on the SSR for your lights; turning it off, otoh, could get complicated.

This python script wakes up xscreensaver and turns on an LED on my system panel when the PIR triggers; it then plays an mp3 file; then it turns off the LED, and goes back to waiting for the next trigger. The PIR sensor re-trigger-block adjustment pot is set to force it to wait around five minutes before it will re-trigger. That keeps the tune from repeating at an annoying frequency. Xscreensaver is set to turn off the display after a little more than five minutes, so if someone's hanging around the keezer the display won't blank.

I've inserted commands to define your pin 24 as an output, then turn on and off that pin when the PIR triggers. And to avoid having to actually think about how to do this smarter, I simply hard-coded a 60 second delay between the On and Off states. You can play with that value to find something that works for you (and remove the two lines regarding the audio part).


Code:
#!/usr/bin/env python

import os
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)

cmd = 'xscreensaver-command -deactivate'
playsound = 'mpg321 /home/pi/tada.mp3'

PIR_PIN = 7
STATUS_PIN = 8
LIGHT_CTL_PIN = 24
GPIO.setup(PIR_PIN, GPIO.IN)
GPIO.setup(STATUS_PIN, GPIO.OUT)
GPIO.setup(LIGHT_CTL_PIN, GPIO.OUT)

def MOTION(PIR_PIN):
	os.system(cmd)
	GPIO.output(STATUS_PIN,True)
	GPIO.output(LIGHT_CTL_PIN,True)
	os.system(playsound)
	time.sleep(60)
	GPIO.output(LIGHT_CTL_PIN,False)
	GPIO.output(STATUS_PIN,False)

try:
	GPIO.add_event_detect(PIR_PIN, GPIO.RISING, callback=MOTION)
	while 1:
		time.sleep(100)

except KeyboardInterrupt:
	GPIO.cleanup()

GPIO.cleanup()

The smarter way would be to track xscreensaver's state, so the lights would switch on and off with the tap list display. And I think that would want to be managed by a separate python script instead of the pir_run file. Theoretically the separate file would watch xscreensaver and just follow along.

See the discussion of the -watch command in the xscreensaver-command manual. I believe a script could avail itself of this to track the state of the tap list console and switch your SSR on and off.

If you get it to work please post your code!

Cheers!
 
Hi All,

First I am new to messing around with my Raspberry Pi, currently I am using Raspberry Pints, I have also added the PIR motion sensor to wake the screen when motion is detected. All is working great however I wanted to also integrate an additional function to trigger an SSR to turn on the fridge lights when the same motion is detected, I have my SSR wired into GPIO24 (Pin18 & Pin20 for Ground) and I am having a hard time manipulating the code to get the SSR to also switch when motion is detected.

Any and all help is much appreciated, below is my current code running for the screen wake.



Also a pic of my beer fridge.

7VwXVSc.jpg


You could just go to lowes/home depot and get a motion sensor and wire it in line with the fridge lights.
 
Got the SSR controlling the lights with a timer, working on a -watch command to trigger based on the xscreensaver state, i'll post back as i get more success.

Thanks for all the help y'all
 
If it's dead I have an extra B model I'd be happy to send to you. Funny story, I thought I ordered the Pi 2, but ended up with 2 Pi due to some shady wording on the advertisement. Still seems to be working great for me.

Thank you again for your awesome offer. Luckily I had a few minutes to dork around with mine tonight and when I removed the alamode and powered up the pi it came on with no issue. Put the alamode back and it worked again. Now I gotta get the meters back up and I'm golden. I think I will take this opportunity to do a fresh install.
Thanks again for the offer though.
 
How complicated is it to get this up and running on an arduino instead of the alamode
 
Daytripper or anyone really....

I followed your PIR install, I can get the test to detect motion, I can force the script to run,, and get it to work properly. However, when I restart, it will not work(without manually starting the script). I have this in my autostart folder.

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
sudo python pir_run.py


What am I missing?


Thanks!
 
Somewhere along the last year LXDE acquired an(other) autostart file that is associated with the user. My guess is you put the command in the generic autostart file which apparently no longer executes when the desktop loads. There have been a few references in one or the other R'Pints threads where others ran into the exact same issue.

As my installations pre-date this change I can't even tell you where the new file is but it shouldn't be hard to find...

Cheers!
 
Somewhere along the last year LXDE acquired an(other) autostart file that is associated with the user. My guess is you put the command in the generic autostart file which apparently no longer executes when the desktop loads. There have been a few references in one or the other R'Pints threads where others ran into the exact same issue.

As my installations pre-date this change I can't even tell you where the new file is but it shouldn't be hard to find...

Cheers!


Same folder, if you use the default it is LXDE-Pi
 
instead of reading through 164 pages does any one have instructions on installing the OS on a iMac platform? thanks amazon just delivered all the pieces for my build :mug:
 
I was just tried to access the raspberry pints website and it looks like its down? Is anybody else having this issue??
 
Hello everyone, we are so sorry about the website issues. We have been working on trying to get the server back up but in the end I had to move us to a new host. We are now up and running, it may take another 24 hours for the DNS to propagate but most of you should start seeing it soon.

Thank all of you for your patience! to show our gratitude, we are offering $5 off the RaspberryPints software from now until Sunday ;) LOL. All jokes aside, thank you thank you thank you all for your support!!
 

Latest posts

Back
Top