[BangPypers] Power management/consumption control module

Deepak Mishra xask.linus at gmail.com
Wed Jan 13 20:59:30 CET 2010


Amit is right, there should not be any cross platform way to do that because
python itself does not have any such modules. Third party libraries will
have to depend on the OS specific implementation.

For eg in Linux

open ("/proc/acpi/thermal_zone/TZ01/temperature").readline()

should read the temperature in python ..

These statistics are collected by a lot of desklets some of which are
written in python, you can browse through them.
Some body posted python code for Conky ( a system monitor) specifically for
power consumtion
You can reuse that, but the Conky code itself is written in C

Deepak Mishra
Eat, Drink and Sleep with Pythons

More information about the BangPypers mailing list