Reference
my write-up regarding using an UNO.
To be honest, I do not know for absolutely certain that anyone has gotten RaspberryPints running on a Pi3B with an Alamode.
[Cue the hoard: Anyone get that working?]
Going the UNO route should be way simpler...
Cheers!
The horde says, yes, I have. Some of the steps for updating the alamode should be followed from the Pints website - this was just to get it to run after the release of stretch. If you apt-get UPGRADE, you're done. It won't work.
Here are the steps I used from a fresh Jesse boot:
1.Install Tilt image:
sudo apt-get update
2. Install Pixel:
sudo apt-get install --no-install-recommends xserver-xorg
sudo apt-get install --no-install-recommends xinit
sudo apt-get install raspberrypi-ui-mods
sudo apt-get install --no-install-recommends raspberrypi-ui-mods lxterminal gvfs
3. Install LAMP stack:
sudo apt-get -y install apache2 php5 mysql-client mysql-server php5-mysql phpmyadmin
REBOOT
sudo apt-get -y install chromium-browser
4. Install Flow meter modules:
sudo apt-get install arduino python-serial python-mysqldb php5-cli xdotool
5. Screen management modules:
sudo apt-get -y install ttf-mscorefonts-installer x11-xserver-utils unclutter
6. Sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
Add:
@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --incognito --start-fullscreen localhost
7. Flow Meter Installation:
wget
https://github.com/wyolum/alamode/raw/master/bundles/alamode-setup.tar.gz
tar -xvzf alamode-setup.tar.gz
cd alamode-setup
sudo apt-get install dos2unix
Sudo nano /boot/config.txt
Change enable_uart=0 Should be 1?!?
sudo dos2unix jessie-setup
sudo ./jessie-setup
8. Download Pints:
https://github.com/RaspberryPints/RaspberryPints/archive/2.0.1.zip
Sudo nano /etc/apache2/sites-available/000 file
Change documentroot to /var/www
Unzip RaspberryPints-2.0.1.zip
Sudo mv RaspberryPints-2.0.1 /var/www
Sudo chmod -R 777 /var/www
Rm -R RaspberryPints-2.0.1
Edit /etc/apache2/sites-available
and change DocumentRoot setting from /var/www/html to /var/www.
Navigate to localhost and setup Pints
9. Configure Pi for flow meters:
Copy the flowmon file from the python (/var/www/python) directory to /etc/init.d
sudo cp flowmon /etc/init.d
Test:
sudo /etc/init.d/flowmon start $ ps aux | grep flow_monitor.py
Add:
sudo update-rc.d flowmon defaults
And if you're using the Adafruit sensors with the inlet drilled out:
10. Adjust pours:
Sudo nano /var/www/html/arduino/raspberrypints/raspberrypints.ino
Find this line:
if ( pulseCount
> 100 ) {
and change it to:
if ( pulseCount > 35 ) {
Sudo nano /var/www/html/includes/pours.php
Adjust pulse_count to 5250