[Version 2 Release] RaspberryPints - Digital Taplist Solution | Page 102 | 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 9, 2019
    I too started with the 3/16 barb and it was foamy, moved to the 1/4 barb and the foam went away. So its not just your setup
     
    ba-brewer likes this.
  2. Tobor_8thMan

    Well-Known Member  

    Posted Jan 9, 2019
    Well, Monday was back to work and back to reality. Hoping to find the time soon to work on this again.
     
  3. trindade

    Member

    Posted Jan 10, 2019
    How do I convert to metric system?
     
  4. ba-brewer

    I'm not Zog  

    Posted Jan 10, 2019
    thanks, I ordered some of the 1/4in barb adapter so hopefully they work as good as the straight 1/4in tubing.
     
  5. kaljade

    Well-Known Member

    Posted Jan 10, 2019
    To go metric you need to edit the index.php, tap_form.php, and pours.php files. Then you need to edit the maxAmount values in the kegStyles table in the raspberrypints database.

    If you've added the Keg Volume Kalculator mod, you'll also need to update the formulas used to calculate estimated weight and actual volume.

    Not for the faint of heart, but doable.

    Cheers,

    Kal
     
  6. day_trippr

    We live in interesting times...

    Posted Jan 10, 2019
    And that's why Reagan blocked the transition to metric in the USA...

    ;)
     
    kaljade likes this.
  7. kaljade

    Well-Known Member

    Posted Jan 10, 2019
    LMAO! That's gold!
     
  8. Anthony Populo

    New Member

    Posted Jan 11, 2019
    Hello again. I am trying to follow day_trippr instructions on using Jessie RPI 3B and arduino uno unit. Im stuck on Step 7 where it says "Edit /var/www/html/python/flow_monitor.py
    Find these two lines:

    # Edit this line to point to where your rpints install is
    poursdir = '/var/www'

    Change /var/www to /var/www/html"

    Once I enter the Edit screen it wont allow me to change '/var/www' to '/var/www/html'?? in fact i cant seem to type anything.

    please excuse my ignorance, I'm completely new to RPI
     
  9. kaljade

    Well-Known Member

    Posted Jan 11, 2019
    Try entering this command in a terminal:
    Code:
    sudo nano /var/www/html/python/flow_monitor.py
    That'll give you admin privileges

    Cheers,

    Kal
     
  10. day_trippr

    We live in interesting times...

    Posted Jan 12, 2019
    fwiw, I rarely use a local console, so my edit instructions assume a WinSCP connection to 'root' which allows me to use a local text editor to manipulate remote files without any Raspbian bitchin' :)

    So, assume any edits are using root privileges...

    Cheers!
     
  11. Marvin Herrin

    New Member

    Posted Jan 13, 2019
    Sorry for the delayed response, flu season hit us pretty hard. I am happy to say that I got everything up and running. Thanks for all your help
     
  12. Cruz1n

    Active Member

    Posted Jan 13, 2019
    Hi all
    Excellent thread, I had tried setting up this on from the Raspberrypints website but everything was failing until I found this, needed an older version of noobs and a couple of other things I found here, thanks. I have run into one problem, apologies if anyone has already posted. When I try and run step 6 it fails on the 3rd step [email protected] ~ $ sudo ./setup. I don't have the board yet, it arrives Tuesday but was trying to get my pi all setup in advance. This is the board I have on order if anyone has any suggestions.
    Seeedstudio-Alamode - Arduino Compatible Raspberry Pi Plate
    Also if anyone successfully changed their system to Metric I would love to follow your steps rather than attempting to edit everything myself. Thanks in advance!
     
  13. kaljade

    Well-Known Member

    Posted Jan 13, 2019
    Welcome! If you follow the link in the second post in this thread, it'll take you to @day_trippr 's update instruction for Jessie NOOBS, from memory you need to run a script to make the ./jessie_setup script executable first.

    I am running metric, and plan on doing a quick write up on it later in the week for someone else who requested the same, so watch this space ;)
     
  14. Cruz1n

    Active Member

    Posted Jan 13, 2019
    Thanks for the answer, I had found this and followed the step variations for 5 and 7 but the Alamode installation changes are referring to a RPi 3, I am running mine on an old RPI B which I had laying around and seems to be running all the software of with the exception of I am having trouble installing Alamode. When I try and execute the 3rd command, sudo ./setup I receive the error, sudo: unable to execute ./setup: No such file or directory
     
  15. CadiBrewer

    Supporting Member  

    Posted Jan 13, 2019
    You'll still need to follow those dos2unix steps. It is more related to Jessie than the version of the pi that you're using.
     
  16. RandR+

    Well-Known Member

    Posted Jan 13, 2019
    Tried the same steps on my test Jessie system and got the same error, until I remember that the file is in dos format not unix so bash doesn't read it.

    Run the following first
    sudo apt-get install dos2unix
    dos2unix ./*

    then sudo ./setup

    if you get more errors it might be because you need to run the jessie-setup

    For reference if you have stretch, wyolum uploaded it to GitHub but didn't put it in the archive so you have to get it separately:
    wget https://github.com/wyolum/alamode/raw/master/alamode-setup/stretch-setup
    dos2unix ./*
    sudo ./stretch-setup
     
  17. RandR+

    Well-Known Member

    Posted Jan 13, 2019
  18. CadiBrewer

    Supporting Member  

    Posted Jan 13, 2019
  19. Cruz1n

    Active Member

    Posted Jan 13, 2019
    Excellent, thanks. This worked.

    dos2unix ./*

    then sudo ./jessie-setup
     
  20. day_trippr

    We live in interesting times...

    Posted Jan 14, 2019
    fyi, the original raspberry pints instructions were written in the Wheezy time frame and were not aware of changes due to the Jessie package release. I tried to capture the required changes in my post linked from the second in the thread.

    But the particular issue with the Wyolum Alamode file set is the need to run dos2unix on it for the jessie-setup script to work (the "regular" setup script that would be applicable to Wheezy is already unix-y).

    What's pitiful is the Wyolum folks to this day have never fixed their file set even though a number of us have prompted them...

    Cheers!
     
  21. Tobor_8thMan

    Well-Known Member  

    Posted Jan 14, 2019
    Haven't had the time to continue modifying the mysql (mariaDB) items to work in the latest php, but I did make changes to my Raspberry Pints to use the new glasses (same glasses used in the SRM mod) in the ABV column of the display.

    Simple mod to make the ABV glasses the same as the new SRM glasses.

    1. In the /var/www/html/img folder make a backup copy of the existing abv folder (including the folder contents).

    2. Copy the zip file attached to this post, ABV.zip and uncompress it somewhere to get the contents.

    3. ABV.zip contains 3 files. full.png, offthechart.png and stroke.png

    4. Copy the 3 files, full.png, offthechart.png and stroke.png, into the /var/www/html/img/abv folder replacing the existing files.

    5. Reboot the Raspberry Pi.

    6. Should see the new glasses in the ABV column.

    Hopefully, someone with better artistic/graphic talents, is able to make a better offthechart.png graphic as I simply rotated the full.png.
     

    Attached Files:

    • ABV.zip
      File size:
      22.4 KB
      Views:
      18
    kaljade likes this.
  22. Cruz1n

    Active Member

    Posted Jan 15, 2019
    Hey, my Alamode board turned up today and reading through the instructions there is a warning regarding supply of over 5v and a recommendation to install a voltage regulator NCP1117ST50T to the board to limit to 5v to avoid burning out the board. Has anyone done this mod? Recommended or not necessary? I live in Calgary Canada and can only seem to find one to ship out of China with associated delivery delays. My swiss flow meters are also due in today and not sure I have the patience.
     
  23. day_trippr

    We live in interesting times...

    Posted Jan 15, 2019
    Whoa! There's no logical reason to use a power supply greater than 5V for either the RPi or the Alamode.

    The Alamode has a dedicated micro-USB-B receptacle if you want to provide independent power vs having it steal 5V power from the Raspberry Pi. There is a tiny header on the Alamode board right next to the uSD card socket where you can choose between those methods.

    fwiw, I have an Alamode sitting upon an RPi Zero-W and using its 5V. It's just one of my test systems - not mission-critical at all - I don't know that I'd recommend it, particularly in a configuration with a lot of 5V devices hosted by either board. But it does work in a minimal configuration. Otoh the system that runs everything in my brewery and its backup clone both provide independent 5V to their Alamode boards via the USB receptacle...

    Cheers!
     
  24. Cruz1n

    Active Member

    Posted Jan 15, 2019
    Oh ok, I was planning on supplying power to the Alamode board and powering the pi from there as it was suggested on the raspberrypints site due to load from the flowmeters, I guess its just as easy to power both with their own supply.
     
  25. day_trippr

    We live in interesting times...

    Posted Jan 15, 2019
    iirc you can do that as well - check the instructions wrt that tiny 3 pin header on the Alamode. But no matter how you do it you're stuck using a 5V power supply. That's a difference between the Alamode and an Uno - there's no 3 pin LDO and barrel receptacle to accept a 7-12V supply to provide 5V to the board.

    Don't worry about the flow meters, they provide a trivial load, equivalent to an LED, so figure 3-5 mA or so per each...

    Cheers!
     
  26. ba-brewer

    I'm not Zog  

    Posted Jan 17, 2019
    What is required to get the date fields populated?
     
  27. day_trippr

    We live in interesting times...

    Posted Jan 17, 2019
    Log into phpmyadmin with the user and password used to create the raspberrypints database (typically, 'root' and 'whatever you used').
    The next screen should show "raspberrypints" in the list box at the top of the left pane (if not, use that list box to select it).

    Click on 'pours' in the left pane...

    enable_timestamps_01.jpg

    ...which will bring up the first page of the pours table. Note the 'createdDate' field shown here is all NULL - it took a while before I realized the structure left it NULL so none of the first few months worth of my pour records had the date set. NBD.

    So next click on Structure...

    enable_timestamps_02.jpg

    ...which will show the settings for the fields that make up a pour record. Note here that the 'createdDate' field default is set to CURRENT_TIMESTAMP - that shows I eventually realized what was going on and changed it from NULL. Assume your corresponding entry still says NULL :)

    So in the row that has the 'createdDate' field click on Change...

    enable_timestamps_03.jpg

    ...then use the list box highlighted below to select CURRENT_TIMESTAMP, then click SAVE (bottom right).

    enable_timestamps_04.jpg

    Once this has been changed the database will use the system time and timezone info to fill in the CURRENT_TIMESTAMP field, which enables all kinds of fun geek stuff :D

    Cheers!
     
    Last edited: Jan 17, 2019
    ba-brewer likes this.
  28. ba-brewer

    I'm not Zog  

    Posted Jan 17, 2019
  29. day_trippr

    We live in interesting times...

    Posted Jan 17, 2019
    :mug:
     
  30. Cruz1n

    Active Member

    Posted Jan 19, 2019
    Damn I feel like such a noob but I have another question. Soldered up the alamode and fired it up tonight. All good until I try and select the serial port and the menu is greyed out. Did some googling bit can’t work it out, anyone experienced anything similar?
     
  31. kaljade

    Well-Known Member

    Posted Jan 19, 2019
    Did you do the UART thingy in @day_trippr 's how-to?
     
  32. Cruz1n

    Active Member

    Posted Jan 19, 2019
    Yes I did, double checked too. I think something else might be trying to access the serial port rendering it unavailable.
     
  33. day_trippr

    We live in interesting times...

    Posted Jan 19, 2019
    Did you edit /boot/config.txt and make enable_uart=0?

    What is the response if you issue the command
    Code:
    ls -l /dev | grep serial
    
    Cheers!
     
  34. Cruz1n

    Active Member

    Posted Jan 19, 2019
    Yes enable_uart=0, where am I supposed to execute the command?
     
  35. day_trippr

    We live in interesting times...

    Posted Jan 19, 2019
    Any terminal session. Focus shouldn't matter as you're not looking at the file level.
    The expected response to the command is

    Code:
    [email protected]:~ $ ls -l /dev | grep serial
    lrwxrwxrwx  1 root root           7 Dec 28 17:17 serial0 -> ttyAMA0
    [email protected]:~ $
    
    That is due to the Alamode support package dropping an "80-alamode.rules" file in /etc/udev/rules.d and that file tries to symlink ttyAMA0 as ttyS0...

    Cheers!
     
  36. Cruz1n

    Active Member

    Posted Jan 19, 2019
    It just returned to cmd prompt, after some googling I tried running Arduino as root and then this was no longer greyed out. I re-ran the above command and all good.

    Do I always need to run as root or is there some permission I need to change somewhere?
     
    Last edited: Jan 19, 2019
  37. day_trippr

    We live in interesting times...

    Posted Jan 19, 2019
    You shouldn't have to run the IDE as 'root'. Everything associated with it should have world execute..
     
  38. Cruz1n

    Active Member

    Posted Jan 19, 2019
    Clearly I have something wrong somewhere as when I run the Arduino IDE as root I can select the serial ok, when I don't run as root its greyed out. If I select the serial when in root it is displayed in the bottom as Alamode on /dev/ttySO but if I close and reopen as not root it is still not selected. Perhaps it's an issue with non exclusive access to the serial port, ie some other program scanning it preventing it from being selected except with higher privileges?
     
  39. Tobor_8thMan

    Well-Known Member  

    Posted Jan 19, 2019
    Permissions correctly set during installation/setup? I haven't done the flow meters, but I know from using Linux and doing the regular RPints, things fail without the correct permissions (if things are locked down).

    Maybe go back thru the installation/setup and check the permissions.
     
  40. kaljade

    Well-Known Member

    Posted Jan 19, 2019
    Try running this command to fix your permissions:

    Code:
    sudo chmod -R 777 /var/www
    Cheers,

    Kal
     
Draft saved Draft deleted

Share This Page

Group Builder