[Version 2 Release] RaspberryPints - Digital Taplist Solution | Page 111 | 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. carrsgarage

    Well-Known Member

    Posted Mar 11, 2019
    I just got a Ferment track setup working last night.

    How do I go about installing Raspberry Pints on my 3b+ running Stretch? I don't have flowmeters now, but would like to add them at some point.

    I know there have been some serious improvements made since I tried and failed at installing RPints a while back.
     
  2. RandR+

    Well-Known Member

    Posted Mar 11, 2019
    wanger99 and Thorrak like this.
  3. carrsgarage

    Well-Known Member

    Posted Mar 11, 2019
    Great, thank you!
     
  4. jdunst

    Member

    Posted Mar 11, 2019
    Both tests with establishContact at 1000
    If my baud rate is 9600, I get an endless loop of:
    [email protected]:~ $ tail -f /var/log/rpints.log
    2019-03-11 15:03:22 RPINTS: waiting for alamode to come alive
    2019-03-11 15:03:23 RPINTS: serial connection stopped...
    2019-03-11 15:03:24 RPINTS: flowmonitor aborted, restarting...
    2019-03-11 15:03:24 RPINTS: resetting alamode
    2019-03-11 15:03:25 RPINTS: waiting for alamode to come alive
    2019-03-11 15:03:26 RPINTS: serial connection stopped...
    2019-03-11 15:03:27 RPINTS: flowmonitor aborted, restarting...
    2019-03-11 15:03:27 RPINTS: resetting alamode
    2019-03-11 15:03:28 RPINTS: waiting for alamode to come alive
    2019-03-11 15:03:29 RPINTS: serial connection stopped...
    2019-03-11 15:03:30 RPINTS: flowmonitor aborted, restarting...​

    If my baud rate is 57600, I get this without any looping:
    [email protected]:~ $ tail -f /var/log/rpints.log
    2019-03-11 15:21:33 RPINTS: Could not import RFID Reader, RFID disabled. Assuming SPI not installed/configured
    2019-03-11 15:21:35 RPINTS: no hexfile to flash alamode (or not readable), moving on
    2019-03-11 15:21:35 RPINTS: starting WS server
    2019-03-11 15:21:35 RPINTS: starting tap flow meters...
    2019-03-11 15:21:35 RPINTS: resetting alamode
    2019-03-11 15:21:35 RPINTS: starting command server
    2019-03-11 15:21:35 RPINTS: starting fan control
    2019-03-11 15:21:35 RPINTS: Fan Control fanControl1 is Running
    2019-03-11 15:21:35 RPINTS: Not Configured to run Fan
    2019-03-11 15:21:36 RPINTS: waiting for alamode to come alive​

    I ran both tests with the establishContact at 100 and got the added error of "serial connection stopped..." on the 57600 baud rate setting.
     
  5. RandR+

    Well-Known Member

    Posted Mar 11, 2019
    My guess is that the Uno is still sending the Alive message to fast for the python to process at 9600
    And at 57600 its not making contact with the python to trigger the restart, but that doenst make sense if a delay of 100 generates more log.

    did you try delay of 5000?
     
  6. jdunst

    Member

    Posted Mar 11, 2019
    With both a 5 second delay and a 10 second delay I get the same results at 57600 baud:
    [email protected]:~ $ tail -f /var/log/rpints.log
    2019-03-11 15:57:18 RPINTS: Could not import RFID Reader, RFID disabled. Assuming SPI not installed/configured
    2019-03-11 15:57:20 RPINTS: no hexfile to flash alamode (or not readable), moving on
    2019-03-11 15:57:20 RPINTS: starting WS server
    2019-03-11 15:57:20 RPINTS: starting tap flow meters...
    2019-03-11 15:57:20 RPINTS: starting command server
    2019-03-11 15:57:20 RPINTS: resetting alamode
    2019-03-11 15:57:20 RPINTS: starting fan control
    2019-03-11 15:57:20 RPINTS: Fan Control fanControl1 is Running
    2019-03-11 15:57:20 RPINTS: Not Configured to run Fan
    2019-03-11 15:57:21 RPINTS: waiting for alamode to come alive​
     
  7. carrsgarage

    Well-Known Member

    Posted Mar 12, 2019
    I ran your RandR+ installation script last night. Something went wrong with the installation of Apache2. I cannot start Apache2, therefore RPints doesn’t work.

    Now, I had already installed Fermentrack on this Raspberry Pi and had installed the legacy support for programs like RPints. Is it possible that this screwed up the Apache2 installation? Should I wipe the SD card and install RPints first followed by Fermentrack?
     
  8. RandR+

    Well-Known Member

    Posted Mar 12, 2019
    My thought is that the python is only looking for 9600 baud so the 57600 from the Uno is not allowing it to connect. You can try changing the python to 57600 also by changing line ~214 of python/FlowMonitor.py from
    self.arduino = serial.Serial(self.port,9600,timeout=.5)
    to
    self.arduino = serial.Serial(self.port,57600,timeout=.5)
     
  9. RandR+

    Well-Known Member

    Posted Mar 12, 2019
    I tried to install Fermentrack on a test system with RPints installed already and it failed on nginx installation.

    Since nginx is a webserver it makes sense that both nginx and apache cannot run on the same machine by default because they try to use the same port.

    Fermentrack has a support article about this: http://docs.fermentrack.com/en/master/getting started/Apache and PHP Support.html?highlight=apache
     
  10. jdunst

    Member

    Posted Mar 13, 2019
    @RandR+ Thanks for the suggestions. If I do that I get a loop of:
    [email protected]:~ $ tail -f /var/log/rpints.log
    2019-03-12 20:58:53 RPINTS: waiting for alamode to come alive
    2019-03-12 20:58:54 RPINTS: serial connection stopped...
    2019-03-12 20:58:55 RPINTS: flowmonitor aborted, restarting...
    2019-03-12 20:58:55 RPINTS: resetting alamode
    2019-03-12 20:58:56 RPINTS: waiting for alamode to come alive
    2019-03-12 20:58:56 RPINTS: serial connection stopped...
    2019-03-12 20:58:57 RPINTS: flowmonitor aborted, restarting...
    2019-03-12 20:58:57 RPINTS: resetting alamode
    In Arduion IDE Serial Monitor with flowmon stopped, I still get:
    alive
    alive
    alive
    C:4:2:10:11:12:0:300:35:30:250:0:0|
    StatusCheck;
    U;-1;11;251
    P;-1;11;499​
     
  11. RandR+

    Well-Known Member

    Posted Mar 13, 2019
    So the Uno code is working based on the serial monitor output, now to get the flowmon service going.

    did you change python/Config.py lines ~13 and 16 removing False# to leave just
    config['xxxxx.debug' ] = True
    ?

    The log should change and give more details as to what is going on.
     
  12. jdunst

    Member

    Posted Mar 13, 2019
    The tests yesterday were with establishContact at 1000 and just line 13 flowmon debug = True. Adding dispatch debug = True I get this with all baud rates (flowmon.py & raspberrypints.ino) at 57600 I get this looped:
    [email protected]:~ $ tail -f /var/log/rpints.log
    2019-03-13 11:29:33 RPINTS: serial connection stopped...
    2019-03-13 11:29:33 RPINTS: 'module' object has no attribute 'system_info'
    2019-03-13 11:29:34 RPINTS: flowmonitor aborted, restarting...
    2019-03-13 11:29:34 RPINTS: resetting alamode
    2019-03-13 11:29:35 RPINTS: waiting for alamode to come alive
    2019-03-13 11:29:35 RPINTS: serial connection stopped...
    2019-03-13 11:29:35 RPINTS: 'module' object has no attribute 'system_info'
    2019-03-13 11:29:36 RPINTS: flowmonitor aborted, restarting...​

    With flowmon.py set back to 9600 this is looped:
    [email protected]:~ $ tail -f /var/log/rpints.log
    2019-03-13 11:38:26 RPINTS: starting command server
    2019-03-13 11:38:26 RPINTS: starting fan control
    2019-03-13 11:38:26 RPINTS: Fan Control fanControl1 is Running
    2019-03-13 11:38:26 RPINTS: Not Configured to run Fan
    2019-03-13 11:38:27 RPINTS: waiting for alamode to come alive
    2019-03-13 11:38:27 RPINTS: serial connection stopped...
    2019-03-13 11:38:27 RPINTS: 'module' object has no attribute 'system_info'
    2019-03-13 11:38:28 RPINTS: flowmonitor aborted, restarting...
    2019-03-13 11:38:28 RPINTS: resetting alamode
    2019-03-13 11:38:29 RPINTS: waiting for alamode to come alive​

    With both flowmon.py & raspberrypints.ino baud set to 9600 this is looped:
    [email protected]:~ $ tail -f /var/log/rpints.log
    2019-03-13 11:45:30 RPINTS: starting WS server
    2019-03-13 11:45:30 RPINTS: starting tap flow meters...
    2019-03-13 11:45:30 RPINTS: resetting alamode
    2019-03-13 11:45:30 RPINTS: starting command server
    2019-03-13 11:45:30 RPINTS: starting fan control
    2019-03-13 11:45:30 RPINTS: Fan Control fanControl1 is Running
    2019-03-13 11:45:30 RPINTS: Not Configured to run Fan
    2019-03-13 11:45:31 RPINTS: waiting for alamode to come alive
    2019-03-13 11:45:32 RPINTS: serial connection stopped...
    2019-03-13 11:45:32 RPINTS: 'module' object has no attribute 'system_info'
    2019-03-13 11:45:33 RPINTS: flowmonitor aborted, restarting...
    2019-03-13 11:45:33 RPINTS: resetting alamode
    2019-03-13 11:45:35 RPINTS: waiting for alamode to come alive
    2019-03-13 11:45:35 RPINTS: serial connection stopped...
    2019-03-13 11:45:35 RPINTS: 'module' object has no attribute 'system_info'​
     
  13. RandR+

    Well-Known Member

    Posted Mar 13, 2019
    That is my error that is stopping your system.

    Someone else ran into an issue with some calls that were changed from python 2 to 3 when running on Jessie. I tried to add smarts to call the correct function based on version, the problem was I somehow committed the wrong call to check the version.

    I just committed the fix, update python/FlowMonitor.py from GIT or just replace all reference of system_info with version_info in FlowMonitor.py
     
    jdunst likes this.
  14. jdunst

    Member

    Posted Mar 13, 2019
    @RandR+ Sir, I'm humbled by your generosity of time and talent. IT WORKS!! Thank you!:bravo:
    I'm going to reload just Stretch with desktop instead of NOOBs as I loaded NOOBs to see if a driver (or something) was missing. Again, THANKS.
     
  15. day_trippr

    We live in interesting times...

    Posted Mar 14, 2019
    Next week or so is looking like a kick-fest here.
    First soldier down, 10 past zero. I can live with that :)

    upload_2019-3-13_22-30-2.png

    Cheers!
     
    DaniFilth likes this.
  16. CadiBrewer

    Supporting Member  

    Posted Mar 14, 2019
    Not that I doubt your abilities, but it looks like you are going to need help with that Kolsch. I'm here if you need me.
     
  17. jdunst

    Member

    Posted Mar 14, 2019
    In honor of Pi Day tomorrow, I'd like to share how I've gotten RaspberryPints and flow meters operational on a Raspberry Pi 3B+ and Clone Arduino UNO R3. What worked for me is:
    1. used balenaEtcher and latest Raspbian Stretch with Desktop and recommended software written to a 64gb microSD on Win10 PC
    2. updated all programs on first boot of Raspbery Pi
    3. used @RandR+ fantastic install script, just cut and paste from lines 14, 18, & 20 and say "yes" when asked about configuring initial database:
    4. found MAC address of RPi in Terminal: ifconfig eth0
    5. updated home router for a static IP address
    6. Terminal: sudo /etc/init.d/flowmon stop
    7. Terminal to kill hex file: sudo mv /var/www/html/arduino/raspberrypints/raspberrypints.cpp.hex /var/www/html/arduino/raspberrypints/raspberrypints.cpp.hex.save
    8. Terminal: sudo nano /var/www/html/python/Config.py (open the window to full page) the last line should be: config['flowmon.port'] = '/dev/ttyAMC0' (mine was set at /dev/ttySO) if this is not the last line, go up and remove the ## from the beginning of it
    9. Arduino IDE: Tools Tab: Board: Arduino UNO, Serial Port: /dev/ttyACM0.
    10. Arduino IDE: Sketch Tab: Add File: Choose file system on left panel: var/www/html/arduino/raspberrypints/raspberrypints.ino "Open"
    11. Arduino IDE: find "establishContact" and change the timing from (100) to (500)
    12. Terminal: sudo /etc/init.d/flowmon start
    13. Chromium: log into rPints using the static IP address established earlier, click on the "Your Logo Here" to get to the configurations page
    When using Terminal, "^" is the Ctrl key. When in "sudo nano" you can search for specific text like "establishContact" using "^W", save your changes using "^O" ("Enter" key to overwrite existing file) and exit using "^X" The up/down/left/right arrow keys are the only other way I know to move around in the program lines. Thanks to all who have contributed to this forum! I hope this helps others get through the learning curve a little quicker.
     
    Last edited: Mar 14, 2019
    Fuzzbuckets likes this.
  18. DaniFilth

    Well-Known Member

    Posted Mar 14, 2019
    Hi all. Does anyone know if i can control my pi desktop via vnc from an outside network?
    I've currently set up noip and can connect to my pi from anywhere but i can only see the Raspberrypints screen which is great for now showing off which beers i have on tap but i'd like to be able to open another web page at least so i can log into my router.

    Any ideas?
     
  19. Brewing Badger

    Member

    Posted Mar 15, 2019
    Any progress on this @kaljade ?
    I totally understand if you havent got the time off course. Just wondering.

    Regards BB
     
  20. Car Ramrod

    Well-Known Member

    Posted Mar 15, 2019
    I was coming here to post my recent developments and saw this. I went to install fermentrack on my working Stretch RPints w/ flowmeters using Uno hard wired using Rand's script. Well i dont think Fermentrack works on stretch for the same reason RPints didnt before all this work because PHP5 ins available on stretch. Thorrak is aware but idk what he plans to do. Would be nice to have both Rand's RPints and ferment track to be installed easily with their 2 scripts. So for the time being i just installed fermentrack on another RPi with Jessie.

    Which i ran into another issue. Does teamviewer not work with jessie? I downloaded the RPi temviewer installer and it isnt working? I thought it might be cause it is the Stretch version but i cant find a Jessie specific version. Doesn anyone have a link?
     
  21. CadiBrewer

    Supporting Member  

    Posted Mar 15, 2019
    Fermentrack and RaspberryPints don't work well together because of the Apache vs. NGINX differences, not because Fermentrack doesn't work on Stretch. I did a clean install of Fermentrack on a new Stretch install the other day and it was flawless. Give it a try again with a new install of Stretch.
     
    carrsgarage likes this.
  22. Car Ramrod

    Well-Known Member

    Posted Mar 15, 2019
    you did a lot more than what i had to do i didnt have to do steps 6-12. Here are my documented steps for installing the script and changing from alamode to Uno.

    Setup Static IP
    https://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-72#post-8087858
    edit
    Code:
    sudo nano /etc/dhcpcd.conf
    Add these lines to the bottom of the page
    use the ip you want and your routers address
    RandR+ Install
    https://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-96#post-8470336
    download
    https://raw.githubusercontent.com/rtlindne/RaspberryPints/master/util/installRaspberryPints
    to
    /home/pi
    run

    Code:
    chmod +x installRaspberryPints
    Code:
     sudo ./installRaspberryPints
    whole process will take a while
    With RandR's script, if not using an alamode you need to edit the config.py to turn on the UNO
    Code:
    sudo nano /var/www/html/python/Config.py
    Add a # to the Alamode line and remove the # on the UNO/USB line

    To see if the Uno is getting recognized
    Run
    Code:
    sudo nano /var/www/html/python/Config.py
    edit to
    #logging settings for flowmon
    config['flowmon.debug' ] = True

    then you can look at the /var/log/rpints.log to see if it loads OK. and revert back to False#True




    I did find that a Uno Clone does not get recognized. Im assuming i would have to go fine the code change in this thread and edit that to get a Uno Clone to work.
     
    Last edited: Mar 15, 2019
  23. Car Ramrod

    Well-Known Member

    Posted Mar 15, 2019
    yea i know the Apache NGinx difference but Thorrack mentioned something about PHP5 not being available on stretch and Rand has to "create" PHP7. Like i said i know none of this but here is the conversation over in the fermentrack thread. I will try to install it on stretch tonight.
    https://www.homebrewtalk.com/forum/...-for-raspberry-pi.649303/page-10#post-8546953
     
  24. CadiBrewer

    Supporting Member  

    Posted Mar 15, 2019
    I hope my post didn't come off as prick-ish. It certainly wasn't meant to. I don't know much more than you do, I'm only trying to make sure there isn't any unnecessary confusion for folks coming along after.
     
  25. kaljade

    Well-Known Member

    Posted Mar 15, 2019
    Lol, yeah so much life got in the way since then:

    I took a redundancy from my previous employer (I had hoped to have some significant downtime before my next employment, but...), took a new job with a step learning curve within weeks, which was all consuming, then just as I was about to resurface was offered a promotion (in record time at the company), and the all consuming steep learning curve was back again...

    Should have some time freeing up weekend after next (but I do expect the family will want to reserve some/most of it so I'll have to work around their schedule).

    Cheers,

    Kal
     
    DaniFilth and Brewing Badger like this.
  26. Car Ramrod

    Well-Known Member

    Posted Mar 15, 2019
    Oh no I didn't take it that way. Everyone has been way more than forthcoming with information.
     
  27. carrsgarage

    Well-Known Member

    Posted Mar 15, 2019
    I started off with a fresh SD card and an absolutely clean install of Fermentrack using Stretch and php7 and it worked beautifully. I tried adding RaspberryPints and it wouldn't work.

    Then, I used a fresh SD card and an absolutely clean install of RandR+ fork of RaspberryPints and it worked beautifully. I tried adding Fermentrack and getting nginx to serve up the Apache2 files and it was a no-go. Nginx took over, but I couldn't access RaspberryPints anymore.
     
  28. carrsgarage

    Well-Known Member

    Posted Mar 15, 2019
    @kaljade what are you using for load sensors and how do you have them set up? I noticed that your calculations are included in RandR+ fork. I think I'd rather go that route than flow meters.

    Thanks!
     
  29. Thorrak

    Supporting Member  

    Posted Mar 15, 2019
    I'm going to try to get this working this weekend, and will update the docs accordingly assuming I can get it going. Apologies for the silence from my end on this one - this is something that I unfortunately need to spend some time diving into, as it's not an issue I've previously encountered.
     
    carrsgarage likes this.
  30. carrsgarage

    Well-Known Member

    Posted Mar 15, 2019
    No pressure, @Thorrak It's been kind of fun trying to get it to work - I've learned a little bit about programming (I just don't have the mind for it; my brother is a whiz!).
    I did end up following the steps 4 instructions on GitHub and replaced the 5s with 7.0s and everything went well up until the very end.

    Thanks for everything you've done!!!
     
  31. Car Ramrod

    Well-Known Member

    Posted Mar 15, 2019
    Yea man. This isn't y'all's fault. Y'all are the ones keeping all of these things alive. But I would like to know when they can be running congruently on stretch. It seems you and Rand are the 2 major coders on here wanting to do the heavy lifting. I wish someone like y'all would take the heatermeter code and update it to data log and such.
     
  32. kaljade

    Well-Known Member

    Posted Mar 16, 2019
    I don't have load sensors set up, I just weigh the full keg before I tap it, and use flow meters after that. RandR+ introduced the load sensor code, my work was only the weight/volume calculations.

    These are scales I use FWIW: Accuteck ShipPro 110lbs x 0.1 oz. Digital Shipping Postal Scale, Black (W-8580-110-Black) https://www.amazon.com/dp/B00KYA0RC2/ref=cm_sw_r_cp_apa_i_tOuJCbH1Q2FFS

    Cheers,

    Kal
     
    ba-brewer likes this.
  33. carrsgarage

    Well-Known Member

    Posted Mar 16, 2019
    Ah, gotcha! Thanks!
     
  34. DaniFilth

    Well-Known Member

    Posted Mar 16, 2019
    Oh no, RaspberryPints.com is down/suspended
     
  35. day_trippr

    We live in interesting times...

    Posted Mar 16, 2019
    That happens from time to time as the originators decide whether to re-up their service...
     
  36. kaljade

    Well-Known Member

    Posted Mar 16, 2019
    Lately there's been a popup on there asking if you'd be willing to pay for continued development, so either there were enough yeses to justify updating the site or not enough to continue hosting it. Or is that just the eternal cynic in me...?
     
  37. day_trippr

    We live in interesting times...

    Posted Mar 16, 2019
    One of the members of the original team was on here a few months back doing an informal survey of interest in a more fleshed-out version that could entail a user fee of some sort. I expect the pop-up was directly related to that.

    We've gone through quite a few "outages" over the years that eventually resolved favorably, so I remain optimistic :)

    Cheers!
     
  38. LBussy

    A Cunning Linguist  

    Posted Mar 17, 2019
    Yep, it's built in:

    https://www.realvnc.com/en/raspberrypi/
    Those pop-ups may have been the single-most annoying application of dumbassery that I have ever witnessed. No matter what you said they kept coming back.

    Given that sort of coding skill, why would one want to pay them for anything related to code?
     
    kaljade, carrsgarage and DaniFilth like this.
  39. Tobor_8thMan

    Well-Known Member  

    Posted Mar 17, 2019
    Do we really need the RP site? I've already rewritten the RPints code to run in the latest Debian 9.x, php 7.2.x, MariaDB, et al.
    Believe enough have tested.

    Only thing we're missing are the download/setup/configuration instructions (for Debian, php, etc) write-up.

    Should I post the latest RPints?
     
  40. Car Ramrod

    Well-Known Member

    Posted Mar 17, 2019
    Rands script FTW! I do think that this thread should choose a code version and stop production on other forks and all put resources into one version. But I can't tell people what to do as I have done nothing but annoy people for help. Haha
     
    carrsgarage likes this.
Draft saved Draft deleted

Share This Page

Group Builder