Giter VIP home page Giter VIP logo

batstat's People

Contributors

caaallum avatar juve45 avatar whoopsmith avatar xeruf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

batstat's Issues

License information

Hello,

What license is this code/software available under? If you haven't chosen one, you might find the following resources helpful:

A useful tidbit:

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work. If you're creating an open source project, we strongly encourage you to include an open source license. The Open Source Guide provides additional guidance on choosing the correct license for your project.

Arch Linux

My OS the power path is different from default configure.

$ neofetch --off                                                                                          [16:20:15]
siuoly@arch-x260
----------------
OS: Arch Linux x86_64
Host: 20F5S41F0B ThinkPad X260
Kernel: 6.6.5-arch1-1
Uptime: 1 day, 21 hours, 59 mins
Packages: 721 (pacman)
Shell: zsh 5.9
Resolution: 1366x768, 1920x1080
WM: i3
Theme: Adwaita [GTK3]
Icons: Adwaita [GTK3]
Terminal: xst
CPU: Intel i5-6300U (4) @ 3.000GHz
GPU: Intel Skylake GT2 [HD Graphics 520]
Memory: 3236MiB / 7812MiB

After checking the PATH "/sys/class/power_supply/", I found it is diff to my system. So I change it

// orginal
#define ENERGY "charge"
#define POWER "voltage"
// new
#define ENERGY "energy"
#define POWER "power"

it working.
It's simplest tool to record the battery history!!

Not working on arch laptop

My battery data is at /sys/class/power_supply/BAT0, but I only see this:

Status:                       Discharging
Max energy:                   0.00 Wh
Energy left:                  0.00 Wh
Power Consumption:            0.00 W
Percentage left:              -nan%
Average power Consumption:    0.00 W
Time elapsed:                  0: 0: 9 since -nan%
= Time   ======== Percent ============================================
 0: 0: 0          -nan%

can't install batstat

Hi,

I'm trying to install but it doesn't work

image
image

Make install doesn't work too while i have the dependencies

image

Average power consumption should be in Watts

Average power consumption should have it's units in Watts, not Watt-Hours, as Wh is a unit measuring both power and time (and thus is suitable as the unit for Total power consumption, but not an Average)

how to install?

~/batstat$ sudo make install
install -m 775 batstat /usr/local/bin
install: cannot perform `stat' on 'batstat': No such file or directory
make: *** [Makefile:21: install] Error 1

this method or this one don't work either

how to install (preferably ubuntu 22.04)? thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.