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
Built Distribution
File details
Details for the file charge_power-0.1.1.tar.gz
.
File metadata
- Download URL: charge_power-0.1.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-76-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88f93f1d2e224fdb7c4bff5767e14324933d4c07d1fc785cb93c4599c5f3e402 |
|
MD5 | 7c780b60b4c78ca02e1c40712eb0270f |
|
BLAKE2b-256 | 8559d7293ad5daa6480a8966d022af14a954d4045849ada95721d2693022580a |
File details
Details for the file charge_power-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: charge_power-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-76-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d2749e2215732e564165fcdc6c2519ce45568188f30b9c0c177f9f90995c6d3 |
|
MD5 | dceb8e0bf05f09d77e97fb45928bacbc |
|
BLAKE2b-256 | 003816d198b21403c2d6a018c0429b7bf72140ede3436713355bef567cc4cce7 |