Documentation for the Raspberry Pi based water quality monitoring system created by Daniel P. Harrison
Download Raspberry pi imager https://www.raspberrypi.com/software/
Raspberry Pi Device: Raspberry Pi 1
Operating System: Raspberry PI OS Lite (32-BIT)
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
NAME="Raspbian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
OS Customisation settings:
Services>Enable SSH,
General>Set username/pw,
General>Configure Wireless LAN: add SSID/pin,
General>Set Locale settings>Time Zone: Sydney,
General>Set Locale settings>Keyboard Layout: US
sudo apt-get update
sudo apt-get upgrade
sudo nano /etc/rc.local
#!/bin/sh -e
ip link set eth1 down
ip link set eth0 down
ip link set usb0 down
sudo modprobe w1-gpio
sudo modprobe w1-therm
exit 0
Refernce: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/ds18b20
sudo raspi-config
Interfacing Options > 1-Wire > Yes
sudo reboot
sudo apt install git python3 python3-pip -y
# if "failed to fetch error / internect connection isn't working delete other connections (nmcli con delete "Wired connection 2")
cd ~
git clone https://github.com/ngdaniel499/aqua-pi.git
cd ~/aqua-pi
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd python-scripts
cp Upconfig_template.cfg Upconfig.cfg
#edit station name, pump (if required), calibration if data is available. update server IP
nano Upconfig.cfg
# install cronjob
crontab cronjob.txt
# edit config if necessary
crontab -e