No problem, glad you got it workingSorry, I know I've probably been quite annoying with this but I really appreciate it.
No problem, glad you got it workingSorry, I know I've probably been quite annoying with this but I really appreciate it.
I will retry the nginx installation on my test box, if there is a specific reason you are using nginx then I recommend trying to remove it then installing with apache.following error when trying to install rpints
I recommend just running this from the terminalDo the instructions on Raspberry Pints website still apply/work for the Buster OS?
Quick question. I am building my pi/arduino as I write this. I have a 6 pack of the SF800 flow meters as well. My question is how did you connect them up? all 6 to one arduino, or 1 arduino per meter? I am struggling through this. Also, I am a complete noob to this, I have 0 programming ability. I can usually figure stuff out, but I don't want to waste any more money/time then I have to! Thanks!No foam issues here using a six-pack of SF800 meters...
Cheers!
All the flow meters go to one Arduino then the Arduino gets configured with the pins the meters are connected to (original RPints you had to modify the Arduino sketch, in my version you can configure it through the tap list admin page)connect them up? all 6 to one arduino
No preference, and honestly I don’t know enough about these things to have a preference. If you say it works with Apache then I’ll try that when I get home. I’ll uninstall nginx like you said above and then follow steps to install Apache and give rpints a go again. I’m super new to web hosting and raspberry pi so I’m following tutorials online for all this.I will retry the nginx installation on my test box, if there is a specific reason you are using nginx then I recommend trying to remove it then installing with apache.
to remove
sudo apt-get remove nginx
So I tried uninstalling nginx and it gave me an error. I then tried http://localhost and it worked. I tried to install Apache2 and it was already installed. So I ran the rpints script again and it gave me the option of Apache or nginx, so I chose Apache and this is what I get. I'm lost. May need to wipe the disk and reinstall a fresh copy of raspberry pi and try again.I will retry the nginx installation on my test box, if there is a specific reason you are using nginx then I recommend trying to remove it then installing with apache.
to remove
sudo apt-get remove nginx
Update. I tried it again and it worked, at least I think it did. it went through everything and then it rebooted. Now it loads to the Apache2 Debian default page. Not sure what I'm supposed to do now.So I tried uninstalling nginx and it gave me an error. I then tried http://localhost and it worked. I tried to install Apache2 and it was already installed. So I ran the rpints script again and it gave me the option of Apache or nginx, so I chose Apache and this is what I get. I'm lost. May need to wipe the disk and reinstall a fresh copy of raspberry pi and try again.
Did you get a prompt like "Where do you want to install RaspberryPints"?I tried it again and it worked, at least I think it did
Thank you! Next question. With all of the positive and negatives connected together (I will have 6 of each) do you put an individual 2200 Ohm resistor for each flow meter? (looking at the Swiss Flow meter diagram they have a 2200 Ohm resistor for 5V)?All the flow meters go to one Arduino then the Arduino gets configured with the pins the meters are connected to (original RPints you had to modify the Arduino sketch, in my version you can configure it through the tap list admin page)
Wire all the positive wires together and connect to the +5v pin on the Arduino, wire all the negative wires together and connect to the ground pin on the Arduino. the pulse wire is what gets connected to the numbered pins on the Arduino.
im not the expert on swiss flow meters so I will have someone else answer thatdo you put an individual 2200 Ohm resistor for each flow meter?
I think you're right. I'm trying again and now it's asking me where to install it. Not sure what to put. It just says /var/www/HTML right now.Did you get a prompt like "Where do you want to install RaspberryPints"?
it sounds like it installed all the programs needed but never actually got Rpints installed
I added a few bits to the raspberrypints.ino file (the "classic" version) sketch that lights up the LED attached to Uno GPIO 13 when a pour has been committed...
that is the default website folder and unless you have a reason to put it elsewhere put it there.Not sure what to put. It just says /var/www/HTML
Thanks, this helps a lot! Just out of curiosity, if the LEDs blink too fast to actually see the pour, do they show the pour happening or only end state of the meter?I also use a 2k2 pull-up resistor between the +5V supply from the Arduino and the pulse pin of each flow meter. The pulse pin is then connected to the digital pins on my Arduino.
I also connected the base of a 2N2222 transistor via a 22k resistor to each pulse pin. A LED is connected via a 120 ohm resistor to the transistor's collector and the emitter is connected to ground. The LEDs go on an off as the SF800s turn, which gives me a visual indication as well. The pulses are too fast to see the LEDs flash when you pour, they just go on and off depending on whether the SF800 ends the pour high or low.
I've attached an annotated picture of the breadboard I use for the connections.
View attachment 693626
Just out of curiosity, if the LEDs blink too fast to actually see the pour, do they show the pour happening or only end state of the meter?
Thanks a ton for your help! Looks like something must of went wrong the first time because all I did is try installing it again and it worked! Now I just have to figure out how to edit all of this.that is the default website folder and unless you have a reason to put it elsewhere put it there.
I first shut down the flow monitor service...
systemctl stop flowmon
would also do the trick, I just don’t trust software shut-offs:alias flowstart='sudo /etc/init.d/flowmon start'
alias flowstat='sudo /etc/init.d/flowmon status'
alias flowstop='sudo /etc/init.d/flowmon stop'
check /var/log/apache2/error.logEverytime I go to add a new beer it crashes. Not sure what is going on.
what fields are you filling in?Everytime I go to add a new beer it crashes. Not sure what is going on.
Ha! Thanks. I do not feel ignored. However, I think I fixed it myself. Lots of Google searches made me try switching the HDMI cable out and it hasn't crashed since. So it leads me to believe it was something with the cable.I may need a self deprecating, you can do this Garz Button....kinda like the Easy Button, but Easier.
Not to ignore you @sigel619, but no, that's not normal behavior. /var/log/apache2/error.log ....the man that can help has arrived!
Sorry, I've been drinking.
Super NOOB question, I have a Pi 4 on the way. Do the instructions on Raspberry Pints website still apply/work for the Buster OS?
I found if you go to the taps table and delete the old tap row that is no longer active it'll cascade and remove all the entries in the pours table. You obviously lose all the history of your taps and pours except those that are active but to me it just makes it easier to look at the pours table in case something goes awry.Once the tap isn't assigned a beer, I go ahead a clean...then have to go into the DB and delete those pours....maybe this is a feature request? A way to clean lines where the recorded pulses aren't included in the pour history, beer statistics, tap statistics, etc. (or maybe a flowmon stop to clean lines button, and a flowmon start in the GUI?)
I found if you go to the taps table and delete the old tap row that is no longer active it'll cascade and remove all the entries in the pours table. You obviously lose all the history of your taps and pours except those that are active but to me it just makes it easier to look at the pours table in case something goes awry.
Just a gentle reminder for all you users - RUN A BACKUP of your card occasionally. A few weeks ago I was having issue with one of my taps not registering and after some debugging thought I had it figured out, soldered the connections and retested and it failed again. Frustrated I rolled up the line and put it in the keezer to avoid blowing a fuse. However in doing that I must have crossed something and smelled something - I touched the Pi and my memory card was HOT to the touch. Sure enough I somehow fried it. Luckily I had a backup from about year ago - reloaded a new card, put it in, crossed my fingers and everything came back up. I was cringing at the thought of redoing the install on my 3-4 year old setup with new OS, software, hardware etc - luckily I avoided all of that with a backup. BACKUP BACKUP BACKUP
The logic is querying the taps table by ACTIVE taps and ordering by tapNumber. Removing a row does absolutely nothing to the what is returned since its a non ACTIVE tap.So, the logic is querying the database and taking first to last. Removing a row, say row 3, bumps up the remaining rows.
In my experience, it's always best, and most perferred, to resolve an issue/error, instead of kludging things.
Enter your email address to join: