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.