shaggybeerprof
Active Member
ha! says you! that's a little over my head, but I'll dig some more and try...There is nothing built into RPints to manage VLC when Rpints is running but you certainly can create a script to start VLC on pi start
ha! says you! that's a little over my head, but I'll dig some more and try...There is nothing built into RPints to manage VLC when Rpints is running but you certainly can create a script to start VLC on pi start
View attachment 736973
the saved files will fluctuate but they aren’t that big.
it looks like you have the job written correctly, and you wrote the job using ‘sudo crontab -e’?
I guess make sure you have mysqldump in the /usr/bin/ directory.
If I update will I lose all my settings again?I just checked in a change to fix this and prevent deleted fermenters from showing.
You can rerun the installer to update or hit the get latest Rpints on the install page to update
Thanks for taking the time to reply, I have done this (I think) but haven’t noticed any change to the screen when I reboot the pi. I am a complete beginner with this so have probably done something wrong. Could I have entered the settings in the wrong place of the config.txt file?I had to do a little digging to find the settings. I did not test them myself
Using elevated privilege's (i.e. sudo vim or sudo nano)
Modify /boot/config.txt
change or add these settings:
hdmi_cvt=1024 600 60 3 0 0 0
hdmi_group=2
hdmi_mode=87
then reboot
I just comitted the fix for this, if you update Rpints it should look betterbut when I turn the title bar off (my preferred layout) all but one of the title headings turns off and the screen is misaligned.
I Updated the script to not mess with settings that are already set but it may have a bug in it i havent caught yet.If I update will I lose all my settings again?
Depends on if the settings appear multiple times in the config file. If they do, usually the last entry is used so if you put those at the beginning then your settings wouldnt be usedCould I have entered the settings in the wrong place of the config.txt file?
I updated as normal anyway and everything seems ok. Thanks again.I Updated the script to not mess with settings that are already set but it may have a bug in it i havent caught yet.
you can modify the install script to have it not run the database update.
in util/installRaspberryPints delete
mysql ${MYSQL_CMD} -D ${MYSQL_DB_NAME} -s -L < ${WWWPATH}/sql/update.sql > /dev/null 2>&1;
from line 1706
then
sudo chmod +x /var/www/html/util/installRaspberryPints
sudo ./var/www/html/util/installRaspberryPints
that will update the files without the database. But it will also overwrite the file so i suggest moving it out of the directory before running so you can use it again later
Looks great ... thanks!I just comitted the fix for this, if you update Rpints it should look better
So, I re-entered these settings at the bottomDepends on if the settings appear multiple times in the config file. If they do, usually the last entry is used so if you put those at the beginning then your settings wouldnt be used
It was set to ‘ON’do you have all rows showing the same Height?
View attachment 737787
did you do a screen refresh after setting it to off? it doesnt automatically refresh.it doesn’t seem to have done anything.
Thanks, no I hadn’t. I’ve switched it back off and done a reboot. There is a slight change….but I’m still only getting not quite 3 of the 6 taps displayed on the screen, and still got the white stripe down the right hand side.did you do a screen refresh after setting it to off? it doesnt automatically refresh.
It looks like the descriptions dont have enough width to display properly. either turn them off or remove other columns (then refresh). There isnt much that can be done with that small width. You also try having the tap list be in vertical mode..but I’m still only getting not quite 3 of the 6 taps displayed on the screen, and still got the white stripe down the right hand side
Haaha mine plays a homer simpson beer mm beer clip and refreshes my taplist haha mqtt has a ton of possibilitiesAh cool, I thought maybe it would send temp, pours, beer stats etc to a mqtt server! Get the speakers to play cheering sounds everytime one pours a beer etc
Ok tried your new file and good thing is that the logs isn't showing any errors or "to slow" messages. The downside... nothing is showing in the UI either. It just stays at the same values. Tried adding a 1 to the ratio, leaving them empty, adding weights, removing weights etc. but no change
View attachment 720787
sorry I'm slow to respond but for some reason my homebrew talk notifications were going to my junk mail folder but if you are still stuck let me know! I wrote code for the photon and hacked pints to MQTT and sent my work to @RandR+ I just now realized he integrated it into his script. I am stoked you are the man!!!!I've been trying to feel my way through all of this. One thing I noticed in the flowmonitor script was what appears to be a call to flash a .ino file. I've tried to:
1. Load into Particle IDE, but it throws an error looking for a file thats not there.
2. I put the Photon in to DFU mode, connected to the pi, rebooted, and tried:
a. restarted flowmonitor from the RPints console
b. manually ran the python script from the CLI
Still no luck.
Anyone that can point me in the right direction, I'd really appreciate it. Getting this Photon working is the last piece of the puzzle I need to get working.
Many thanks!
Check with @bscuderiFirst, I keep seeing mention to this photon code, is there anyway anyone is willing to share or point me in the right direction of this code?
I added logic to FlowMonitor.py to handle a new message "T" that will record temp from MQTTSecondly, is there any chance of being able to send temperature values to the MQTT listener on Rpints to update my keg temps?
Thanks @RandR+ . Temp values are now showing up, that was a quick update!Check with @bscuderi
I added logic to FlowMonitor.py to handle a new message "T" that will record temp from MQTT
update then send the temp message via MQTT
T;<Probe>;<Temp>;<Temp Unit>;<taken date>
example:
"T;1234;44.4;F;2022-08-01"
@mrstone14 yeah here's my photon code for anyone it may help your mileage may vary so a couple of things about it. I have it set up for 3 taps and not simply changeable by code you can copy paste relevant sections and add more taps if you need. Also I'm not using the particle cloud to connect. I go manual mode and wifi only since I don't need the cloud. I may add an mqtt message top make it connect to the cloud in the future for easy code updates for now if i need to flash code I just put the photon in safe mode to flash. You can see with my pours I filter for several things unique to a pour to eliminate the false pours I was getting on a classic raspberry pints arduino. You again may need to tweak to your needs.. It works great for my setup though. For debugging I have a pour that was filtered out by the filters publish a retained mqtt message to false pour topic.. Again I'm an amature I'm sure someone could do alot better with it even make it play nicer with all the other pints functions.. For me although its a win getting the pi off the fridge and plugged in where I have ethernet. You have to put your server ip in near the top where I have it and the bottom function mqttconnect() will need your mqtt server username and password as well.. Hope this helps!Check with @bscuderi
I added logic to FlowMonitor.py to handle a new message "T" that will record temp from MQTT
update then send the temp message via MQTT
T;<Probe>;<Temp>;<Temp Unit>;<taken date>
example:
"T;1234;44.4;F;2022-08-01"
Also this is awesome!!!! I kinda wondered about this have some ds18b20s laying about and I'll probably have to incorporate this when I get bored lolCheck with @bscuderi
I added logic to FlowMonitor.py to handle a new message "T" that will record temp from MQTT
update then send the temp message via MQTT
T;<Probe>;<Temp>;<Temp Unit>;<taken date>
example:
"T;1234;44.4;F;2022-08-01"
The root of RPints contains style.css it has most of the styles in it labelled by what they control (i.e. tapnum, beername) some styles are inline html styles in includes/beerListTable.php and includes/beerListTableVerticle.php (depending if you want the tap across the top or on the left side)If I need to change a Style.css which folder will it be in and what sections?
HiThe root of RPints contains style.css it has most of the styles in it labelled by what they control (i.e. tapnum, beername) some styles are inline html styles in includes/beerListTable.php and includes/beerListTableVerticle.php (depending if you want the tap across the top or on the left side)
So you asked how to do it, then you went and did it a different way. Cool.
h1 {
font-weight: bold;
color: #fff;
font-size: 32px;
!important;
}
h2 {
font-weight: bold;
color: #fff;
font-size: 24px;
!important;
}
Alive indicates the arduino is up and running, its waiting for the python to respond with the config.The sketch seems to upload fine to the Mega, although I do only see "alive" in the serial monitor when I check on my PC, not sure if that is normal or not. Anyone have any thoughts? I can provide more info as needed, I'm just not quite sure where to go from here.
So among some normal output I've seen in the interface logs, running these commands had the following error print out:Alive indicates the arduino is up and running, its waiting for the python to respond with the config.
Try stopping the service and running the python manually (assuming you installed to the default www root)
sudo /etc/init.d/flowmon stop
cd /var/www/html/python
python PintDispatch.py
reflashing failing isnt normal but not a show stopper if the arduino was flashed once and responding to the config.('RPINTS: reflashing Arduino failed, moving on anyways, error was: ', CalledProcessError())"
So something isn't communicating properly it seems.
Edit: Turned on flowmon.debug, log is attached for reference.
Thanks @RandR+ . I'll have to fiddle with the Mega a bit because, as far as I can tell, voltages look good to the flowmeters. I switched over to an Arduino Nano I had laying around and everything is working fine now.reflashing failing isnt normal but not a show stopper if the arduino was flashed once and responding to the config.
looking at the log I see the python got the alive and responded with no further anomalies from the Arduino which tells me the code is working as it should but the flow meters are not reporting anything almost like the power to them is unplugged so they cant
what pins were you using with the Mega? there is a limited number of pins that can be used because the logic uses interrupts to get the count for the pour.I'll have to fiddle with the Mega
Enter your email address to join: