just go into \python\Config.py and make sure the last line isI'll run the installer and reconfigure and see if it fixes it
config['flowmon.port' ] = '/dev/ttyACM0'
then restart flowmon
just go into \python\Config.py and make sure the last line isI'll run the installer and reconfigure and see if it fixes it
You da man! Success! Thanks again ...just go into \python\Config.py and make sure the last line is
config['flowmon.port' ] = '/dev/ttyACM0'
then restart flowmon
/var/www/html/
and this becomes the active code. After you're done with the install, you can inspect this by running the commandscd /var/www/html
git remote -vvv
origin https://github.com/rtlindne/RaspberryPints.git (fetch)
origin https://github.com/rtlindne/RaspberryPints.git (push)
git pull
to refresh the master branch of the repo you have checked out.username
replaced by your GitHub usernamecd /var/www/html
sudo git remote add fork https://github.com/username/RaspberryPints.git
sudo git fetch --all
cd /var/www/html
sudo git checkout -b fork fork/master
Branch 'fork' set up to track remote branch 'master' from 'fork'.
Switched to a new branch 'fork'
M admin/img/logo.png
M img/logo.png
cd /var/www/html
sudo git pull
[email protected]:RaspberryPints/RaspberryPints.git
. You can then push your changes back up to GitHub.Mate that is awesome you've made these changes. Updating was a PITA before. So with the compare is it just a matter of copying the changed lines of code from the existing files into the new ones that were made after the update?Ok got the temp logging updated (again) now it will force each reading iteration to have the same timestamp so I can use my simple query that is fast
Also update the installer two main updates
1. added support for side by side installation with fermentrack.
2. added updating to stash changes before getting latest then after the update is complete, opening a compare so users can see their changes compared to the latest (unfortunately they need to manually apply their changes as the compare happens on temp files)
git status
in the html directory, e.g.pi@raspberrypi:/var/www/html $ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: admin/img/logo.png
modified: img/logo.png
modified: includes/refresh.sh
modified: python/Config.py
no changes added to commit (use "git add" and/or "git commit -a")
origin/master
is my fork, which I can check withpi@raspberrypi:/var/www/html $ git remote -vvv
origin https://github.com/duncan-brown/RaspberryPints.git (fetch)
origin https://github.com/duncan-brown/RaspberryPints.git (push)
Yes, but you need to check it out as a remote tracking branch withAfter I point my Pi to my Git Fork, and then run checkout, can I checkout a specific branch in my fork by changing fork/master to fork/branch_x?
sudo git checkout -b fork fork/branch_x
git pull without any arguments does a pull to the currently active branch. You can check this withWhen I run the git pull, does it always pull from Master or does it pull to the branch I specified during checkout?
git status
or git branch -vvv
Yes, you need to look through the differences for the ones you want to keep (i.e the ones you made) then manually copy and paste them into the same file under your install path (for example you added text to /var/www/html/index.php, the compare will show the difference and you will need to manually copy it back to /var/www/html/index.php)So with the compare is it just a matter of copying the changed lines of code from the existing files into the new ones that were made after the update?
pi@rpints:~ $ curl -L install.rpints.com | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 299 100 299 0 0 1738 0 --:--:-- --:--:-- --:--:-- 1748
100 54276 100 54276 0 0 115k 0 --:--:-- --:--:-- --:--:-- 115k
***Script rpints_install.sh starting.***
RPints Install Detected. Do you wish to Update RPints? [Y/n]:
Stopping Rpints...
No local changes to save
Already up to date.
This message is displayed because 'diff.tool' is not configured.
See 'git difftool --tool-help' or 'git help config' for more details.
'git difftool' will now attempt to use one of the following tools:
kompare emerge vimdiff
Vim: Warning: Output is not to a terminal
Vim: Warning: Input is not from a terminal
" ======================================|" =====================================
" Netrw Directory Listing |" Netrw Directory Listing
" /tmp/git-difftool.MnZmkp/left |" /tmp/git-difftool.MnZmkp/right
" Sorted by name |" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+|" Sort sequence: [\/]$,\<core\%(\.\d\
" Quick Help: <F1>:help -:go up dir |" Quick Help: <F1>:help -:go up dir
" ======================================|" =====================================
../ |../
./ |./
admin/ |admin/
img/ |img/
includes/ |includes/
maintenance_scripts/ |maintenance_scripts/
python/ |python/
util/ |util/
bootstrap.sh* |LICENSE.md@ --> /
style.css* |README.md@ --> /
LICENSE.md |bootstrap.sh@ --> /
README.md |style.css@ --> /
~ |~
~ |~
~ |~
<ool.MnZmkp/left [RO] 8,1 All <l.MnZmkp/right [RO] 8,1 All
"/tmp/git-difftool.MnZmkp/right/" Illegal file name
That's now normal, you can just close the diff (control+c) if you don't have any manual changes you made locally.Anyone else getting this when trying to update with the script?
That works better. Thanks!That's now normal, you can just close the diff (control+c) if you don't have any manual changes you made locally.
you can install kompare (sudo apt-get install kompare) it will display the differences graphically making it easier to see
No the update has not touched communication between the pi and Arduino.Is the update changing this perhaps??
The display gets the temperature from the tempLog not the tempProbe table so to see both on the home screen they have to be reading.1 temp probe even though Ive got 2 setup in config.
No the update has not touched communication between the pi and Arduino.
I know what is happening, I was thinking update as code update, not the update of the files. I will add saving the config to the installerI also had the same issue
@garzlok asked me how I manage my fork of the code on GitHub, so here's the details. This assumes that you're somewhat familiar with the GitHub Fork and Pull Model and want to make some local stylistic changes to your RPints install. If you want to contribute to the development, you probably already know how to do this so I am not including instructions for that. This also assumes that you have forked the the repository at rtlindne/RaspberryPints (do not fork the original repo as that is defunct) and that your original install was performed using the RandR+ version by the install script.
This is committed now so next update shouldn't need to worry about it. Any other files that need to be saved let me know I will add them.I will add saving the config to the installer
No the update has not touched communication between the pi and Arduino.
The display gets the temperature from the tempLog not the tempProbe table so to see both on the home screen they have to be reading.
Check /sys/bus/w1/devices/ and see how many directories start with 28 then check those directories for a file called w1_slave each directory should have 1 of those files.
You can also do a database check from the terminal (assuming your database is raspberrypints
sudo mysql
use raspberrypints;
select probe, takenDate from tempLog order by takenDate desc LIMIT 10
post the output here an I will review
sudo mysql
exit;
will get you back to the shell.You’re running the second sql query in the shell. Run
and then you’ll get a mariadb prompt where you can run the use and select commands.Code:sudo mysql
exit;
will get you back to the shell.
Ahh haa. That did it.... cheers mate.You need a semicolon after the LIMIT 10. Mariadb is expecting you to continue that command. If you still have that window open, you can just type a semicolon and hit return.
most people use phpmyadmin, I find it slow so I enabled port 3306 on MySQL so I can remote into it using MySQL workbench. you can also do sudo mysql from the terminal (or ssh) to access the command line, which is useful for quick queriesQuestions:
1. Is there a post that points me to how to access the database? I tried a quick search for a few keywords in the hundreds of post but I wasn't able to find what I was looking for.
2. Should I use SQuirreL or remote connect via my Mac/MySQL workbench? (This is on a local home network)
2a. If so should I connect via SSH or another method?
Thank you. I had an issue connecting to the DB, but I found out I had to grant privileges in MySQL to my Mac's IP. Thanks for the reply. It helped steer me in the right direction. Have a great weekend.most people use phpmyadmin, I find it slow so I enabled port 3306 on MySQL so I can remote into it using MySQL workbench. you can also do sudo mysql from the terminal (or ssh) to access the command line, which is useful for quick queries
The login information for the database and the database name are what you entered during installation
Everything is wired correctly and Im using the correct pull up resistor. (4.7K) Ive got both probes wired with Gnds together, Sensor wires together going to 1 GPIO. And 3v3 supplying both probes. Pull up is wired between the sensor wires and 3v3. Both probes worked fine for a week until I did the recent update after having the issues that others were.Your RPints database only contains data from one probe. It looks like the problem is that your OS is only seeing one temperature probe, as each probe should create a separate directory that starts with 28 in /sys/bus/w1/devices
I’d start checking the probe connections and/or wiring. Do they have the right pull-up resistors and are the data lines connected to the same GPIO pin?
The freezer probe was the one working. I disconnected it and now the fridge probe works. So they are both functioning just not together. They both worked fine no problem at all until I did the latest update.Try just one probe or the other alone. If one works but the other doesn't you have an obvious suspect.
Cheers!