• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

[Version 2 Release] RaspberryPints - Digital Taplist Solution

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
That it does Arduino Reference
it only has pins 2, 3, 18, 19, 20, 21 for interrupts.

Success!! I dug a little deeper in the sketch and see that you are not just referencing interrupts, but PCINT's. These are configured very differently on the Mega, utilizing pins per the following diagram: reference link
1594233151891.png


The sketch calls the numbered pin on the board, not the "Physical Pin" label, so flowmeter connected on pin 53, PCINT0 on the Mega results in a pour!! Other pins labeled PCINT# should work as well except for Pin 13 which is defined as the onboard LED.

The keg volume shows decreasing based on pour volume, but the image on the display still does not update based on keg type and volume. Is it supposed to?

Thanks for your patience and help troubleshooting, and most of all thanks for keeping this project alive!
 
You get what you pay for. The other choices work, however they seem to be more sensitive to physical alignment (meaning you may need to recalibrate at each keg change) and they are less accurate than the SwissFlow.

Buy once, cry once, but they might not be everyone's cup of tea.

First, I absolutely agree with you (and everyone else) about the SwissFlow meters.

However, if you have a hard time justifying $80, $140, in my case $200 on 3 flow meters...I think the Digiten meters that RandR+ recommended do a nice job. Yes, they are less accurate than the SF, but usually I’m only off by about 20-30oz when a keg kicks (Sometimes tighter)

As far as physical alignment of the sensors, well, there are ways to minimize that issue.
 

Attachments

  • C8CD4D1C-6C2B-43FE-9A1D-3049969716F5.jpeg
    C8CD4D1C-6C2B-43FE-9A1D-3049969716F5.jpeg
    86 KB
That was a design flaw in the code, I had it showing the latest temp taken so if they didn't update at the same time then they would flip between the two.
I committed a change to display all active probes and their temps. You can rerun the installer, it will prompt to update when it detects an installation
But whenever I try to update I get these sorts of errors and not sure how to get around it.

error: Your local changes to the following files would be overwritten by merge:
admin/includes/managers/tempProbe_manager.php
admin/includes/models/tapEvent.php
admin/tap_list.php
favicon.ico
img/RaspberryPints-4k.png
img/RaspberryPints.png
img/pint.ico
includes/beerListTable.php
includes/beerListTableVerticle.php
index.php
pint.ico
Please commit your changes or stash them before you merge.
Aborting
 
One way to get around the overwrite error is to rename the files before performing the update. Then do the update, the error should not show up. Then do a diff on the files to see what changed. You can apply your changes to the new files. This is not a great solution. But, it is a solution.
 
In the RandR+ version, is it possible to change the order of the columns? I'd like to move the IBU column next to ABV.
 
One way to get around the overwrite error is to rename the files before performing the update. Then do the update, the error should not show up. Then do a diff on the files to see what changed. You can apply your changes to the new files. This is not a great solution. But, it is a solution.
Cheers for that but I don't know what Then do a diff on the files to see what changed. Is or how I would do it? I assume you mean compare them but how do I do that?
 
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
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
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.
 

Latest posts

Back
Top