v0.3.0-beta
This is a beta release for v0.3.0. Help testing would be much appreciated!
See below for instructions to upgrade from v0.2.0.
Upgrading from v0.2.0
The setup and calibration of v0.3.0 is greatly simplified in v0.3.0. Before upgrading, please make sure you know exactly which sensor ratings are on each channel of your power monitor - you'll need to enter them into the new config file. Also, you'll need to get your grid voltage and AC voltage measurements either from your current (old) config.py
file, or conduct the measurements again.
-
Stop the power monitor service:
sudo systemctl stop power-monitor.service
-
Create a backup of your current power_monitor directory just in case.
cd ~/rpi_power_monitor tar --exclude=".git" -czf ~/power_monitor_v0.2.0_backup.tar.gz .
-
Navigate to the existing power monitor directory, and use git to checkout v0.3.0. The sed command is used to update your git config to make sure it's not set to track the single v0.2.0 branch.
cd rpi_power_monitor/ sed -i 's|+refs/tags/v0.2.0:refs/tags/v0.2.0|+refs/heads/*:refs/remotes/origin/*|g' ~/rpi_power_monitor/.git/config git fetch git stash git checkout master pip install .
-
Download the
config.toml
file:cd ~/rpi_power_monitor/rpi_power_monitor wget https://raw.githubusercontent.com/David00/rpi-power-monitor/docs/_docs/v0.3.0/config.toml
-
Go through the newly released beta documentation for the setup of your power monitor:
https://david00.github.io/rpi-power-monitor/docs/v0.3.0/configuration.html
-
When you are done going through the setup, run the power monitor with the new
-v
flag (or--verbose
):python3 ~/rpi_power_monitor/rpi_power_monitor/power_monitor.py -v
Please use the discussion thread to report any issues or ask questions - thank you for testing!