Skip to content
Scripts used to report/monitor my raspberry pi nodes
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
fetchsensors.py
fetchsensors.service
updateoled.py
updateoled.service

README.md

fetchsensors

Prerequisites

  • sudo pip3 install Adafruit-SSD1306
  • sudo apt-get install python3-paho-mqtt

Customize

Make adaptions in fetchsensors.py

  • the 1-wire ids of the sensors
  • MQTT topic
  • MQTT host

Run fetchsensors.py as daemon

sudo cp ~/projects/raspi-status/fetchsensors.py /usr/local/bin
sudo chmod +x /usr/local/bin/fetchsensors.py

sudo cp ~/projects/raspi-status/fetchsensors.service /etc/systemd/system/

sudo systemctl start fetchsensors
sudo systemctl status fetchsensors

(If something is changed in the service files reload systemd systemctl daemon-reload.)

updateoled.py

Prerequisites

  • sudo apt-get install python3-dateutil
  • sudo apt-get install python3-tz
  • sudo apt-get install jq

Run updateoled.py as daemon

sudo cp ~/projects/raspi-status/updateoled.py /usr/local/bin
sudo chmod +x /usr/local/bin/updateoled.py

sudo cp ~/projects/raspi-status/updateoled.service /etc/systemd/system/

sudo systemctl start updateoled
sudo systemctl status updateoled

(If something is changed in the service files reload systemd systemctl daemon-reload.)

You can’t perform that action at this time.