Skip to content

clarsen/pimon

Repository files navigation

Requirements

python3 -m venv .env
. .env/bin/activate
pip3 install vcgencmd influxdb

dev test

INFLUX_HOST=<hostname-of-influxdb> \
INFLUX_DB=<influx database> \
INFLUX_USER=<influx-user> \
INFLUX_PASSWORD=<password-of-influx-user> \
INFLUX_HOST_VERIFY_CERT=1 \
python3 pimon.py

build container

docker build -t clarsen7/pimon .
docker push clarsen7/pimon

Start container

docker run --name pimon \
  -d \
  --restart unless-stopped \
  -e HOST=`hostname` \
  --device /dev/vchiq \
  -e INFLUX_HOST=<hostname-of-influxdb> \
  -e INFLUX_PASSWORD=<password-of-influx-user> \
  clarsen7/pimon

for Pis that don't support docker

sudo cp pimon.service /etc/systemd/system
sudo systemctl enable pimon
sudo systemctl start pimon
sudo journalctl -u pimon

About

some minimal monitoring of Pi infra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published