Records power-on and power-off history, even in the event of a power failure.
This is useful for *NIX machines without an UPS.
You can monitor if your PC is used when you are away.
β‘οΈ Record power-on and shutdown
π Record power failures
π Log in CSV format
β¬οΈ Easy updates
The required packages are already installed in most Linux distributions.
Simply follow these instructions.
You can use in proprietary Linux OS, where you can not install custom packages.
You can update the program while it is running.
- bash
- coreutils
- cron (recommended)
- procps
- wget OR curl (recommended at least one to download updates)
If you have wget:
wget "https://raw.githubusercontent.com/TonyWhite/PowerLog/main/power-log" -O "power-log"If you have curl:
curl "https://raw.githubusercontent.com/TonyWhite/PowerLog/main/power-log" -o "power-log"sudo bash power-log --installOpen cron
sudo crontab -eAdd the rule
* * * * * bash -c ' for i in {1..60} ; do power-log --single ; sleep 1s ; done '
And this is the better choice with protection from accidentally kill
Open /usr/share/power-log/power.log with Calc of LibreOffice or OpenOffice. The format is CSV (Comma Separated Values).
Enjoy the logs πͺ΅π¦«