Skip to content

zinkwazi/koipond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koipond

A Raspberry Pi Zero, with an array of sensors, monitors the water temperature of the pond/s, as well as the surrounding air's humidity and temperature levels. A UPS Lite V1.2 Power Hat provides more than three hours of backup power to the Raspberry Pi. Battery life, alongside environmental data, are logged to a file.

A Zabbix Agent, installed on the Raspberry Pi, reads the 'koipond' data file and relays it to the Zabbix server for monitoring. This data pipeline feeds into a Grafana dashboard, which transforms the data into pretty graphs.

Hardware

Installation

Install Zabbix Agent on Raspberry Pi

Add the following lines to /etc/zabbix/zabbix_agentd.conf:

# Battery data
UserParameter=koipond.battery_voltage,grep Voltage /home/pi/koipond/pond-data.txt | cut -f3 -d ' '
UserParameter=koipond.battery_percentage,grep Percentage /home/pi/koipond/pond-data.txt | cut -f3 -d ' '

# Water temp sensors
UserParameter=koipond.temperature_sensor1,grep Pond-1 /home/pi/koipond/pond-data.txt | cut -f3 -d ' '
UserParameter=koipond.temperature_sensor2,grep Pond-2 /home/pi/koipond/pond-data.txt | cut -f3 -d ' '
UserParameter=koipond.temperature_sensor3,grep Pond-3 /home/pi/koipond/pond-data.txt | cut -f3 -d ' '
 
# Air temp and humidity
UserParameter=koipond.ambient_temperature,grep "Ambient Temperature" /home/pi/koipond/pond-data.txt | cut -f3 -d ' '
UserParameter=koipond.ambient_humidity,grep "Ambient Humidity" /home/pi/koipond/pond-data.txt | cut -f3 -d ' '

Data is then fed via Zabbix to Grafana for visual dashboards.

Dashboard Visualization

Grafana dashboard displaying pond data: Grafana dashboard showing pond data

Raspberry Pi hardware setup for the koipond project: (Not pretty but has been running in a plastic box outside without issue for 1+ year) Raspberry Pi setup for koipond project

About

Koi Pond Monitoring

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages