[Version 2 Release] RaspberryPints - Digital Taplist Solution

Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum

Help Support Homebrew Talk - Beer, Wine, Mead, & Cider Brewing Discussion Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Running the command is simple. Interpreting what it tells you can be confusing. All you need to do is cd /var/www/html . Then assuming you left the old file in the same directory the command is diff <old file name> <new file name> . It will spit out some lines of text. Those are the lines that are different. At the beginning of the line will be either a < or > . The < means that line is from the first file in the command. There should also be numbers listed. That is what line in the file it is. If you are lucky, there are only a few differences. You now get to decide if you want to add your changes to the new file.

This only applies to the text files. You had some image files listed.

Hope this helps.

Cheers
 
In the RandR+ version, is it possible to change the order of the columns?
Yes, under the admin page there is a "Customize Tap Display" menu option that will allow you to drag and drop columns to where you want them. Right now it only displays in the vertical mode but any adjustments there will also change the horizontal layout.
 
Is or how I would do it?
in the terminal you can use the diff command i.e. (where file1 and file2 are the actually file names)
diff file1 file2

it can get messy using the terminal so you can use a visual diff tool to help (but you need to be on the pi's desktop to do so)
one editor would be compare, I didn't get a chance to test it but it looks promising
sudo apt-get install kompare
 
image on the display still does not update based on keg type and volume
try manually changing the volume by 1 whole unit to see if that changes the image (you can change it back after the test).
If that doesn't change the image, check the keg to see it if has continuous lid check (admin->kegs->edit a keg 3 quarters of the way down there is a continuous lid checkbox)
 
Yes, under the admin page there is a "Customize Tap Display" menu option that will allow you to drag and drop columns to where you want them. Right now it only displays in the vertical mode but any adjustments there will also change the horizontal layout.

I've tried that and the columns don't change. They don't change even on the Customize screen. The drag part seems to sort of work. It looks like it is grabbing the column, but it doesn't drop it in the new location.
 
They don't change even on the Customize screen. The drag part seems to sort of work. It looks like it is grabbing the column, but it doesn't drop it in the new location.
My bad, I didn't correctly force the customize display screen to be vertical only. I'm aware of the issues with drag n' drop for the horizontal layout (apparently no one else wants to use javascript to move columns, but moving rows is trivial)

If you get latest includes/common.php it will force that screen to use veridical layout which works for drag n' drop
 
in the terminal you can use the diff command i.e. (where file1 and file2 are the actually file names)
diff file1 file2

it can get messy using the terminal so you can use a visual diff tool to help (but you need to be on the pi's desktop to do so)
one editor would be compare, I didn't get a chance to test it but it looks promising
sudo apt-get install kompare
Ok cheers for that but how do I commit the changes or stash them before I even do the upgrade? It won't let me do it at all?
 
I commit the changes or stash them before I even do the upgrade
Commiting would make your changes part of git so everyone one else would get them also. What I found to work is after you copy your changes (or whole directory for safe keeping) you can do the following from the terminal to allow git to fetch the latest

cd /var/www/html (or your RPints directory)
sudo git fetch original
sudo git reset --hard origin/master
 
Commiting would make your changes part of git so everyone one else would get them also. What I found to work is after you copy your changes (or whole directory for safe keeping) you can do the following from the terminal to allow git to fetch the latest

cd /var/www/html (or your RPints directory)
sudo git fetch original
sudo git reset --hard origin/master
Ok Ill do this next time.

I googled around and managed an upgrade and only lost some minor changes. One thing I am trying to do is move the beer names over to the left side. I have turned off "show beer images" but there is still a slight gap seen here.

Screen Shot 2020-07-10 at 10.50.17 am.png


I have once changed this in the past but can't remember what I did. Ive tried inspecting the html in the chrome inspector and have found out that if I change this line below from 90% to 100% as shown in bold it moves the beer names to the left side.
<td class="name" style="border-left: none; width : 100%">

However I can't find this line anywhere in the CSS file and Ive also checked the beerlisttable.php file? Do you know what file this line might be in to change it?
Going forward with this is there a way within the inspector to tell where you might find a particular line of code to change?

Thanks heaps.
 
I have turned off "show beer images" but there is still a slight gap seen here.
Are you sure you turned off Show Beer Images and not Pours Show Beer Images? I ask because in testing I turned off Pours Show Beer Image.

when you inspect and select the empty space what does it look like?
mine with images turned on looks like the attached picture.
 

Attachments

  • inspect1.png
    inspect1.png
    8 KB · Views: 12
Are you sure you turned off Show Beer Images and not Pours Show Beer Images? I ask because in testing I turned off Pours Show Beer Image.

when you inspect and select the empty space what does it look like?
mine with images turned on looks like the attached picture.
Yes definitely turned off "Show beer images"..

Mine looks like this

Screen Shot 2020-07-10 at 12.06.02 pm.png
 
So it definitely shows you have brewery images turned on, I would turn those off (Show Brewery Images) and see how it looks
Ahh yes what an idiot I am. I kept thinking it was show beer images that had to be turned off. Thanks again mate, all fixed..
 
I added a second temperature probe to my system yesterday, and updated Raspberry Pints (RandR+ version) using the installation script. Everything was working fine until the first reboot, and then all I got was a white screen when Raspberry Pints tried to open. Nothing I did fixed it, so I did a full re-install of Raspberry Pints (RandR+ version) using the installation script. Once again, everything worked fine until the first reboot, when I got nothing but a white screen when Raspberry Pints tried to open. I reconfigured to NOT open in kiosk mode to see if I could open any other web pages with Chromium. Other web pages open fine, but when I try to open Raspberry Pints it stays at "Waiting for localhost" and never opens. Any ideas?
Annotation 2020-07-11 070656.jpg
 
but when I try to open Raspberry Pints it stays at "Waiting for localhost" and never opens

Looks like apache is not running on the Pi. Open a terminal on the Pi and run the command
Bash:
systemctl status apache2
Look for the message
Code:
   Active: active (running) since Sun 2020-07-05 11:22:56 EDT; 5 days ago
The date will be different, but if you don't see Active: active (running) then it's not up.

If you don't see that, run the commands
Bash:
sudo systemctl enable apache2
sudo systemctl start apache2
The first command tells the OS to make sure apache is started after a reboot and the second command starts it immediately.

Now see if you can get to the PI. The other service that needs to be running is mariadb. You can check that by running the above commands replacing apache2 with mariadb
 
I'm trying to get flowmeters working and I need some help. I'm trying to rule out if my Arduino or USB cable are bad. I've got RandR+'s installed and up to date. I run into problems when opeing the Arduino IDE and checking the serial monitor. Sometimes the /tty/ACM0 device shows up, but when I monitor it, it disappears. The IDE throws an error that the device can't be accessed. I've tried a few different USB cables to rule that out. The Arduino is powered by a separate power supply. I'm using Adafruit flow meters. Pi si a 3b+ model

I've also attached my rpints.log file if that helps.
 

Attachments

  • rpints.txt
    1.9 KB · Views: 6
The IDE throws an error that the device can't be accessed. I've tried a few different USB cables to rule that out.
It sounds like either the Arduino or the Pi (USB port) is bad or miss wired, are the flow meters connected? If so disconnect them and do a full power cycle on everything.
 
Looks like apache is not running on the Pi. Open a terminal on the Pi and run the command
Bash:
systemctl status apache2
Look for the message
Code:
   Active: active (running) since Sun 2020-07-05 11:22:56 EDT; 5 days ago
The date will be different, but if you don't see Active: active (running) then it's not up.

If you don't see that, run the commands
Bash:
sudo systemctl enable apache2
sudo systemctl start apache2
The first command tells the OS to make sure apache is started after a reboot and the second command starts it immediately.

Now see if you can get to the PI. The other service that needs to be running is mariadb. You can check that by running the above commands replacing apache2 with mariadb
Both apache2 and mariadb report "Active (running)"
 
Both apache2 and mariadb report "Active (running)"

Try running tail -F /var/log/apache2/error.log and see if any errors are printed when you try and access the page.

You can also try looking at tail -F /var/log/apache2/access.log and you should see the GET message when you try and access the page.
 
I’m at my wits end. I can get my Swiss flow meters to register pours with water, but as soon as I put a keg of beer on, it doesn’t recognize anything. I have two taps with meters and same thing occurs on both. Works fine running water through, once keg with beer is on, doesn’t recognize pours. Is there some delay settings that need adjustment or something perhaps because of foam? Working on this problem for weeks. Thank you.
 
Is there some delay settings that need adjustment or something perhaps because of foam? Working on this problem for weeks.
What version are you running? I ask because my version has a log (/var/log/rpints.log) that might give some insights to what is going on. If it doesn't help I have some pending changes to add more tracing from the Arduino to track issues like these, I can commit them for you to get
 
What version are you running? I ask because my version has a log (/var/log/rpints.log) that might give some insights to what is going on. If it doesn't help I have some pending changes to add more tracing from the Arduino to track issues like these, I can commit them for you to get
I’m running the RandR+ version. I’ve looked at the log and when running water I see the pours recognized just fine. When I put the beer on and pour through tap, nothing registers on the log file. I put a meter on both pins when beer is running and I can see the voltage change as beer is running, but it’s not refreshing the screen or recognizing anything once flow stops. I’ll try to get the log file here. Running on a Arduino uno.
 
I’ll try to get the log file here. Running on a Arduino uno.
Think this is the first time Ive seen someone run into this issue.

I just committed my updates if you get the latest sketch and hex files (rerun the installer will prompt if you want to update)

You should also turn on debugging in python/Config.py by changing False#True to just True so the lines read
config['flowmon.debug' ] = True
#logging settings for pintdispatch
config['dispatch.debug' ] = True

once you test with the latest you will want to look for "RT L" in the log (it stands for Reset Tap Line it will then print the Pin, tap number, current millisecond on the arduino, last millisecond it got a pulse, difference between them, delay to send pour, current pulse count, and pour trigger value (number of pulses to send a pour)

Or simply put, post the log here an I can decipher
 
Think this is the first time Ive seen someone run into this issue.

I just committed my updates if you get the latest sketch and hex files (rerun the installer will prompt if you want to update)

You should also turn on debugging in python/Config.py by changing False#True to just True so the lines read
config['flowmon.debug' ] = True
#logging settings for pintdispatch
config['dispatch.debug' ] = True

once you test with the latest you will want to look for "RT L" in the log (it stands for Reset Tap Line it will then print the Pin, tap number, current millisecond on the arduino, last millisecond it got a pulse, difference between them, delay to send pour, current pulse count, and pour trigger value (number of pulses to send a pour)

Or simply put, post the log here an I can decipher
Thanks so much!

I've run the update and here is the output of the log after running beer through the tap.

pi@rpints:~ $ tail -f /var/log/rpints.log
2020-07-11 13:05:13 RPINTS: Not Configured to run Fan
2020-07-11 13:05:14 RPINTS: waiting for Arduino to come alive
2020-07-11 13:05:16 RPINTS: Arduino alive...
2020-07-11 13:05:16 RPINTS: getting config data for Arduino
2020-07-11 13:05:16 RPINTS: Arduino config, about to send: C:4:6:3:4:5:0:300:200:30:250:0:0:1|
2020-07-11 13:05:16 RPINTS: Waiting for Config Response
2020-07-11 13:05:16 RPINTS: Arduino says: C:4:6:3:4:5:0:300:200:30:250:0:0:1|

2020-07-11 13:05:16 RPINTS: listening to Arduino
2020-07-11 13:05:16 RPINTS: Sending Status;NOTOK;-1;0;0;0;0;0;|
2020-07-11 13:07:54 RPINTS: RT L 6 0 145411 145110 301 300 13 200
2020-07-11 13:07:54 RPINTS: Sending Status;NOTOK;-1;0;0;0;0;0;|
2020-07-11 13:07:57 RPINTS: RT L 6 0 147811 147510 301 300 17 200
2020-07-11 13:07:57 RPINTS: Sending Status;NOTOK;-1;0;0;0;0;0;|
2020-07-11 13:07:59 RPINTS: RT L 6 0 150284 149983 301 300 14 200
2020-07-11 13:07:59 RPINTS: Sending Status;NOTOK;-1;0;0;0;0;0;|
 
Try running tail -F /var/log/apache2/error.log and see if any errors are printed when you try and access the page.

You can also try looking at tail -F /var/log/apache2/access.log and you should see the GET message when you try and access the page.
pi@rpints:~ $ tail -F /var/log/apache2/error.log
[Sat Jul 11 16:06:10.932606 2020] [php7:warn] [pid 5225] [client ::1:57522] PHP Warning: Error while sending QUERY packet. PID=5225 in /var/www/html/admin/includes/managers/config_manager.php on line 13, referer: http://localhost/
[Sat Jul 11 16:06:10.932815 2020] [php7:error] [pid 5225] [client ::1:57522] PHP Fatal error: Uncaught Error: Call to a member function fetch_array() on bool in /var/www/html/admin/includes/managers/config_manager.php:14\nStack trace:\n#0 /var/www/html/includes/common.php(14): getAllConfigs()\n#1 /var/www/html/index.php(269): printBeerList(Array, '4', 'Keg')\n#2 {main}\n thrown in /var/www/html/admin/includes/managers/config_manager.php on line 14, referer: http://localhost/
[Sat Jul 11 16:06:13.822844 2020] [mpm_prefork:notice] [pid 609] AH00169: caught SIGTERM, shutting down
[Sat Jul 11 16:06:22.424354 2020] [:error] [pid 610] python_init: Python version mismatch, expected '2.7.15', found '2.7.16'.
[Sat Jul 11 16:06:22.447065 2020] [:error] [pid 610] python_init: Python executable found '/usr/bin/python'.
[Sat Jul 11 16:06:22.447133 2020] [:error] [pid 610] python_init: Python path being used '/usr/lib/python2.7:/usr/lib/python2.7/plat-arm-linux-gnueabihf:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Sat Jul 11 16:06:22.447214 2020] [:notice] [pid 610] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Sat Jul 11 16:06:22.447241 2020] [:notice] [pid 610] mod_python: using mutex_directory /tmp
[Sat Jul 11 16:06:22.674152 2020] [mpm_prefork:notice] [pid 610] AH00163: Apache/2.4.38 (Raspbian) mod_python/3.3.1 Python/2.7.16 configured -- resuming normal operations
[Sat Jul 11 16:06:22.674278 2020] [core:notice] [pid 610] AH00094: Command line: '/usr/sbin/apache2'

pi@rpints:~ $ tail -F /var/log/apache2/access.log
::1 - - [11/Jul/2020:07:14:02 -0400] "GET / HTTP/1.1" 200 2312 "-" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
::1 - - [11/Jul/2020:09:04:21 -0400] "GET /img/logo.png?1594466042 HTTP/1.1" 200 24423 "http://localhost/" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
::1 - - [11/Jul/2020:09:05:22 -0400] "GET / HTTP/1.1" 200 2312 "http://localhost/" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
::1 - - [11/Jul/2020:10:43:41 -0400] "GET /img/logo.png?1594472722 HTTP/1.1" 200 24423 "http://localhost/" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
::1 - - [11/Jul/2020:10:44:41 -0400] "GET / HTTP/1.1" 200 0 "http://localhost/" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
::1 - - [11/Jul/2020:10:49:42 -0400] "GET / HTTP/1.1" 200 2313 "-" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
::1 - - [11/Jul/2020:14:13:30 -0400] "GET /img/logo.png?1594478982 HTTP/1.1" 200 24423 "http://localhost/" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
10.0.0.188 - - [11/Jul/2020:10:52:34 -0400] "GET / HTTP/1.1" 200 2312 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
::1 - - [11/Jul/2020:14:14:31 -0400] "GET / HTTP/1.1" 500 1522 "http://localhost/" "Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/78.0.3904.108 Chrome/78.0.3904.108 Safari/537.36"
10.0.0.188 - - [11/Jul/2020:15:21:51 -0400] "GET / HTTP/1.1" 500 1522 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
 
RT L 6 0 145411 145110 301 300 13 200
what this tells me is that it only got 13 pulses in 301 milliseconds. Thats not enough to register a pour as configured and if you would change the configuration to make it a pour it wouldn't have much meaning being so small.

Are you seeing a lot of foam with the flow meters attached?
 
what this tells me is that it only got 13 pulses in 301 milliseconds. Thats not enough to register a pour as configured and if you would change the configuration to make it a pour it wouldn't have much meaning being so small.

Are you seeing a lot of foam with the flow meters attached?
Not really. I get a little foam in the beginning but was pouring without foam for 2-3 seconds before shutting off.
 
pi@rpints:~ $ tail -F /var/log/apache2/error.log
[Sat Jul 11 16:06:10.932606 2020] [php7:warn] [pid 5225] [client ::1:57522] PHP Warning: Error while sending QUERY packet. PID=5225 in /var/www/html/admin/includes/managers/config_manager.php on line 13, referer: http://localhost/
[Sat Jul 11 16:06:10.932815 2020] [php7:error] [pid 5225] [client ::1:57522] PHP Fatal error: Uncaught Error: Call to a member function fetch_array() on bool in /var/www/html/admin/includes/managers/config_manager.php:14\nStack trace:\n#0 /var/www/html/includes/common.php(14): getAllConfigs()\n#1 /var/www/html/index.php(269): printBeerList(Array, '4', 'Keg')\n#2 {main}\n thrown in /var/www/html/admin/includes/managers/config_manager.php on line 14, referer: http://localhost/
what this is telling me is that the following lines are falling and instead of producing a result its returning false (which happens when the query fails)
$sql = "SELECT * FROM config";
$qry = $mysqli->query($sql);

being such a standard query I think its something with MariaDb setup that is causing it try (from the terminal - assuming you left the default database name - raspberrypints)
sudo mysql
use raspberrypints;
SELECT * FROM config;

Let me know if that works
 
[Sat Jul 11 16:06:10.932815 2020] [php7:error] [pid 5225] [client ::1:57522] PHP Fatal error: Uncaught Error: Call to a member function fetch_array() on bool in /var/www/html/admin/includes/managers/config_manager.php:14\nStack trace:\n#0 /var/www/html/includes/common.php(14): getAllConfigs()\n#1 /var/www/html/index.php(269): printBeerList(Array, '4', 'Keg')\n#2 {main}\n thrown in /var/www/html/admin/includes/managers/config_manager.php on line 14, referer: http://localhost/

It looks like the line of code that does SELECT * FROM CONFIG to get the configuration is failing and returning NULL. Then the fetch_array() method is called on the boolean value which triggers the error.

For some reason, the code can't access the database. Can you run the following
Bash:
sudo mysql -u root -p
and enter the root password to get into mariadb, then
SQL:
show databases;
You should see a raspberrypints database. Then type:
SQL:
use raspberrypints;
SELECT * FROM config;
 
I get a little foam in the beginning but was pouring without foam for 2-3 seconds before shutting off.
I don't use swiss flow so maybe someone else that does has this happen to them. My first thought was maybe the beer was over carbonated leading to the sensor missing pulses but it doesn't sound like it since you don't have foaming issues
 
I've been running six SF800s on the original R'Pints 2.0.1 since Memorial Day weekend 2014 and have never had a meter fail to register a pour.
Also, once I over-carbonated a wheat beer and when I put it in the keezer at a proper pressure naturally the excess CO2 started coming out of solution, which by itself was enough to trigger tiny pours throughout the day and night 'til I noticed the taplist was showing that keg emptying when I'd only poured one beer :)

So I'm not sure what's going on here tbh.

Cheers!
 
It looks like the line of code that does SELECT * FROM CONFIG to get the configuration is failing and returning NULL. Then the fetch_array() method is called on the boolean value which triggers the error.

For some reason, the code can't access the database. Can you run the following
Bash:
sudo mysql -u root -p
and enter the root password to get into mariadb, then
SQL:
show databases;
You should see a raspberrypints database. Then type:
SQL:
use raspberrypints;
SELECT * FROM config;
@RandR+ ... My database is named "RPints" ... however following the instruction provided by both of you and substituting my database name I do get 102 rows returned. I also get the same 102 rows returned for the "raspberrypints" database. (I used "RPints" as the database name, because using the default "raspberrypints" caused the installation to stop for some reason).

MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| Rpints |
| information_schema |
| mysql |
| performance_schema |
| phpmyadmin |
| raspberrypints |
+--------------------+
6 rows in set (0.001 sec)

MariaDB [(none)]> use Rpints;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [Rpints]> SELECT * FROM config;
+-----+---------------------------+-----------------------------------+--------------------------------------------------------------+-------------+-----------------------+---------------------+---------------------+
| id | configName | configValue | displayName | showOnPanel | validation | createdDate | modifiedDate |
+-----+---------------------------+-----------------------------------+--------------------------------------------------------------+-------------+-----------------------+---------------------+---------------------+
| 1 | showTapNumCol | 1 | Show Tap Column | 1 | NULL | 2020-07-10 15:42:54 | 2020-07-10 15:42:54 |
| 2 | showBeerImages | 0 | Show Beer Images | 1 | NULL | 2020-07-10 15:42:54 | 2020-07-10 15:42:54 |
| 3 | showBreweryImages | 0 | Show Brewery Images | 1 | NULL | 2020-07-10 15:42:54 | 2020-07-10 15:42:54 |
| 4 | showSrmCol | 1 | Show SRM Column | 1 | NULL | 2020-07-10 15:42:54 | 2020-07-10 15:42:54 |
| 5 | showIbuCol | 1 | Show IBU Column | 1 | NULL | 2020-07-10 15:42:54 | 2020-07-10 15:42:54 |
| 6 | showAbvCol | 1 | Show ABV Column | 1 | NULL | 2020-07-10 15:42:54 | 2020-07-10 15:42:54 |

(Truncated for brevity)

102 rows in set (0.001 sec)
 
I've been running six SF800s on the original R'Pints 2.0.1 since Memorial Day weekend 2014 and have never had a meter fail to register a pour.
Also, once I over-carbonated a wheat beer and when I put it in the keezer at a proper pressure naturally the excess CO2 started coming out of solution, which by itself was enough to trigger tiny pours throughout the day and night 'til I noticed the taplist was showing that keg emptying when I'd only poured one beer :)

So I'm not sure what's going on here tbh.

Cheers!
Thanks for the feedback. I’ve been using them for years as well on the original r-pints as well. I know my setup physically works and have had foam at times too and it has works. I recently decided to move to RandR+ version and haven’t been able to get it to work on beer. It does work on water so it’s got to be related to foam or the trigger points. With water I got it dialed in at around 23000 pulses per gallon. I’m wondering if I need to scale the count delay settings as maybe it’s kicking too soon before a pour is registered if any foam is causing the pulses to “skip”.
 
@esdill next place I would look is the file /var/www/html/includes/config.php

If you dump this, it should contain something like
PHP:
<?php
    function db() {
        return new mysqli('localhost', 'RaspberryPints', 'RaspberryPints', 'raspberrypints');
    }
    $rpintsversion="2.9.0.1";
?>
The four arguments of the mysqli() function are database hostname, username, password, and database. Check that these match what you think they should be. You can test the connection by doing the following (my database username and password are both RaspberryPints because my machine isn't accessible outside my private subnet):
Bash:
mysql -u RaspberryPints -p
Enter password: RaspberryPints
SQL:
use raspberrypints;
SELECT * FROM config;

See if that works of if it throws an error.
 
Thanks for the feedback. I’ve been using them for years as well on the original r-pints as well. I know my setup physically works and have had foam at times too and it has works. I recently decided to move to RandR+ version and haven’t been able to get it to work on beer. It does work on water so it’s got to be related to foam or the trigger points. With water I got it dialed in at around 23000 pulses per gallon. I’m wondering if I need to scale the count delay settings as maybe it’s kicking too soon before a pour is registered if any foam is causing the pulses to “skip”.

In the original program the Arduino decides whether a pour happened. And if the code was enabled it would also send a kick message if the rotor rpm exceeded a threshold. So the constant you're changing is well down stream from those decision points.

When you say you have it working using water, does that mean you can get a pour to register properly on a tap for a chosen "beer", but you can't get an actual beer to register? I think that's what you've been saying but just want to confirm - because that's weird...

Cheers!
 
In the original program the Arduino decides whether a pour happened. And if the code was enabled it would also send a kick message if the rotor rpm exceeded a threshold. So the constant you're changing is well down stream from those decision points.

When you say you have it working using water, does that mean you can get a pour to register properly on a tap for a chosen "beer", but you can't get an actual beer to register? I think that's what you've been saying but just want to confirm - because that's weird...

Cheers!
Exactly. I have a dummy test beer set up on the tap. If I take my beer line cleaner container full of water and run it through the line with flow meter, it registers the “pour” just fine. I then hook up a keg with beer to the same line/settings and do not change anything other than tapping a keg full of beer, it doesn’t register the pours. I have a dual tap system with two different flow meters and the same thing happens on both. Water fine, beer nothing. Maybe it’s trying to tell me something....
 
lol! The world is full of weirdness these days, who knows.
Anyway, so the water pours get registered properly. Are you using the same pressure?
And is the pour "velocity" as best you can discern it reasonably similar between water and beer?

If all that is true I may have to start drinking more...

Cheers!
 
Back
Top