CaptnDelta
Well-Known Member
- Joined
- May 7, 2014
- Messages
- 164
- Reaction score
- 26
Steps taken:
1) reboot
2) RasPints come up with one tap shown (logo and header scripts okay)
3) goto login page (default is user is 'localhost' - I change to 'admin' with no password).
4) changed number of taps to '2' and updated. two taps showing in admin page and homepage
5) reboot
6) two taps showing on homepage
I did not import any databases. attached are what you ask (+ taps.sql):
rpints.log: https://drive.google.com/file/d/0B1jZ8P9yVbHQUUYxX2JMZmNCVVE/view?usp=sharing
error.log: https://drive.google.com/file/d/0B1jZ8P9yVbHQT2dUZVRybEtFdjA/view?usp=sharing
config: https://drive.google.com/file/d/0B1jZ8P9yVbHQeVc1UFVQTVRBRmM/view?usp=sharing
taps: https://drive.google.com/file/d/0B1jZ8P9yVbHQM1UwX25JYXlFQ0k/view?usp=sharing
tapconfig: https://drive.google.com/file/d/0B1jZ8P9yVbHQemRsejBvSFd0YVU/view?usp=sharing
I am not sure, but it looks like the database is not reporting accurately as you suspect. Before we get to far, should I go back to an earlier image and reinstall your version of RaspberryPints via post 1402?
Ok, I think I found the problem. Your tapconfig table is missing a column, caused by a missing statement in the install file. It's in the repository, but it didn't make it into the release zip file. Sorry about that...
So, here is how you can fix this. Just follow the steps down below, don't do any extra reboots, resets, etc.
(1) disconnect/close all web browsers that currently display the tap list or RPints config screens
(2) use phpmyadmin to click on the "raspberrypints" database in the upper left area, and select the SQL tab.
(3) execute the following sql script *verbatim*, making sure there are no copy/paste mistakes. Hit 'go' in the lower right corner.
Code:
DROP TABLE IF EXISTS `tapconfig`;
CREATE TABLE IF NOT EXISTS `tapconfig` (
`tapNumber` int(11) DEFAULT NULL,
`flowPin` int(11) DEFAULT NULL,
`valvePin` int(11) DEFAULT NULL,
`valveOn` int(11) DEFAULT NULL,
`count` float NOT NULL DEFAULT '1500'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
your table before is missing the 'count' column, with this we're creating it. After this script executes, use phpmyadmin to make sure the 'count' column is now present in the tapconfig table.
(4) try again to add your numbers of taps, and tap config. This should fix it. I will update the release .zip once you tell me that this works.
Cheers,
-Th