ok definitely is an Arduino thing but that could be something with the sketch or the board itself we just need to track down which one. Hopefully the power supply helpsLets see what happens tomorrow night...
ok definitely is an Arduino thing but that could be something with the sketch or the board itself we just need to track down which one. Hopefully the power supply helpsLets see what happens tomorrow night...
What I did was to run the install script again and move the old installation to a new folder when prompted. This fixed the issue.I have the exact same error, did you happen to find a solution to this one?
Power supply did nothing. Still stopped working tonight. getting this random message in the log fileok definitely is an Arduino thing but that could be something with the sketch or the board itself we just need to track down which one. Hopefully the power supply helps
that error is from the part of the code that automatically refreshes the page after a pour, so I would only expect that to affect the display page not the registering of pours.mod_pywebsocket.standalone.WebSocketServer: Exception in processing request from
It is possible they fail after a few months because of the power supply, or maybe the Pi is causing the issue. Buying an original may do the same thing if the issue is caused by something outside of the Arduino.Will buying an original Arduino perhaps fix this? Ive tried two Arduinos now and they both seem to work at first then start to fail a few months later?
troyp42 said:If Ive now had two arduinos fail like this could it be the PI?
Was your new arduino a clone or an original? I have now had 2 arduino clones both have this issue after a few months of use. I put the original back to work last night and it worked but this morning isnt registering a pour. something happens with them after a few hours or so that is causing this issue.I had the same kind of frustrating wonkiness. My build was working flawlessly for the first month and a half. Then one day it stopped. The first thing I did was make sure it wasn't an RPi SD card issue. Threw in my SD backup from when everything was running smoothly...couldn't log pours. Got a clean SD card, new installation...couldn't log pours. Made sure I had continuity in my wiring from my meters to my Arduino...all was good. Bought a new Arduino...been running smoothly for 3.5 months (knock on wood).
So any suggestions as to what the hell is going on here with my installation and why it keeps happening even with 2 different Unos now?I have never seen any of those issues, and I have quite a few Unos (including some clones with the 16U2 bridge) and a couple of Megas that have been running, many for years.
Seven of them doing brewery related tasks since 2014: two Alamodes doing R'Pints flow meter service, two Unos running BrewPi to control keezers, and three Unos in my BrewPi Bluetooth minions controlling my three ferm chambers. That doesn't even include the Megas and Nano.
I think the darned things are as close to bulletproof as you'll find in the e-hobby bidness. I have only had one Uno fail, and that one yacked up the 3.3V regulator after many years of use. I still have it and could fix it - or use it as a parts donor.
Most of my Arduinos and both Megas use 9V 1A wall warts for power; the two Alamodes and the two keezer controller Unos use 5V direct from power bricks inside their respective drawers, while the Nano gets 5V from the host PCB it plugs upon.
In short, 7.5V leaves too little headroom for the 5V three terminal regulator as its output load increases above "very light" (remember, the 5V rail feeds a 3.3V and a 1.8V regulators as well as anything that uses any of those three voltages). And 12V will cause the same 5V three terminal regulator to have to sink a prodigious amount of power in down-regulation. 9V is just right, and 1A gives plenty of capacity.
Finally, using USB to power an Arduino board can work, but it can also not work well, especially if the connecting cable has significant voltage drop. Almost every cable I've tested had a 200-250mv drop, and a couple of really bad ones had nearly a half volt of drop. These were all 18" long - the type that is tossed in the packaging with all kinds of consumer USB devices...
Cheers!
My Uno is a clone sold under the Inland label. In the States we have an electronics chain store called MicroCenter, that's where I purchased both of the Uno R3's.troyp42 said:Was your new arduino a clone or an original?
This is the standard I'm striving for.I have never seen any of those issues, and I have quite a few Unos (including some clones with the 16U2 bridge) and a couple of Megas that have been running, many for years.
Well I wish it was the same with my situation with my Unos. I brought a second one thinking that might fix it and its still no good and now the first one works anyway once I re-upload the sketch and reset the uno. Must be a reason why its dropping out though.My Uno is a clone sold under the Inland label. In the States we have an electronics chain store called MicroCenter, that's where I purchased both of the Uno R3's.
This is the standard I'm striving for.
I do not know if my issue was related to a borked Uno, or not. I only know it wasn't my SD Cards or my wiring. For $9 and a 30min round trip car ride, it was worth me buying a new Uno to find out if changing that variable could improve my situation. In my case, it did. Yes, circumstantial evidence at best....BTW, I still have that old Uno on my desk and if I need it for a project, I won't hesitate to give at a go.
Its driving me insane..Yes, there has to be another explanation. It'd be easier to come up with one if this curious problem was more widespread.
One of these days I guess I'm going to have to load up my test bed with current vintage versions and see what happens, but right now my list of things I need to get done this year (completely unrelated to brewing) is daunting as it is...
Thanks heaps for your help, I’ll reinstall & give it a try over weekendThe password isn't printed when you type it nor are asterisks indicating you typed something so you probably did enter in a password but couldn't tell
Yes reinstalling rpints again reportedly fixed the issue
But Ive been using a 9v 400ma power supply on this one. And why do they work fine for a day then fail again? Ive put the original back into use and its working fine once I upload the sketch etc then the next day it fails. Im wondering if its worth buying another Uno and keep it running with my 12v 4a power supply Im using now and see how that goes. (Ive got a 9v 1a on order from eBay)that error is from the part of the code that automatically refreshes the page after a pour, so I would only expect that to affect the display page not the registering of pours.
It is possible they fail after a few months because of the power supply, or maybe the Pi is causing the issue. Buying an original may do the same thing if the issue is caused by something outside of the Arduino.
That's not RPints specific but rather a repository issue. Absent a more specific diagnosis, I would try the following:Ran the installer from rpints.com and get this error
sudo apt update && sudo apt upgrade -y
Thanks for the offer but after re-installing rpints it’s all good! Flow meter seems to be working ok (with me just blowing thru it), it’s registering pours so I’m stoked! Now to set up some enclosures and start trialling on beer to see how this cheaper flow meter works...What I did was to run the install script again and move the old installation to a new folder when prompted. This fixed the issue.
I am back from work in 5 hours and could walk you through what I did if you want? I have now technical knowledge though and can simply tell you how I reinstalled and what I chose for options.
Thanks, I had same errors as Gengasi but after re-installing rpints a second time it’s now all good! Flow meter seems to be working ok (with me just blowing thru it), it’s registering pours so I’m stoked! Now to set up some enclosures and start trialling on beer to see how this cheaper YF-S402 flow meter works... Thanks again!Thanks heaps for your help, I’ll reinstall & give it a try over weekend
That's because Fermenttrack uses nginx and Rpints uses apache, so they are fighting for port 80. On a restart it alternates because one gets the port first.it alternates between rpints and Fermentrack..
it could be that the flow meters pull enough amps to drain the Uno over time causing power to be sucked from the communication chipwhy do they work fine for a day then fail again
admin\includes\managers\pour_manager.php ~ line 302say 200ml
That's because Fermenttrack uses nginx and Rpints uses apache, so they are fighting for port 80. On a restart it alternates because one gets the port first.
you can see 2.3. Legacy (PHP/Apache) Application Support (Optional) — Fermentrack documentation for ferment official documentation.
One thing you can do to keep both apache and Nginx running is to change one of their ports. Lets say you change Rpints to 8080 the URL you would use would be http://<ip>:8080
Ok yeah good point, makes sense. But it doesnt explain why its still failing now when Ive switched to a 12V 4A power supply?it could be that the flow meters pull enough amps to drain the Uno over time causing power to be sucked from the communication chip
Any suggestions on what I should do then? Im at a loss I really am...fwiw, the Swissflow SF800 meters use ~12mA when operated at 5V. I've had six of them running since 2014 on the same Uno using its 5V rail...
Cheers!
troyp42 said:Any suggestions on what I should do then? Im at a loss I really am...
Correct, I have all of my image files separated in subdirectories: tap, keg, srm, ibu, abv, logo but only because I have a lot of them so it just keeps things tidy you don't need to use subdirectories, if not remove the tap folder in the code like this:
Code:<span class= "tapcircle"><img src="img/<?php echo $i; ?>-tap.png" alt=""></span>
I called the top section the "active taps" section because that is where the code for your tapped kegs resides. The bottom section is where your "Nothing on tap" taps reside, ergo "inactive taps".
Cheers,
Kal
Ive done that twice already, brought a new SD card and Uno and started again. I dont really have any customizations other than my images and font size changes etc.. Im assuming the wiring is fine or it wouldnt work for 2-3 months when I first brought a new UNO. The current trend is buy a Uno, it works for 2-3 months then it stops and only works when I re upload the Sketch and reset the uno again. Then it works for a day and fails again. Rinse and repeat.Me, I am not a patient man. I would blow everything up (save my DB and my customized files) and start new with my current equipment. If my current equipment can show that it works, I’ll reintroduce my customizations one at a time making sure something I did, doesn’t mess up my build.
if my current equipment doesn’t show that it can work, and I know my wiring is sound...I buy new equipment and try again. If that doesn’t work....go back to my wiring because something ain’t right.
admin\includes\managers\pour_manager.php ~ line 302
change
$amount = 30/1000; //ml
to
$amount = 200/1000; //ml
Use puTTy to ssh into the pi.I did get PuTTy loaded and working but have no idea where to go from there
troyp42 said:Ive done that twice already, brought a new SD card and Uno and started again. I dont really have any customizations other than my images and font size changes etc.. Im assuming the wiring is fine or it wouldnt work for 2-3 months when I first brought a new UNO. The current trend is buy a Uno, it works for 2-3 months then it stops and only works when I re upload the Sketch and reset the uno again. Then it works for a day and fails again. Rinse and repeat.
1. Go to admin taps page there should be an upload button next to the tap number that allows you to upload an image for the tap1) Change the tap numbers in the left hand column to graphics; and
2) Make the beer name text larger
Use puTTy to ssh into the pi.
then type
cd /var/www/html
sudo vim index.php
(you can use a different editor, I just use vim)
find line 302 ($amount = 30/1000
hit the right arrow key until the flashing bar is on 30
hit i
delete 30
type 200
hit esc
type :w
type :q
refresh the page and try the pour button
my bad, somehow I was thinking index.php....admin\includes\managers\pour_manager.php I see that on line 15 but don't know how to get into it.
my bad, somehow I was thinking index.php....
you need to
cd /var/www/html/admin/includes/managers
sudo vim pour_manager.php
then follow the rest of my instructions
Yes I agree but Ive double checked all the wiring and Im using ethernet cable for the flow meters and power supply etc through the RJ45 jacks. Originally I had the flow meters grounded through the Pi not the Uno so I changed that awhile ago after Daytrippr advised me to do so. It doesnt miss a beat for the first 2 months or so then starts playing up again. Ive tried 2 Unos and would consider buying a new Pi if I thought it might fix the issue but I dont really want to keep throwing money at it.When it comes to electricity and continuity of lines, I don’t think it’s wise to make any assumptions. A bad connection can absolutely cause sporadic behavior.
If you’re cool throwing money at it, buy a new RPi and Uno and give it a whirl. (It’s what I would do if all else failed)