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

    Active Member

    Posted Jan 19, 2019
    Retried, my permissions to this directory and it's files are ok.
     
  2. day_trippr

    We live in interesting times...

    Posted Jan 19, 2019
    I wonder if the last line of the jessie-setup script didn't execute?
    It's supposed to allow all access levels to execute the files in the path as the file owner.

    Here's the whole jessie-setup script. I'd check permissions on any path listed...

    Code:
    #!/bin/bash
    cp avrdude /usr/bin/avrdude
    cp avrdude /usr/share/arduino/hardware/tools
    cp avrdude.conf  /usr/share/arduino/hardware/tools
    cp boards.txt  /usr/share/arduino/hardware/arduino
    sed -i'bk' -e's/console=ttyAMA0,115200.//' -e's/kgdboc=tty.*00.//'  /boot/cmdline.txt
    systemctl stop [email protected]
    systemctl disable [email protected]
    cp 80-alamode.rules /etc/udev/rules.d
    chown root /usr/bin/avrdude /usr/share/arduino/hardware/tools/avrdude
    chgrp root /usr/bin/avrdude /usr/share/arduino/hardware/tools/avrdude
    chmod a+s /usr/bin/avrdude /usr/share/arduino/hardware/tools/avrdude
    
    Cheers!
     
  3. Cruz1n

    Active Member

    Posted Jan 19, 2019
    They all seem ok, this is what they look like if i check them. I tried rerunning jessie-setup and also ran the lines individually, still the same. Screen Shot 2019-01-19 at 3.03.09 PM.png
     
  4. day_trippr

    We live in interesting times...

    Posted Jan 20, 2019
    Strange. Fortunately you only need the IDE briefly for this project, and hopefully whatever is messing with that port's availability won't affect the getting data out of the Alamode.

    Press onward. If you run into a show-stopper it might reveal what's going on...

    Cheers!
     
  5. Tobor_8thMan

    Well-Known Member  

    Posted Jan 20, 2019
    Upgrade project (Debian 9.x, php 7.x and MariaDB 10.x) is making progress. Install is successful.

    Currently testing the Admin portal.
    2019-1-19 Admin Portal.jpg
     
    kaljade and CadiBrewer like this.
  6. CadiBrewer

    Supporting Member  

    Posted Jan 20, 2019
    Awesome! Thanks for devoting the time to this project to keep it going for those who follow...
     
  7. Cruz1n

    Active Member

    Posted Jan 20, 2019
    No joy :( about to reformat card and start again
     
  8. day_trippr

    We live in interesting times...

    Posted Jan 20, 2019
    Ugh. Never like to see that.
    Consider doing a check-pointed build using a second SD card to do a full backup after a major stage of the build is accomplished...

    Cheers!
     
  9. day_trippr

    We live in interesting times...

    Posted Jan 20, 2019
    Nice! And thanks for the update! :mug:
     
  10. Tobor_8thMan

    Well-Known Member  

    Posted Jan 20, 2019
    Anyone have any suggestions on clarifying the install screen? Here is the new version with a few changes I made in the hopes of clarifying things. I also added logic to check if everything is prevent when the Setup! button is clicked. Processing will not continue unless are values are supplied.
    RPints-Setup-1.jpg
    RPints-Setup-2.jpg
     
    bscuderi likes this.
  11. CadiBrewer

    Supporting Member  

    Posted Jan 20, 2019
    Looks great and very self explanatory. "Installation" is spelled wrong in the first line.
     
  12. Tobor_8thMan

    Well-Known Member  

    Posted Jan 20, 2019
    Doh!
     
  13. kaljade

    Well-Known Member

    Posted Jan 20, 2019
    Looking great mate! I'll run the install on my dev system tonight when I get home. Love your work!
     
  14. Cruz1n

    Active Member

    Posted Jan 20, 2019
     
  15. Tobor_8thMan

    Well-Known Member  

    Posted Jan 20, 2019
    Walking thru testing things and I'm not getting any existing data. During install I checked the load sample data. phpMyAdmin shows data in the tables. Time to debug...

    Discover the function db() sets $link, but the variable is local in scope. I guess the prior version of php handled variable scope differently than php 7.x At least I see what is happening.
     
  16. Cruz1n

    Active Member

    Posted Jan 21, 2019
    Well if anything at least I am consistent. I formatted and started from scratch with my install, was methodical in my steps and checked all results for errors. I still have the same result with the menu greyed out in Arduino IDE except when I run as root. I will try again tomorrow with a newer pi as I have several floating around. Would love to understand root cause. I believe some other service on the device is trying to use the serial rather than it being a permission issue.
     
  17. Tobor_8thMan

    Well-Known Member  

    Posted Jan 21, 2019
    As I suspected the db connection wasn't being passed into any of the class methods in the /admin/includes/managers.

    Once I modified the code to pass the connection value I'm now seeing the sample beers loaded during setup.

    2019-1-21 Admin Beers.jpg

    Modifications continue...
     
    bscuderi and kaljade like this.
  18. CadiBrewer

    Supporting Member  

    Posted Jan 21, 2019
    Let me know when you need a beta tester. I'm happy to help.
     
    bscuderi and kaljade like this.
  19. kaljade

    Well-Known Member

    Posted Jan 21, 2019
    Thanks for the offer @CadiBrewer! The plan is to have both an upgrade pathway for existing Wheezy/Jessie users plus a fresh install pathway for new users, so when we are ready volunteers will be most welcome.
     
  20. Tobor_8thMan

    Well-Known Member  

    Posted Jan 21, 2019
    Thanks. Getting close. Currently testing the Setup and Admin portions. I need to modify the Tap List logic.
     
    kaljade likes this.
  21. Tobor_8thMan

    Well-Known Member  

    Posted Jan 21, 2019
    Admin Kegs
    2019-1-21 Admin Kegs.jpg
     
    bscuderi and kaljade like this.
  22. Tobor_8thMan

    Well-Known Member  

    Posted Jan 21, 2019
    Admin Taps
    2019-1-21 Admin Taps.jpg
     
    bscuderi and kaljade like this.
  23. Tobor_8thMan

    Well-Known Member  

    Posted Jan 21, 2019
    The tap list running in Debian, et al.
    2019-1-21 Tap List.jpg
     
    kaljade likes this.
  24. CadiBrewer

    Supporting Member  

    Posted Jan 21, 2019
    Pretty friggin' cool!
     
  25. Tobor_8thMan

    Well-Known Member  

    Posted Jan 21, 2019
    Thanks. php, MariaDB, etc are not difficult. Doing maintenance programming on existing code is, however, challenging. I must put myself in the developer (or in this case the developers) mindsets. Feel as if I'm a doctor operating on a patient. I don't want the patient to die. When I'm finished operating (modifying code) I want the patient to stand up and walk.

    I did fix a number of programming errors and inefficient code in the original RPints code.

    For the most part the code is lacking any error checking/trapping. That's the next task for me.
     
    kaljade likes this.
  26. day_trippr

    We live in interesting times...

    Posted Jan 21, 2019
    One column short of a party! :ban:
     
  27. ratinator

    Well-Known Member

    Posted Jan 22, 2019
    I dont understand why this hasnt been made as an app or program that runs on a normal desktop. Looks great and something I would most definately use, but buying a $100 raspberry pi seems unnecessary. Can this not be setup with a simple android tablet?
     
  28. ba-brewer

    I'm not Zog  

    Posted Jan 22, 2019
    this was on the raspberrypints site, http://bernerbits.github.io/ras-pints-without-pi/
    there is also this thing https://taplist.io/
     
  29. ratinator

    Well-Known Member

    Posted Jan 22, 2019
    I have downloaded the zip file on my phone/tablet. Is there a program that can run this zip? I mean I have a rooted and kodi programmed. There has to be some type of android software that can run this zip file without connecting to a pc. I can literally get anything
     
  30. day_trippr

    We live in interesting times...

    Posted Jan 22, 2019
    $100 for a RaspberryPi?! Which model is that - the Platinum Edition? :drunk:

    Cheers!
     
  31. ratinator

    Well-Known Member

    Posted Jan 22, 2019
    Umm ya all the kits I see on amazon are $100 and even in his guide he states its about $100 after all the cables, sd card, etc. I would think a rooted android should be able to load pretty much anything. Would like to show his program directly on my tablet or control it with my nividia shield

    I am not crazy familar with the pi, I own a lot of android devices, I would think if I can run emulators and .iso files I would be able to run this with the proper software
     
  32. day_trippr

    We live in interesting times...

    Posted Jan 22, 2019
    fwiw, the pricing shown on the RaspberryPints web site is quite dated and overstates the cost of most components. A Pi Zero W is all you need if you're not going to run flow meters. Full kits with case/wall wart/micro-to-mini USB and HDMI adapters for $27 delivered via Amazon. Add an SD card for $8 and you're in business. Once the Zero W is loaded up and running one can display the tap list on anything with a browser...including a tablet...

    Cheers!
     
  33. ba-brewer

    I'm not Zog  

    Posted Jan 22, 2019
    Sorry cant help you on how to unzip it without a pc, seem like there should be app somewhere to do that.
     
  34. day_trippr

    We live in interesting times...

    Posted Jan 22, 2019
    Lots of zipper-capable apps for android and iOS...
     
  35. ratinator

    Well-Known Member

    Posted Jan 22, 2019
    Keep in mind I am in Canada and with exchange it is about 30%, regardless with a bit of looking around I am sure we can find something to boot this. On playnow store there is php/mysql/apach apps and there is also git loaders but I am just not familar with this technology as stated above.
    Theres lots of unzipping programs, I can unzip the file I just need something to load the repo. I quickly tried a few things on kodi with no luck
     
  36. kaljade

    Well-Known Member

    Posted Jan 22, 2019
    I intend on testing the flowmeters on my kit before we release to beta testers ;)
     
    bscuderi likes this.
  37. Red_Rhino

    Member

    Posted Jan 22, 2019
    PLEASE HELP!

    A few years ago I picked up everything I need to make a digital taplist w/o flow meters and tried my best to follow the directions. After yelling at my computer for countless hours I through in the towel and gave up. Well now I’m giving it another try and could use any advice on how to make it past step 6.

    In step 4 “Install the LAMP stack” I get this message

    Reading package lists… Done

    Building dependency tree

    Reading state information… Done

    Package Php5 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another souce

    Package Php5-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another souce

    E: Package ‘php5’ has no installation candidate

    E: Package “php5-mysql” has no installation candidate.


    I attempt to delete the Apache page and get the error message so not sure if that has anything to do with it.

    When I attempt step 7, I go to the IP address 10.0.0.181 and I get the error message “cannot open page because it could not connect to the server.”

    I have started over countless times even reformatting the card and starting completely over. Why cant someone just sale this thing all downloaded and all I have to do is log in and connect it to my wifi and go…haha!


    Any help would be greatly appreciated! Also thanks to everyone who has already contributed so much to this thread.
     
  38. Cruz1n

    Active Member

    Posted Jan 22, 2019
    Hi, You need to download the older version on Noobs v2_4_2, there is a link in the forum somewhere as php5 has been replaced with php7 on the version you have. Once you install that start again but use the alterations which are listed by Day_Tripper elsewhere in this forum. Go to page one, second post and there is a link to the updated instructions. I am still working on mine as I have had a couple of issues but that's where you need to start
     
  39. ba-brewer

    I'm not Zog  

    Posted Jan 22, 2019

    location of jessie noobs
    https://www.homebrewtalk.com/forum/...-taplist-solution.487694/page-80#post-8187169
     
  40. Tobor_8thMan

    Well-Known Member  

    Posted Jan 23, 2019
    By chance see the notes in flow_monitor.py? (in the python folder).

    #The following line is for serial over GPIO
    port = '/dev/ttyS0'
    #The following line is for serial over USB
    #port = '/dev/ttyACM0'

    # Edit this line to point to where your rpints install is
    poursdir = '/var/www' <-- THIS is wrong as a normal install is /var/www/html

    Following might provide debugging help
    #Uncomment next for lines for debugging
    #print "Pour:"
    #print " - Addr : "+hex(MCP_ADDR)
    #print " - Pin : "+str(MCP_PIN)
    #print " - Count: "+str(POUR_COUNT)
    #print " - Ounces: "+str(POUR_COUNT / 165)
    #print " - Mliters: "+str(MLITERS)

    Also comments in the python\flowmon file
    # Change the next 3 lines to suit where you install your script and what you want to call it
    DIR=/var/www/python <-- once again normal RPints install is /var/www/html so this line is /var/www/html/python
    DAEMON=$DIR/flow_monitor.py
    DAEMON_NAME=RPFlowMon

    # The process ID of the script when it runs is stored here:
    PIDFILE=/var/run/$DAEMON_NAME.pid
     
Draft saved Draft deleted

Share This Page

Group Builder