Skip to main content

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


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)

Uploaded Source

Built Distribution

charge_power-0.1.1-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page