Harvest Sensor

Load sensors configuration

sudo cp config/rc.local /etc/rc.local
sudo reboot

Setup application

sudo apt-get update
sudo apt install python3-pip
sudo pip3 install -r requirements.txt
cp .env.template .env # and fill values

Start monitoring

python3 harvest_sensor.py

and you can get values like below

{
    "thermoSensor": {
        "temperature": 28.1,
        "humidity": 59.0
    }, 
    "groundSensor": [
        {
            "waterContent": 21.6,
            "temperature": 26.0
        }
    ]
}

Run as a cron job

# crontab -e
*/10 * * * * /usr/bin/python3 -u /home/pi/harvest-sensor/harvest_sensor.py 2>> /home/pi/logs/harvest_sensor/error.log