Interesting. My pours.php from the legitimate v2.0.1 release doesn't look like yours. It doesn't even attempt to populate the time values, leaving them NULL by default, which I reckon is why modding the table worked for me...
Cheers!
Cheers!
My change:
# diff pours.php pours.php.orig
53c53
< $qry = "INSERT INTO pours(tapId, pinId, amountPoured, pulses, createdDate, modifiedDate) values ('".$taps[0]."','".$PIN."','".$amount."','".$PULSE_COUNT."', NOW(), NOW() )";
---
> $qry = "INSERT INTO pours(tapId, pinId, amountPoured, pulses, createdDate, modifiedDate) values ('".$taps[0]."','".$PIN."','".$amount."','".$PULSE_COUNT."', 'NOW()', 'NOW()' )";
There may have been some beer being pours.. for science.. of course!
OK, so I've restarted from scratch and can't make it past the first upgrade. Get: dpkg: unrecoverable fatal error, aborting: files list file for package 'libraspberrypi-doc' contains empty filename E: Sub-process /usr/bin/dpkg returned an error code (2)
Any ideas? Or where to go from here?
Edit: re-imaged drive and made it past that part, now I'm seeing "it has the wrong magic bytes at the start" scroll by, not sure what that was for.
Edit: Once it was done, rebooted and ran update and upgrade again, nothing to update. Continued on to the next step. Error: ldconfig: /usr/lib/libxfce4ui - 1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.
Thanks
I could see this being a great option for the RPints system. Maybe there could be an option in the Admin section where you could select: Don't Track Pours, Track Pours without Flowmeters and Track Pours with Flowmeters.Thought I'd post this here since I haven't seen mention of it. A user added new code that allows you to track pours by clicking buttons on Raspberry Pints. Here is the link to the post on reddit https://www.reddit.com/r/Homebrewing/comments/448ujz/raspberry_pints_with_buttons/
This is really handy for those of us that don't have flow meters but would like to track keg levels even if it won't be perfectly accurate.
Here is a screenshot of my heavily modified Raspberry Pints using his code
I could see this being a great option for the RPints system. Maybe there could be an option in the Admin section where you could select: Don't Track Pours, Track Pours without Flowmeters and Track Pours with Flowmeters.
Thanks for posting this.
I had the same problem at first.
Make sure you flow meter is not sagging below the beer line when it comes up to your keezer.
Also instead of 3 ft I coiled up a 10 ft and this resolved the problem.
I was wondering where along the beer line people have placed the flow meter?
I am getting 3/4 pours of foam on all pours but if I switch the same keg over to the other tap without a flow meter it pours fine. I have 10 foot 3/16th beer lines with the flow meter installed about 3 foot from where line connects to faucet shank. The beer line from the flow meter to faucet has no coils etc. just straight to the faucet.
I am using this flow meter:
http://www.amazon.com/dp/B00QC6LI6Q/?tag=skimlinks_replacement-20
Any ideas?
I'm hoping someone can help me out...I just recently set up my raspberry pi (not pi 2) with wheezy and raspberry pints 2.0.1 and I didn't change the keyboard layout, so I was not about to find the @ key, to enter in my proper email address on the webpage admin screen...and the user name and password I thought I input doesn't seem to work when i try to log into web browser from another PC on the same network, when I click on the "your brewery logo goes here" part of the web page.
is there anything that I can do to get into it? or if not, how do I reload to start it over again....it sure was a challenge trying to get Jessie to work, but couldn't find a way to get chromium...and then I searched this thread and found lots of talk about using wheezy since it did still have chromium...
thanks for any help.
Take a look at /var/www/includes/config.php
Cheers,
-Th
I will do that tonight, thanks...I'm new to raspberrypi's, is there a file viewer, like windows explorer to find files, and then a viewer? I think I used nano doing one sudo command to edit for my display size.
more /var/www/includes/config.php
in a terminal:
Code:more /var/www/includes/config.php
Cheers,
-Th
dwygrsshpr said:The one thing that got me was the keyboard layout so edit it:replace the 'gb' with 'us' and save/quit. Reboot now if you would like to have the changes take affect.Code:sudo leafpad /etc/defaults/keyboard
In addition to messing with the basic config file to adjust your display, you can also zoom the kiosk display in Chromium to best fill the available space.
I'm looking in the config.php file, but I don't see anything that looks like a username and password...
ok, misunderstood you at first, thought you'd lost the database password (just re-read, you actually want the user password). That password is md5'd in the database, so you won't be able to see that in plain text.
BUT, here is a solution, I think:
in config.php, see see a statement that starts with:
$link = mysql_connect('localhost'... ?
what follows is the login and password for the actual database. Use phpmyadmin to modify the user database and set the email correctly.
* With a web browser, call up http://<your.pi.ip.addr>/phpmyadmin
* use the login and password from above.
* click on the 'raspberrypints' database on the left
* click on the 'users' table on the left
* click on the 'edit' link for the user you want to change
* change the email address (DON'T change the password), then click 'go'
now use the normal mechanism for password recovery
Cheers,
-Th
wonderful, thanks, trying now...I hope I don't have to wipe it and start fresh again...for the third time, LOL...
UPDATE:
so I edited my config.php file with the leafpad editor and mine shows this, in that line:
$link = mysql_connect('localhost', 'beers', ' ');
mysql_select_db('raspberrypints');
}
I brought up the phpmyadmin page, and I tried a username of beers, with a blank password, it says "Login without a password is forbidden by configuration (see AllowNoPassword)".
I tried with a blank user name and a password of beers, same thing.
thanks for all your help CaptnDelta
ugh, empty pass for the pints user, funny. There is another user/password you can try, check out
/var/www/admin/includes/configp.php
And last not least, there is one more:
/var/www/admin/includes/conn.php
Don't wipe out the DB just yet...
Cheers,
-Th
ok, so I found where this is now:
from the pi
Quote:
go to localhost/install/index.php and selecting "Clear Data" from the drop down and enter the DB root password
from a web browser, go to your_ip/install/index.php or on the pi, localhost/install/index.php
got it, now I see the cleardata in the drop down, which is funny, cuz its the only thing in there right now...LOL
but I don't want to wipe it just yet, in case we an come up with a way to save it CaptnDelta...I'm willing to keep trying...I hate having a problem, without knowing how to fix it...
Again, clearing the DB doesn't get you much progress. Since you got no passwords set during install, we have to set phpmyadmin to allow password-less log in.
from a terminal:
sudo nano /etc/phpmyadmin/config.inc.php
search for the line that says:
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
remove the '//' in front (the // comments that line out and disables it, we want it enabled). This statement may be in there twice, do this to both occurrences.
Save the file, make sure it gets saved (Ctrl-O and Ctrl-X). Double check that the change was actually made.
Then try to log in again via phpmyadmin, leave the password blank this time. See how it goes.
Cheers,
-Th
Again, clearing the DB doesn't get you much progress. Since you got no passwords set during install, we have to set phpmyadmin to allow password-less log in.
from a terminal:
sudo nano /etc/phpmyadmin/config.inc.php
search for the line that says:
// $cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
remove the '//' in front (the // comments that line out and disables it, we want it enabled). This statement may be in there twice, do this to both occurrences.
Save the file, make sure it gets saved (Ctrl-O and Ctrl-X). Double check that the change was actually made.
Then try to log in again via phpmyadmin, leave the password blank this time. See how it goes.
Cheers,
-Th
Thanks to Guper in post 1686, I printed a case for my Pi and alamode. Works great. Probably will buy another alamode board however. Even with the extra long headers, the alamode doesn't like to seat firmly. I might try to de-solder and push it lower, but for the aggravation, a new board sounds easier.
Also, my swissflow meters came with an extra short pigtail. Anyone know what kind of connector that is called? I can root around digi-key or Newark to get something to connect; I really don't want to solder/shrinkwrap if I can avoid it.
I had an EE much more versed in connectors help identify it for me. He came up with Molex MKJ (MKJ is stamped on the connector). The companion part bein DigiKey Part number WM8288-ND .
I haven't ordered any yet to confirm, but I'd put my money on him being correct. Let me know if you get them and the outcome!
Enter your email address to join: