• 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.
modify index.php line 191
from
<div class="temp-full" style="height:<?php echo $temp; ?>%; padding-right: 50px"></div>
to
<div class="temp-full" style="height:<?php echo $temp*5; ?>%; padding-right: 50px"></div>

you may need to change the new 5 till it looks right on your display

That's where it is!! It's so obvious now, but man....when I was looking for it...forgettaboutit!

I changed out my stroke and full .png's and I could not get the full.png to budge even if the temp was reading 70F...it was driving me bat-crap crazy.
 
The cut off is probably because of the way the css is handled on each one. You can try to change style.css line 120
from
.bodywrapper
{
width: 101%;
height: 99%;
overflow: auto;
}
to
.bodywrapper
{
width: 100%;
height: 99%;
overflow: auto;
}

modify index.php line 191
from
<div class="temp-full" style="height:<?php echo $temp; ?>%; padding-right: 50px"></div>
to
<div class="temp-full" style="height:<?php echo $temp*5; ?>%; padding-right: 50px"></div>

you may need to change the new 5 till it looks right on your display

Thanks mate, Tried your suggestion but it didnt work so I changed *5 to *9 and it made no difference.

Also how do I get the temperature to update automatically? It only changes if I refresh Chromium?
 
Last edited:
Ive been playing around with the css file using VNC. Every time I change something I have rebooted the Pi which takes awhile. Is there a way to restart Chromium again to see the changes? Also how do you get Chromium off the screen via VNC and go to the desktop? I have had to use my mini keyboard and Click ALT + 4 but that'd eosin work in VNC?
 
Ive been playing around with the css file using VNC. Every time I change something I have rebooted the Pi which takes awhile. Is there a way to restart Chromium again to see the changes? Also how do you get Chromium off the screen via VNC and go to the desktop? I have had to use my mini keyboard and Click ALT + 4 but that'd eosin work in VNC?
ctrl F5 will do a hard refresh and you should see the changes

Edit never mind that might not work in VNC. Only on the pi.
 
There is no calibration for the count per liter you just need to put in a value pour and see what you get then repeat until it is right. start with 7000 and go from there

To help quicken the calibration process, if you know the number of pulses used to fill a know volume, you can quickly calculate the pulses/gal your flow meter generates.

(EDIT: You can also see the pulse count in phpmyadmin under the 'pours' table and you would have no need to alter the Config.py)

First you would have to change the Config.py as @RandR+ has recommended when trying to troubleshoot and change these two lines to True

config['flowmon.debug' ] = True#False
config['dispatch.debug' ] = True#False

In the Rpints.log you will see the actual pulse count generated on your pour.

When you pour, pour into a metered or graduated vessel. As an example, I pour in a 0.5L pint glass. What is important is that you know the volume of your pour.

Set your taps to 7000 pulses/gal as RandR+ recommends.

Pour your beer to a given volume

Converting. 0.5L is 16.91oz

My flow meters generate 830 pulses to generate 16.91oz (That was my average after 3 pours)
830pulses / 16.91 oz =
49.08 pulses/oz
(128oz in a Gallon) =
6282 pulses/gal

Set that tap at 6282 pulses/gal. In theory, Maintaining your variables such as pressure, line length, and meter orientation can keep that pulses per gallon pretty true.
 
Last edited:
Good point it refreshes on a pour but not on the temp change

For the time being I just put in a JavaScript refresh on the index.php if you get the latest (https://raw.githubusercontent.com/rtlindne/RaspberryPints/master/index.php)

I might do something in python that if the temp changes 5 degrees send the refresh but this was quicker
Thanks RandR+! For for those of us using your branch, would that get automatically updated if we choose update from the install screen?

Edit: Never mind, I see it doesn't and I don't want it to. I'll just copy the snippet to my modified Index.php
 
Last edited:
would that get automatically updated if we choose update from the install screen?
Unfortunately no, you can rerun the installer script it will detect the install and prompt to update. The update on the install screen just runs the update.sql file to update the database. Eventually I might make the update do a git pull also
 
fwiw, I stuck an auto refresh tag in my index.php set for five minutes, which is the period the python script that reads the probes and posts to the temperature database runs at...

Cheers!
 
I placed this in the <head> of the index.php


<!-- Set page refresh -->
<meta http-equiv="refresh" content="1800">


for me 1800 = 30 minutes which is what have my temp probe set at. That number can be changed to whatever suits your needs.

Also, I placed your code change in in the index.php and was getting a "> on my home page.

I changed the code to the following. (What does the 60000 represent?)


<body onload="wsconnect()"; <php if($config[ConfigNames::ShowTempOnMainPage])echo "setTimeout(function()
{window.location.reload(true);}, 60000);"; ?>
 
Hi guys, thanks for the updates RandR+

Does anyone know how to minimize Chromium when connecting via VNC?
 
Hi guys, Im using an old Raspberry Pi B model for my RPints install and although its really slow to boot up and when doing changes in the settings etc it seems to do the job. But Im worried that once I connect up an arduino UNO and 3 flow meters it might not be adequate.

Will the B model handle this or should I upgrade to the Pi 3B +
 
Does anyone know how to minimize Chromium when connecting via VNC?

Are you using VNC Viewer? If so, you should see an icon (bottom left). Open that and it should give you a virtual keyboard option. Open the keyboard and select <ALT> <F4> and the browser will close. If you don't have the icon, I'm not certain what's wrong.

Will the B model handle this or should I upgrade to the Pi 3B +

I started this build using an RPi0W. Though it would run a web server no issues, as I started to add devices it struggled more and more. RPints with Temp Probe...no problem. When I added an Arduino and Flow Meters...things would just not work and soon even my temp probe stopped working with any regularity.

I went to the store to buy a new RPi. I wanted to buy a 3B+. When I got to the store, all they had were 3B's and a 3B+ in a Starter Pack. I decided to spend $35 USD more on the 3B+ Starter Kit (even though I didn't need the kit) then to settle for the 3B....just remember, if you move to a 3B+...you'll have to start all over again, so save your index.php, style.css, and anything else you might have modified.
 
Are you using VNC Viewer? If so, you should see an icon (bottom left). Open that and it should give you a virtual keyboard option. Open the keyboard and select <ALT> <F4> and the browser will close. If you don't have the icon, I'm not certain what's wrong.



I started this build using an RPi0W. Though it would run a web server no issues, as I started to add devices it struggled more and more. RPints with Temp Probe...no problem. When I added an Arduino and Flow Meters...things would just not work and soon even my temp probe stopped working with any regularity.

I went to the store to buy a new RPi. I wanted to buy a 3B+. When I got to the store, all they had were 3B's and a 3B+ in a Starter Pack. I decided to spend $35 USD more on the 3B+ Starter Kit (even though I didn't need the kit) then to settle for the 3B....just remember, if you move to a 3B+...you'll have to start all over again, so save your index.php, style.css, and anything else you might have modified.
Thanks mate, ill order the RPI3B+ now.

Im at work now but will check the VNC keyboard option when I get home. I think it has a drop down menu at the top which might have a keyboard.

So is there a way to back up my current SD card and then copy it to a new SD card?
 
So what does the Sd card copier do?

It makes a back-up of your RPi, so if the SD card your RPi is running on craps-out...you have a backup at the ready...I just don’t think you can use that backup on another RPi. (I don’t think it’s transferable, but someone with more knowledge will need to chime in)
 
I don't think you can make a duplicate image from 1 RPi and use it in a different RPi.
I have two of the same kind and was able to do it.

I think these are my notes on how I did it. Last thing may not be needed, I have a USB stick to save the database.

change these two files to give unique names
/etc/hostname
/etc/hosts
change /etc/fstab to make changes to mounted drives
 
I have two of the same kind and was able to do it.

I think these are my notes on how I did it. Last thing may not be needed, I have a USB stick to save the database.

change these two files to give unique names
/etc/hostname
/etc/hosts
change /etc/fstab to make changes to mounted drives
Thanks but I have no idea how to change those files? Can you give a more detailed procedure please? Where and when do I change these file names and how do I actually change them?

Do I do make a back up of the SD card from the old Pi using sd card copier to a usb stick?
Then copy the contents to my new SD card and right click the files in windows and change the names to say
/etc/hostnamenew
/etc/hostsnew

Will that work?
 
The 60000 is the Timeout for the window.location.reload function...in milliseconds.

fwiw, I have a couple of Model Bs, a Zero W, five 2Bs, a 3B+, and all but the last one are running the same SD card image. Only the differentiating details are changed from one system to the next (system names, static IP addresses, NAS folder pointers, etc). The 3B+ needed a more recent build for both the SOC and the embedded wireless stuff.

Use SD Card Copier with any decent card reader to do live cloning of the SD card. It's quite easy and highly reliable. Just plug the reader and card into the USB port, launch the Copier tool, and the rest is intuitive.

As for running RaspberryPints with flow meters and temperature probes - and motion sensor and a few instances of BrewPi, all on a Model B....been there, done that. It really wasn't all that sluggish, though there were times that a pour took a couple of seconds to complete a screen update.

That said, the 2B handles everything with aplomb, as should any of the multi-core SOC boards...

Cheers!
 
Last edited:
The 60000 is the Timeout for the window.location.reload function...in milliseconds.

fwiw, I have a couple of Model Bs, a Zero W, five 2Bs, a 3B+, and all but the last one are running the same SD card image. Only the differentiating details are changed from one system to the next (system names, static IP addresses, NAS folder pointers, etc). The 3B+ needed a more recent build for both the SOC and the embedded wireless stuff.

Use SD Card Copier with any decent card reader to do live cloning of the SD card. It's quite easy and highly reliable...

Cheers!
So I can copy the old sd card to a usb stick using sd card copier? But then what do I do? Copy it back to the new SD card via a windows PC and a card reader?
 
I honestly haven't even attempted that (and don't even know if the tool supports that) as I have a multitude of both SD cards and card readers and it's just so freakin' easy to plug the reader in with an SD card and let the copier rip.

When done, shut down, put the clone in the RPi, and boot up from that. If it works you know you're holding a working SD card as a backup...

Cheers!
 
Thanks but I have no idea how to change those files? Can you give a more detailed procedure please? Where and when do I change these file names and how do I actually change them?

Do I do make a back up of the SD card from the old Pi using sd card copier to a usb stick?
Then copy the contents to my new SD card and right click the files in windows and change the names to say
/etc/hostnamenew
/etc/hostsnew

Will that work?
Let me take a look, and flesh it out a bit more.
Thanks to all of the excellent information provided by @day_trippr in this thread my down rev pi came up quickly and has been working fine for the last years without much intervention so some of the stuff is dusty.

Basically you make a backup via a USB SD memory stick adapter then just plug it into the SD slot of the new unit.

Names changes in the host files are needed to make VNC happy I think or to run two at the same time.
 
VNC to view the taplist and or desktop, I removed the keyboard and mouse once it was up and running.

I think you can bring them up completely headless, but I have the keyboard and mouse and found that out later.
 
I honestly haven't even attempted that (and don't even know if the tool supports that) as I have a multitude of both SD cards and card readers and it's just so freakin' easy to plug the reader in with an SD card and let the copier rip.

When done, shut down, put the clone in the RPi, and boot up from that. If it works you know you're holding a working SD card as a backup...

Cheers!
Ok cheers ill try that and see how it goes. thanks.
 
Can't stress this enough because I'm a hella old computer platform architecture and design engineer and have seen a hella lot wrt "backups" over the decades: just as in the days of old and unverified tape backups which were a total crapshoot as to viability when needed, an untested SD card copy is not a backup at all. Whenever you clone an SD card, boot off the clone to make sure you actually have a viable copy...

Cheers!
 
@troy42,
How comfortable are you with working from the unix command line?
Do you plan to run both pi at once or just have one as a back up?
Im comfortable with it but just don't know much about it. I can ssh into my pi and perform basic commands but that's about it.

EDIT:- Ill only use the new Pi 3b+ I just brought and the old one will be scrapped.
 
Last edited:

Latest posts

Back
Top