Small utility to track current charge/discharge wattage based on system sensors (Linux only)
Project description
charge-power
A small utility to track power consumed or provided to the device battery.
Installation
One can install the module via pipx:
pipx install charge-power
pipx install git+https://github.com/kanootoko/charge-power.git
Work principals
By default, searches for battery directory in /sys/class/power_supply. Uses charge_now and charge_full files to get current and max chagre level.
Then the measurements are taken from charge_now file by timer by given delay time. Difference between is the amount of energy consumed/provided to the battery, and it is displayed to the console (and log file if it is set).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
charge_power-0.1.1.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for charge_power-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d2749e2215732e564165fcdc6c2519ce45568188f30b9c0c177f9f90995c6d3 |
|
MD5 | dceb8e0bf05f09d77e97fb45928bacbc |
|
BLAKE2b-256 | 003816d198b21403c2d6a018c0429b7bf72140ede3436713355bef567cc4cce7 |