[Version 2 Release] RaspberryPints - Digital Taplist Solution | Page 105 | HomeBrewTalk.com - Beer, Wine, Mead, & Cider Brewing Discussion Community.

Homebrew Talk

Help Support Homebrew Talk by donating:

  1. Dismiss Notice
  2. We have a new forum and it needs your help! Homebrewing Deals is a forum to post whatever deals and specials you find that other homebrewers might value! Includes coupon layering, Craigslist finds, eBay finds, Amazon specials, etc.
    Dismiss Notice

[Version 2 Release] RaspberryPints - Digital Taplist Solution

Discussion in 'Kegerators & Keezers' started by skemp45, Aug 20, 2014.

 

  1. RandR+

    Well-Known Member

    Posted Jan 28, 2019
    I don't think its this error but there is an odd error if you try to upload the sketch when something else is using the serial. like if the flowmonitor python is running at the same time you try to upload.
     
  2. Cruz1n

    Active Member

    Posted Jan 29, 2019
    Ok I thought I was done but alas having issues getting the screensaver to activate. The script and PIR work and if I manually preview the screensaver they will deactivate it but it wont activate when left idle. Any ideas?
     
  3. day_trippr

    We live in interesting times...

    Posted Jan 29, 2019
    Could you rephrase the content of the second sentence so I have some idea what you're actually seeing? :)
    And tell me how you know the PIR and script "work"...

    Cheers!

    [edit] If I go out on a limb and assume that the test script is what works, then the probability is the run time script isn't running.

    Try running the following command when you think the pir_run.py is running:

    ps aux |grep pir_run

    The response should look like this:

    Code:
    [email protected] ~ $ ps aux |grep pir_run
    root      2939  0.0  0.1   5080  1400 ?        S     2018   0:00 sudo python /home/pi/pir_run.py
    root      2964  0.0  0.4  16916  3824 ?        Sl    2018   0:05 python /home/pi/pir_run.py
    pi       14789  0.0  0.1   4044  1584 pts/0    S+   20:40   0:00 grep --color=auto pir_ru
    [email protected] ~ $
    
    If you only get one line that's actually the query itself, and the most likely problem is the pir_run.py startup command is in the wrong LXDE startup file.

    We used /etc/xdg/lxsession/LXDE/autostart for Wheezy but Jessie and Stretch need to use /home/pi/.config/lxsession/LXDE-pi/autostart.

    Cheers!
     
    Last edited: Jan 29, 2019
  4. Cruz1n

    Active Member

    Posted Jan 29, 2019
    Sorry I wasn’t more clear. My problem is the screensaver won’t turn on after a period of time. If I open the screensaver and select preview it goes on and motion in front of the PIR turns it off. The test script also works when run.
     
  5. day_trippr

    We live in interesting times...

    Posted Jan 29, 2019
    Ok, so it's not that the PIR isn't waking the RPi out of the screensaver, it's that the screensaver isn't kicking in?

    Cheers!
     
  6. Cruz1n

    Active Member

    Posted Jan 29, 2019
    Exactly, I know not exactly related to the forum but thought you guys might have some ideas.
     
  7. Red_Rhino

    Member

    Posted Jan 29, 2019
    Anyone have an idea of why mine will not wake up from the screensaver with motion? It test perfectly with “motion detected” in the terminal.

    Also I’ve read some post on here about what people are using for mounting RPI. I used a door lock relay from my old car audio days and it turned out pretty slick. The wire harness even fits on the RPI. Just a small amount of hot glue to hold it in place inside. Then drill two small holes to have access to the adjustment knobs. You can find it online mostly from EBay. 451m micro door lock relay
    https://www.ebay.com/p/DEI-451M-Door-Lock-Relay-Keyless-Car-Alarm-Viper-Python-Avital/1811813553

    89AC5EA9-9453-476F-8EF1-DDE5280F221A.jpeg C96D8B2C-1064-467A-8BF3-05C9CC6BF7DC.jpeg
     
  8. Cruz1n

    Active Member

    Posted Jan 29, 2019
    Have you added the following?
    sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
    add line sudo python pir_run.py
    Ctrl O, enter ctrl x and then sudo reboot and try again
     
  9. Red_Rhino

    Member

    Posted Jan 29, 2019
    Yup...double checked that.
     
  10. CadiBrewer

    Supporting Member  

    Posted Jan 29, 2019
    Try putting it in /etc/xdg/lxsession/LXDE/autostart

    edit: or /etc/xdg/lxsession/LXDE-pi/autostart

    These are the global locations which should be overridden by your file in the home directory, but try nonetheless.
     
    Last edited: Jan 29, 2019
  11. volsherdeers

    Well-Known Member

    Posted Jan 29, 2019
    sudo python /home/pi/pir_run.py
     
  12. day_trippr

    We live in interesting times...

    Posted Jan 29, 2019
    is it possible the PIR is firing so frequently it doesn't allow the screensaver to actually kick in?
    There are two adjustments on the PIR. Try increasing the retrigger delay pot...

    Cheers!
     
  13. trindade

    Member

    Posted Jan 30, 2019
    I need help.
    I am using the Arduino Uno (clone) with the YF-S201 flow sensor, when the tap flow is low the sensor does not measure. Can you solve this problem?
     

    Attached Files:

  14. RandR+

    Well-Known Member

    Posted Jan 30, 2019
    I am assuming that you mean you are not see a pour being registered for which There is at least two possibilities:
    1. the sensor isn't sensitive enough to measure the flow
    2. logic in the Sketch is filtering out the pour because the count isn't high enough:
    Look for a line like the following and change number after the > to 0 and see if that registers pours
    if ( pulseCount > 100 ) {
    //filter out tiny bursts
     
  15. day_trippr

    We live in interesting times...

    Posted Jan 30, 2019
    Looking at the YF-S201 spec sheet it claims a working range of 1 to 30 liters per minute.
    I run my faucets at roughly 1 ounce per second which works out to ~1.77 LPM. Looking at the ticks vs flow rate in the spec that would result in around 14 ticks per second, which is pretty darned low and may well be triggering the noise filter...

    Cheers!
     
  16. Red_Rhino

    Member

    Posted Jan 30, 2019
    Sorry I misread your instructions. I did not try that, but I just got done doing it and it works like a charm. Thanks so much! I owe you a beer!
     
  17. volsherdeers

    Well-Known Member

    Posted Jan 31, 2019
    Circa 1990 Beverage-Air BM23 retrofitted with SwissFlow SF800's. Unit wasn't cooling below 45.F but after I swapped out the condenser fan, it chills below freezing. Thanks again for all the technical support. Cheers!

    [​IMG]
     
    Last edited: Jan 31, 2019
    LBussy likes this.
  18. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    Raspberry Pi Debian running in a VM for development.
    2019-1-31 Raspberry Pi Desktop Powered by Debian.jpg
     
  19. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    Completely rewritten index.php (aka "The Tap List"). With sample data loaded.
    2019-1-31 Tap List.jpg

    As I work on debugging, etc in Debian, php 7.2, MariaDB does anyone have any requests/tweaks/suggestions/improvements/features I can implement?

    Sorry, pouring free beer isn't possible here...
     
  20. CadiBrewer

    Supporting Member  

    Posted Feb 1, 2019
    Thanks for your work on this. Incorporating the code to have the weight converted to volume for the initial keg volume would be awesome.
     
  21. day_trippr

    We live in interesting times...

    Posted Feb 1, 2019
    Last edited: Feb 1, 2019
    ba-brewer likes this.
  22. LBussy

    A Cunning Linguist  

    Posted Feb 1, 2019
    Dave, eventually you save so much stuff you need a search engine of your own to find it all. Twice now you've sent me links and when I got there and went to bookmark them I found that I already had them :oops:
     
  23. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    This is a simple update to the sql schema. No big deal. I will do, but why are all the dates "2017-11-01 19:25:30"?
     
  24. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    Cider and mead are missing from the "updated" list. What other items are missing?
     
  25. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    Just checking to ensure I'm looking in the correct location. This is Admin Portal -> My Kegs -> Empty weight?
     
  26. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    I searched thru all the RPints code. I see where weight is obtained, saved, changed and shown, but I'm not finding where the weight is actually used for anything.
     
  27. volsherdeers

    Well-Known Member

    Posted Feb 1, 2019
  28. CadiBrewer

    Supporting Member  

    Posted Feb 1, 2019
  29. day_trippr

    We live in interesting times...

    Posted Feb 1, 2019
    Because the table was generated that day?

    Cheers!
     
  30. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    All the dates must change to Now(). However, the list is still missing entries as I noted in a previous posting.
     
  31. Tobor_8thMan

    Well-Known Member  

    Posted Feb 1, 2019
    Unless doing

    http://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-98#post-8479841

    then the weight is unused and no reason to convert to volume. If doing the mod then weight is needed (not volume).

    However, the explanation of use was never completed in post 8479841.
     
  32. CadiBrewer

    Supporting Member  

    Posted Feb 1, 2019
    That mod is really great, especially if you are starting with a partially full keg. Some of us use a spreadsheet to convert the weight and pressure to volume and then enter the volume into 'pints. But with that model, everything is in the system for you to use. With that calculator and a properly balanced serving system, you can expect your flow meters to be within a pint or two of being accurate when you are low on a keg.
     
  33. kaljade

    Well-Known Member

    Posted Feb 1, 2019
    The forum locked me out before I could edit posts three and four, but seeing as we are working on this together (and that I also was planning on incorporating the keg volume kalculator code), I can answer any of your questions in our PM thread.

    Cheers,

    Kal
     
  34. ba-brewer

    I'm not Zog  

    Posted Feb 1, 2019
    Thanks for post this, I was going to just manually add the few styles I used, but this was a time saver.

    There a few more posts that below that on that where required too, I had to do the second link info first to get it to work.
    https://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-76#post-8133794
    https://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-76#post-8135902

    Sort of messes up the beer list syle references so they needed to be edited. I did not have many so it was not a big deal.
     
  35. RandR+

    Well-Known Member

    Posted Feb 1, 2019
    if you want something a little different I did incorporate it into my version. The biggest change is that I made it javascript based so values can be updated after the user types without needing to refresh the page. It might be more work to take what I did and use it but its available if you want it.

    https://github.com/rtlindne/RaspberryPints/blob/master/admin/scripts/kegAssistFunctions.js
    used in: https://github.com/rtlindne/RaspberryPints/blob/master/admin/tap_list.php ~line 519

    p.s. as an added benefit I also put in the framework to have the python check load cells and use the weight from them to update the volume left, but I didn't code up communication to the load cells and don't plan to as I don't want to buy them.
     
    kaljade likes this.
  36. ba-brewer

    I'm not Zog  

    Posted Feb 1, 2019
    @RandR+, does your version of Rpints have the same relationship of kegs and beers?

    It seems a bit awkward that the association of beer and keg only happens at tapping time with the original version.

    Also can your version save pour data for a keg?
    Sometimes I have keg online then take it off to serve something else, not a big deal before but to do this with Rpints I would need to keep track of the last pour info and manually insert it back in.
     
  37. RandR+

    Well-Known Member

    Posted Feb 1, 2019
    In my version you can put a beer in a keg at any time, and you don't need to do it before tapping the keg. You can change the beer in a keg from the tap list screen so if your like me and don't care about tracking kegs you can simple change the beer on tap.


    As for the pour history, it is associated to the tap not the keg, but I see that it would be beneficial to keep the current volume on the keg vs the tap in case you remove it. I will look into adding it in the keg so it is saved.
     
  38. ba-brewer

    I'm not Zog  

    Posted Feb 1, 2019
    Thanks for clarifying RandR+.

    Most of my kegs run to completion once tapped but some either need time or I have a change of taste and swap them out.

    For me I manage kegs not taps, everyone is a bit different I guess. I have a spread sheet to track my kegs and with the original Rpints I would still need the spreadsheet.

    Being able to track the keg date and days online would be nice to have as well. I would image there is probable a way to glean that stuff from the database but I not familiar with SQL.

    Another feature that would be nice is a what's on deck display of beers that are conditioning.
     
  39. kaljade

    Well-Known Member

    Posted Feb 1, 2019
    Nice work @RandR+ you truly are a wizard. Admittedly I tried to keep mine as close to the original RPints as possible to make for an easy upgrade path for existing users. BTW you don't need to refresh the page, just change the keg selection and it'll recalculate.
     
  40. kaljade

    Well-Known Member

    Posted Feb 1, 2019
    If you know all the values (empty keg weight, current keg weight, temp, pressure, altitude, and specific gravity), you could just retap it as long as you have the keg vlume kalculator mod installed, alternatively here's the Excel spreadsheet version:
    https://www.homebrewtalk.com/forum/index.php?threads/633022/

    Keg Volume Calculator
    Cheers,

    Kal
     
Draft saved Draft deleted

Share This Page

Group Builder