Small utility to track current charge/discharge wattage based on system sensors (Linux only)
Reason this release was yanked:
incompatible with python3.9
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
Built Distribution
Hashes for charge_power-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 005eeea95f3ae5e733a8b7a20000c5a9c8cea015014dec90f5803c2ef07bd5df |
|
MD5 | 57c87023248d962442818a22560c6585 |
|
BLAKE2b-256 | a01af0e43e86e02b36271239b35cc92d4a746e77beb7a86e9b6763896641fe8c |