Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRITICAL:batinfo.battery:Can not read file current_now message #4

Open
nicolargo opened this issue May 31, 2014 · 0 comments
Open

CRITICAL:batinfo.battery:Can not read file current_now message #4

nicolargo opened this issue May 31, 2014 · 0 comments

Comments

@nicolargo
Copy link
Owner

Power cable is unpluged...

In [6]: b.stat
Out[6]: [{"status": "Discharging", "capacity": 29, "name": "BAT0", "uevent": "POWER_SUPPLY_NAME=BAT0\nPOWER_SUPPLY_STATUS=Discharging\nPOWER_SUPPLY_PRESENT=1\nPOWER_SUPPLY_TECHNOLOGY=Unknown\nPOWER_SUPPLY_CYCLE_COUNT=0\nPOWER_SUPPLY_VOLTAGE_MIN_DESIGN=7500000\nPOWER_SUPPLY_VOLTAGE_NOW=7461000\nPOWER_SUPPLY_CURRENT_NOW=1109000\nPOWER_SUPPLY_CHARGE_FULL_DESIGN=7470000\nPOWER_SUPPLY_CHARGE_FULL=7328000\nPOWER_SUPPLY_CHARGE_NOW=2155000\nPOWER_SUPPLY_CAPACITY=29\nPOWER_SUPPLY_MODEL_NAME=Dell\nPOWER_SUPPLY_MANUFACTURER=SANYO\nPOWER_SUPPLY_SERIAL_NUMBER=152", "alarm": 0, "charge_full": 7328000, "voltage_now": 7461000, "serial_number": 152, "cycle_count": 0, "current_now": 1109000, "charge_now": 2155000, "voltage_min_design": 7500000, "path": "/sys/class/power_supply/BAT0", "technology": "Unknown", "manufacturer": "SANYO", "type": "Battery", "model_name": "Dell", "present": 1, "charge_full_design": 7470000}]

Plug the power cable...

In [7]: b.stat
CRITICAL:batinfo.battery:Can not read file current_now
Out[7]: [{"status": "Charging", "capacity": 29, "name": "BAT0", "uevent": "POWER_SUPPLY_NAME=BAT0\nPOWER_SUPPLY_STATUS=Charging\nPOWER_SUPPLY_PRESENT=1\nPOWER_SUPPLY_TECHNOLOGY=Unknown\nPOWER_SUPPLY_CYCLE_COUNT=0\nPOWER_SUPPLY_VOLTAGE_MIN_DESIGN=7500000\nPOWER_SUPPLY_VOLTAGE_NOW=7625000\nPOWER_SUPPLY_CHARGE_FULL_DESIGN=7470000\nPOWER_SUPPLY_CHARGE_FULL=7328000\nPOWER_SUPPLY_CHARGE_NOW=2148000\nPOWER_SUPPLY_CAPACITY=29\nPOWER_SUPPLY_MODEL_NAME=Dell\nPOWER_SUPPLY_MANUFACTURER=SANYO\nPOWER_SUPPLY_SERIAL_NUMBER=152", "alarm": 0, "charge_full": 7328000, "voltage_now": 7625000, "serial_number": 152, "cycle_count": 0, "current_now": "", "charge_now": 2148000, "voltage_min_design": 7500000, "path": "/sys/class/power_supply/BAT0", "technology": "Unknown", "manufacturer": "SANYO", "type": "Battery", "model_name": "Dell", "present": 1, "charge_full_design": 7470000}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant