Skip to content

Python program to monitor and log Raspberry Pi CPU temperature

License

Notifications You must be signed in to change notification settings

idcrook/pitempmon

Repository files navigation

pitempmon

Log Raspberry Pi CPU temperatures (to phant)

If it is up, see a live chart of temperature log

install

# clone repo
mkdir ~/projects
cd ~/projects
git clone --recurse-submodules https://github.com/idcrook/pitempmon.git
cd pitempmon

# install requirements (using a virtualenv)
sudo apt-get install build-essential python3-dev python3-venv
python3 -m venv env
source env/bin/activate
pip install wheel
pip install requests
pip install RPi.GPIO
pip install gpiozero

# install from local submodule clone
cd python3-phant
pip install -e .

systemd service

There is an example systemd service file: etc/pitempmon.service

See comments in the file's header for instructions on how to install. You can have the script automatically run at bootup.

configure

cp   app_config.example.json   app_config.secrets.json
cp phant-config.example.json phant-config.secrets.json
# EDIT the files
source env/bin/activate
which python
# should be one in ./env/bin/python

# now can run
python ./pitemplog.py

inspired by

repo initialization

git submodule add -b main https://github.com/idcrook/python3-phant.git
git add python3-phant

# on fresh clones
git submodule update --init --recursive

About

Python program to monitor and log Raspberry Pi CPU temperature

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages