• 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.
I don’t have that option.
Looks like you are using the original RPints and not my version. You will need to add to the database manually.

from the terminal
sudo mysql
use <Database name> (probably raspberrypints)

INSERT INTO `beerStyles`( name, catNum, category, ogMin, ogMax, fgMin, fgMax, abvMin, abvMax, ibuMin, ibuMax, srmMin, srmMax, createdDate, modifiedDate ) VALUES
( 'New England IPA', '1A', 'IPA', '1.028', '1.04', '0.998', '1.008', '2.8', '4.2', '8', '12', '2', '3', NOW(), NOW() ;
 
feel free to post the logs between WP;1 and WP;0 message for me to decode
that's weird, i don't have the WP;1 or WP;0 in the log, i put True for the flowmon and the dispatch, but nothing in the log even after restarting^^

and i don't have much difference between a good one and a bad one as you can see: (the RFID:1 worked, and the RFID:3 did not in this case )

2022-12-02 18:43:33 RPINTS: RFID:1
2022-12-02 18:43:33 RPINTS: Sending Status;Y;1;0;0;0;0;|
2022-12-02 18:43:33 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:43:34 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:43:34 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:43:38 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:43:38 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:43:41 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:43:42 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:43:45 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:43:45 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:43:51 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:43:51 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:43:55 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:43:55 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:43:58 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:43:58 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:02 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:44:02 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:03 RPINTS: Shutdown All taps, no select
2022-12-02 18:44:03 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:04 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:44:04 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:05 RPINTS: RFID 136834114252 User Id b'3'
2022-12-02 18:44:05 RPINTS: Sending Status;Y;3;0;0;0;0;|
2022-12-02 18:44:05 RPINTS: RFID:3
2022-12-02 18:44:06 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:06 RPINTS: Sending Status;Y;3;0;0;0;0;|
2022-12-02 18:44:06 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:44:06 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:08 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:44:08 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:10 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:44:11 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:14 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-02 18:44:14 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-02 18:44:36 RPINTS: Shutdown All taps, no select
2022-12-02 18:44:36 RPINTS: Sending Status;N;-1;0;0;0;0;|

but i have some errors in the log before that: (but i'm not sure that it was that because the RFID1 worked juste after... ^^

2022-12-02 18:38:30 RPINTS: Sending Status;N;-1;0;1;0;0;|
2022-12-02 18:38:32 RPINTS: reconfigure trigger: valve
2022-12-02 18:38:32 RPINTS: updating valve status from db
2022-12-02 18:38:32 RPINTS: valve update: RPU:VALVE:0=0
Traceback (most recent call last):
File "/usr/lib/python3.9/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.9/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/var/www/rpints/python/mod_pywebsocket/standalone.py", line 673, in __init__
CGIHTTPServer.CGIHTTPRequestHandler.__init__(
File "/usr/lib/python3.9/http/server.py", line 653, in __init__
super().__init__(*args, **kwargs)
File "/usr/lib/python3.9/socketserver.py", line 720, in __init__
self.handle()
File "/usr/lib/python3.9/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/lib/python3.9/http/server.py", line 405, in handle_one_request
if not self.parse_request():
File "/var/www/rpints/python/mod_pywebsocket/standalone.py", line 774, in parse_request
self._options.dispatcher.transfer_data(request)
File "/var/www/rpints/python/mod_pywebsocket/dispatch.py", line 297, in transfer_data
request.ws_stream.close_connection()
File "/var/www/rpints/python/mod_pywebsocket/_stream_hybi.py", line 848, in close_connection
self._send_closing_handshake(code, reason)
File "/var/www/rpints/python/mod_pywebsocket/_stream_hybi.py", line 817, in _send_closing_handshake
self._write(frame)
File "/var/www/rpints/python/mod_pywebsocket/_stream_base.py", line 141, in _write
self._request.connection.write(bytes_to_write)
File "/var/www/rpints/python/mod_pywebsocket/standalone.py", line 198, in write
return self._request_handler.wfile.write(data)
File "/usr/lib/python3.9/socketserver.py", line 799, in write
self._sock.sendall(b)
BrokenPipeError: [Errno 32] Broken pipe
[2022-12-02 18:38:32,762] [ERROR] mod_pywebsocket.standalone.WebSocketServer: Exception in processing request from: ('::ffff:192.168.0.100', 34648, 0, 0)
None
2022-12-02 18:38:32 RPINTS: Sending Status;N;-1;0;0;0;0;|
 
i don't have the WP;1 or WP;0 in the log
I forgot your arduino is controlling the relays so you dont know what it is doing without it telling the python.

I just committed a change that Arduino will push the valve status to the pi so you can see the status on the webpage. If you get latest go into python/FlowMonitor.py and uncomment line 445 (remove # at the beginning of the line)

Now the log should show when the Arduino updates the valve pin with the message got a Update Pins Request
 
My Rpints is performing brilliantly. I would like to know if the font size in the beer description can be enlarged - there doesn't appear to be anywhere within the settings to be able to do this, so I expect a css file will need to be amended
 
font size in the beer description can be enlarged
No css setting in the Admin panel, you need to adjust css:

add

#beerNotes{
font: 3em Georgia;
}

to the end of <wwwroot>/style.css
Of course, adjust 3em to the size you want
 
Is there a link to your version? I have mine installed on a windows computer instead of a RPi.
Looks like you are using the original RPints and not my version. You will need to add to the database manually.

from the terminal
sudo mysql
use <Database name> (probably raspberrypints)

INSERT INTO `beerStyles`( name, catNum, category, ogMin, ogMax, fgMin, fgMax, abvMin, abvMax, ibuMin, ibuMax, srmMin, srmMax, createdDate, modifiedDate ) VALUES
( 'New England IPA', '1A', 'IPA', '1.028', '1.04', '0.998', '1.008', '2.8', '4.2', '8', '12', '2', '3', NOW(), NOW() ;
 
I forgot your arduino is controlling the relays so you dont know what it is doing without it telling the python.
My raspberry pi control the valves through the relays, not my Arduino, I only have the flowmeter on the arduino... But if i test that:
i think this time i only had 1 or 2 out of 3 valves that are closed right after the opening (it sound like that and after the 30sec the valves still open are closing...) so not a complete restart of the arduino i presume.

2022-12-03 00:57:05 RPINTS: RFID 136834114252 User Id b'3'
2022-12-03 00:57:05 RPINTS: Sending Status;Y;3;0;0;0;0;|
2022-12-03 00:57:05 RPINTS: RFID:3
2022-12-03 00:57:05 RPINTS: got a Write Pins Request: WP;0;3;36;38;40
2022-12-03 00:57:05 RPINTS: Sending DONE;3;0|
2022-12-03 00:57:05 RPINTS: Sending Status;Y;3;0;0;0;0;|
2022-12-03 00:57:05 RPINTS: got a Write Pins Request: WP;1;1;38
2022-12-03 00:57:05 RPINTS: Sending DONE;1;1|
2022-12-03 00:57:05 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 00:57:06 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-03 00:57:06 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 00:57:12 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-03 00:57:12 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 00:57:35 RPINTS: Shutdown All taps, no select
2022-12-03 00:57:35 RPINTS: got a Write Pins Request: WP;1;3;36;38;40


but with the error with all the valves closing right after i have that:
2022-12-03 01:03:12 RPINTS: RFID 332199026186 User Id b'1'
2022-12-03 01:03:12 RPINTS: Sending Status;Y;1;0;0;0;0;|
2022-12-03 01:03:12 RPINTS: RFID:1
2022-12-03 01:03:12 RPINTS: got a Write Pins Request: WP;0;3;36;38;40
2022-12-03 01:03:12 RPINTS: Sending DONE;3;0|
2022-12-03 01:03:13 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-03 01:03:13 RPINTS: Sending Status;Y;1;0;0;0;0;|
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;36
2022-12-03 01:03:13 RPINTS: Sending DONE;1;1|
2022-12-03 01:03:13 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;38
2022-12-03 01:03:13 RPINTS: Sending DONE;1;1|
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;40
2022-12-03 01:03:13 RPINTS: Sending DONE;1;1|
2022-12-03 01:03:13 RPINTS: Sending Status;Y;1;0;0;0;0;|
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;36
2022-12-03 01:03:14 RPINTS: Sending DONE;1;1|
2022-12-03 01:03:14 RPINTS: got a Write Pins Request: WP;1;1;38
2022-12-03 01:03:14 RPINTS: Sending DONE;1;1|
2022-12-03 01:03:14 RPINTS: got a Write Pins Request: WP;1;1;40
2022-12-03 01:03:14 RPINTS: Sending DONE;1;1|
2022-12-03 01:03:14 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 01:03:15 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-03 01:03:15 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 01:03:20 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-03 01:03:20 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 01:03:25 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-03 01:03:25 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-03 01:03:43 RPINTS: Shutdown All taps, no select
2022-12-03 01:03:43 RPINTS: got a Write Pins Request: WP;1;3;36;38;40
2022-12-03 01:03:43 RPINTS: Sending DONE;3;1|
2022-12-03 01:03:44 RPINTS: Sending Status;N;-1;0;0;0;0;|

by the way, when i was playing with the debug, i saw that if i change the config['dispatch.debug' ] = True, then i see the change for the kegs (red cross => green check) automatically when I scan a RFID card, if i put False, the webpage doesn't refresh automatically. that better now :p
 
Last edited:
time i only had 1 or 2 out of 3 valves that are closed right after the opening
Based on the logs it seems like at least 1 valve is closing as soon as its opening, the first i see
2022-12-03 00:57:05 RPINTS: got a Write Pins Request: WP;0;3;36;38;40
2022-12-03 00:57:05 RPINTS: got a Write Pins Request: WP;1;1;38
Which means pin 38 is turned off right away

the second I see all three get turned off (twice)
2022-12-03 01:03:12 RPINTS: got a Write Pins Request: WP;0;3;36;38;40
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;36
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;38
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;40
2022-12-03 01:03:13 RPINTS: Sending Status;Y;1;0;0;0;0;|
2022-12-03 01:03:13 RPINTS: got a Write Pins Request: WP;1;1;36
2022-12-03 01:03:14 RPINTS: got a Write Pins Request: WP;1;1;38
2022-12-03 01:03:14 RPINTS: got a Write Pins Request: WP;1;1;40

Looking at the code the only thing that makes sense is that the manual control (hitting let it flow from the tap menu) is overriding the RFID, but I dont see how.

If you are comfortable modifying the arudino you can comment out line 397 (put // infront of the text) then upload and try again.
This will not allow you to manually stop a valve, but if it stops the closing then we have a root cause.

This isnt happening on mine and i am not sure why it is for you, If it was happening to me i would add more debug statements around lines 390-400 to capture what the arduino is thinking to figure out why its turning off the valves (if that were the spot causing the shut down, which i think it is because most other spots would log out why like: "Shutdown All taps, no select")
 
If you are comfortable modifying the arudino you can comment out line 397 (put // infront of the text) then upload and try again.
This will not allow you to manually stop a valve, but if it stops the closing then we have a root cause.

I can try yes, if you help me a little in the process with some steps...

This isnt happening on mine and i am not sure why it is for you,

This is weird yes, because sometimes it happens like twice in a row, and sometimes never during 10 or more test... ^^ it seems random, but maybe not
 
if you help me a little in the process with some steps...
the easiest way is from the Pi desktop, open arduino/raspberrypints/raspberrypints.ino by double clicking it, this will open the Arduino IDE.
find line 397 and type // Infront of the text.
Stop Rpints from the terminal
sudo /etc/init.d/flowmon stop
back on the IDE hit the upload button
1670076413680.png

this will compile the change and push to the board.

then start Rpints
sudo /etc/init.d/flowmon start
 
I may have something new, as I could not really try it before, but I just put some kegs that I had in my kegerator, and when I plug them, and try them, if I scan the RFID and all the valves stay open, once I start to pour, it closes the valve I am using ^^ instantly not the other one, and if i try an other one, it closes too...

so i may have a problem with my flowmeters or at least in my configuration, because they seem to work well when i tried them with water, alone without valves... :(
 
Last edited:
does 1 stay open? if so then i suspect you have the valve configured to the wrong tap so the tap that remains open is not the one pouring
no, it only close the one I'm using ^^ this is weird actually, i cannot make the flowmeters working again... i tried to remove the valves (thanks to quickfit tube ^^) the flowmeter doesn't count the poor, I will need to check all the wiring again, but it is a pain in the ass with my setup... and this is weirder because with the valves, it does shut them when I start pouring... so I assume it "feels" something...

I did not try with 3, 4 meters of wire between flowmeters and arduino, i don't know if it could be an issue...
 
Last edited:
it only close the one I'm using
definitely sounds like its detecting a pour and shutting down the valve.

The only place i could see this happening without more logging is ~line 292, here it only logs if it detects 10 pulses, but if it were to detect less than 10 then it would stop the valve without logging anything. You could try to change
if( pulseCount > 10 )
to
if( pulseCount > 0 )

and upload the sketch again. hopefully this will turn log out information to track this down.
 
this is weird actually, i cannot make the flowmeters working again
while thinking about this i realized i committed a change i was working on to improve timing of the pulses but i could not get it to work locally.
I thought i reverted before the commit but i was wrong

I just committed the fix and added some more logging to the write pins message. Could you get latest arduino code and try again
 
Could you get latest arduino code and try again

I got the latest arduino code, i put the changes (pulseCount > 0, and the // in front of the text lign 397), and i have something, the rfid open the valves, I started pouring, the 2 others valves are shutting, and the pour is counted...

2022-12-06 11:47:39 RPINTS: RFID:1
2022-12-06 11:47:39 RPINTS: valve update: RPU:VALVE:-1=0
2022-12-06 11:47:39 RPINTS: valve update: RPU:VALVE:-1=0
2022-12-06 11:47:39 RPINTS: valve update: RPU:VALVE:-1=0
2022-12-06 11:47:39 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:41 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 11:47:41 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:44 RPINTS: got a update: U;-1;5;26
2022-12-06 11:47:44 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:45 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 11:47:45 RPINTS: Tap Selected Pin 5 2
2022-12-06 11:47:45 RPINTS: SD NP L 5 2 138133 138104 29 300 51 50
2022-12-06 11:47:45 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:45 RPINTS: valve update: RPU:VALVE:-1=1
2022-12-06 11:47:45 RPINTS: got a update: U;1;5;56
2022-12-06 11:47:45 RPINTS: RT L 3 0 138591 138290 301 300 1 50
2022-12-06 11:47:45 RPINTS: valve update: RPU:VALVE:-1=1
2022-12-06 11:47:45 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:46 RPINTS: RT L 4 1 139036 138735 301 300 2 50
2022-12-06 11:47:46 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:46 RPINTS: got a update: U;1;5;82
2022-12-06 11:47:46 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:47 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 11:47:47 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:47 RPINTS: got a update: U;1;5;108
2022-12-06 11:47:47 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:48 RPINTS: got a update: U;1;5;134
2022-12-06 11:47:48 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 11:47:50 RPINTS: got a pour: P;1;5;152
Pourpour on pin: 5, count: 152, conversion: 540, amount: 0.28148148148148, amountUnit: ml, user: 1
2022-12-06 11:47:52 RPINTS: restarting fan timer after pour
2022-12-06 11:47:52 RPINTS: count update: RPU:FLOW:5=152:1
2022-12-06 11:47:52 RPINTS: RT L 5 2 142911 142610 301 300 152 50
2022-12-06 11:47:52 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 11:47:52 RPINTS: valve update: RPU:VALVE:-1=1
2022-12-06 11:47:52 RPINTS: SD NP L 5 2 142911 142610 301 300 0 50
2022-12-06 11:47:53 RPINTS: Sending Status;N;-1;0;0;0;0;|


but it does not stop the closing of the valves, it happens again... i and may have a problem with some sealing, and leaking ^^ maybe that's why it detects some "fake" pour and closing the valves.

2022-12-06 12:19:10 RPINTS: RFID:1
2022-12-06 12:19:10 RPINTS: valve update: RPU:VALVE:-1=0
2022-12-06 12:19:10 RPINTS: valve update: RPU:VALVE:-1=0
2022-12-06 12:19:10 RPINTS: valve update: RPU:VALVE:-1=0
2022-12-06 12:19:10 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:11 RPINTS: Sending Status;Y;1;0;0;0;0;|
2022-12-06 12:19:11 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:11 RPINTS: RT L 4 1 1346212 1345909 303 300 9 50
2022-12-06 12:19:12 RPINTS: valve update: RPU:VALVE:-1=1
2022-12-06 12:19:12 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 12:19:12 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:12 RPINTS: RT L 3 0 1346595 1346294 301 300 1 50
2022-12-06 12:19:12 RPINTS: valve update: RPU:VALVE:-1=1
2022-12-06 12:19:12 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:12 RPINTS: RT L 3 0 1346975 1346674 301 300 1 50
2022-12-06 12:19:12 RPINTS: RT L 4 1 1347134 1346674 460 300 1 50
2022-12-06 12:19:13 RPINTS: RT L 5 2 1347205 1346674 531 300 1 50
2022-12-06 12:19:13 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:13 RPINTS: valve update: RPU:VALVE:-1=1
2022-12-06 12:19:13 RPINTS: RT L 4 1 1347703 1347402 301 300 1 50
2022-12-06 12:19:13 RPINTS: RT L 5 2 1347780 1347402 378 300 1 50
2022-12-06 12:19:13 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:17 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 12:19:18 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:20 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 12:19:21 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:24 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 12:19:24 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:28 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 12:19:28 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:30 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 12:19:31 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:34 RPINTS: Motion Detector MD-PIR Detected Motion
2022-12-06 12:19:34 RPINTS: Sending Status;N;-1;0;0;0;0;|
2022-12-06 12:19:41 RPINTS: Shutdown All taps, no select

i made some tests without the one leaking, it seems to be ok for now ^^


what are the original numbers for the taps settings (counts) ? i changed the numbers because my count/L was 10 times less than i saw here with my flowmeters, but maybe i did a mistake...
 
Last edited:
why it detects some "fake" pour and closing the valves.
I think that is what is happening:
This trace indicates the arudinio is resetting all taps because after 300 milliseconds only 1 pulse was detected but the pour limit is 50 pulses
2022-12-06 12:19:12 RPINTS: RT L 3 0 1346975 1346674 301 300 1 50
2022-12-06 12:19:12 RPINTS: RT L 4 1 1347134 1346674 460 300 1 50
2022-12-06 12:19:13 RPINTS: RT L 5 2 1347205 1346674 531 300 1 50

since 1 < 10 we didnt see that message before to know for sure.
Im thinking probably need to throw away the pulses when less than tap selection but not close the valves. I just committed that change, i didnt spend a lot of time testing it but i noticed it still shutdown taps that were not pouring then the pouring tap after the pour stopped.


i changed the numbers because my count/L was 10 times less than i saw here with my flowmeters, but maybe i did a mistake
I dont think the count/L is going to affect this, but if you have a lower count/L you should lower your pour trigger count. Which it looks like you have set to 50 and i have set to 200 so you should be good there
1670337719265.png
 

Attachments

  • 1670337771024.png
    1670337771024.png
    7.6 KB
Is there a way for me to upgrade without losing everything or do I just need to start over?
I would start and take a backup of your system.

You can then run the latest /sql/update.sql from github (I just updated it) against your database it should add most of the new table and columns that i added.

I did not test it with the code but did a static compare of the database and it looks like it got everything. It should keep your data while allowing you to update to the latest. let me know if you have issues after updating
 
When connecting flowmeters and PIR to the Alamode pins do you configure RP to reflect the GPIO or board pin numbers
 
flowmeters and PIR to the Alamode pins do you configure RP to reflect the GPIO or board pin numbers
Flowmeters go to the Alamode pins number after the D printed on the board. so D1 = pin 1

the PIR goes to the PI pins, that configuration uses the Board pin number
 
You can also see the configuration pin you can use through the admin screen -> Advanced hardware -> Hardware IO Pins, it gives a visual representation of your boards and what RPints is configured to use
1671111236174.png
 
Okay so I installed my flowMeters (YF-S401) at the beginning of the line (just after the keg) and now my beer glass gets filled with 80% foam and 20% liquid.

Is there anyway to fix this?
 
Is there anyway to fix this?
I use the same type of flow meters although with the 1/4" quick connect fittings. to make the connections i used john guest barbs to convert the female push in to male barb. At first i started with very small barbs (3/16th) then tried bigger ones (1/4) because of the foaming issue and that seemed to elevate it.
My meters are closer to the faucet then the keg, though i think there is mixed feelings over where to put them. I put them there for to make running the wires easier more than foaming.

Another thing that caused foam was the wheel inside got stuck (hop particles or something on the magnet) that cause turbulence in the flow. cleaning the wheel fix that.
 
I have your version of RPints running but cannot get the flowmeters Pins (GPIO D5-D13, 5v and gnd), Temp Probe on pin (GPIO 4, 3.3v and gnd (waterproof DS18B20)), or the PIR on pin (GPIO 17, 5v and gnd) to run. Completed a fresh install of Pi and RPints and fitted a new DS18B20 still no good. It appears as if the alamode board is not being recognised. Do I need to run all the code in the alamode user guide
 

Attachments

  • IMG_20221231_092904_365.jpg
    IMG_20221231_092904_365.jpg
    4.2 MB
It appears as if the alamode board is not being recognised
have you tried opening arduino/raspberrypints.ino in the arduino IDE on the PI and uploading it?

I found that bullseye (latest pi os) doesnt support the old method for the alamode board install. I doubt they will have an updated script for it, but the upload process at the start of RPints still works to get the arduino code on the board and working. Check /var/log/rpints.log to see if the upload was sucessfull. Also check /var/www/html/python/Config.py to confirm the last instance of config['flowmon.port'] is config['flowmon.port'] = '/dev/ttyS0' that indicate the serial port versus the USB port
 
Thanks - will look into it.
I did get the temp to read on pin 4 but it doesn't seem to be updating - temp seems to be right but the time is incorrect
 
I know it's good etiquette to read the whole thread, but at almost 8000 posts, with information scattered throughout, that would be pretty time-consuming (I have looked through the last few pages, and didn't see an answer); hopefully someone can point me a little more directly to an answer. I'd like to run something like "nts" ("nts": RaspberryPints Without The RaspberryPi), running the server on a Linux system (and I'm OS/distro-agnostic there), receiving MQTT from KegCop, and displaying on some other device (likely a tablet, at least at the outset). I can see there are multiple forks, but I don't know where they all are, or which is most up-to-date. Some clarification on this?

Edit: It's looking like the installer script at install.rpints.com (aka https://raw.githubusercontent.com/rtlindne/RaspberryPints/master/util/installRaspberryPints) is the most up-to-date, but it complains when running on Debian (Bullseye) rather than RaspberryPiOS. But even so, it seems to be installing. It requires manually editing /etc/apt/sources.list to include "contrib" for the main repos, and also manually installing python3-pip. It also seems that it installs a lot of packages related to a graphical environment that aren't necessary if the system's going to run headless (as mine is). But with that said, it does seem to install everything, I can browse to the page, log in as the admin user, change settings, etc.

So it's always the case that one finds the answer after one has already posted the question, but I'd still appreciate if there's further clarification to be had.
 
Last edited:
clarification to be had
it sounds like you got it to work on a non-PiOS. Probably not much more to add then good job and if you see any improvements that can be made (besides increasing the OS compatibility, im not looking to take that on for the installer) let me know.
 
Back
Top