Log Raspberry Pi CPU temperatures (to phant)
If it is up, see a live chart of temperature log
# 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 .
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.
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
git submodule add -b main https://github.com/idcrook/python3-phant.git
git add python3-phant
# on fresh clones
git submodule update --init --recursive