All commands are run on the Kasa-Linux-Powermon directory
- Create a virtual environment
python -m virtualenv . - Activate the environment
source ./bin/activate - Install requirements (tzdata and python-kasa)
pip install -r ./requirements.txt
All commands are run on the Kasa-Linux-Powermon directory
- Modify
pwmon_confwith the path to your battery . - Run
bash install -gto generate a sample config file, edit accordingly. - Install and start the daemon
bash install.sh - View help interface
bash install.sh -h
- Config file is located in
/etc/pwmon/pwmon_conf - Edit this file and restart daemon with
systemctl restart pwmon.serviceto apply changes.
- You can view daemon state with
sudo systemctl status pwmon.service - Or view trailing logs with
sudo journalctl -u pwmon.service -f