View Single Post
Posts: 252 | Thanked: 221 times | Joined on Jul 2010
#178
Nobody? Ok...i've created a Queen Beecon Widget to display the battery temperature. Here's the command line for it:

Code:
awk 'BEGIN { FS="=" } /POWER_SUPPLY_TEMP/ { print $2/10 "°C"; if ($2 < 350) exit 0; else if ($2 <400) exit 1; else exit 2 }' /sys/class/power_supply/rx51-battery/uevent
Note the code will exit 0 if the temperature is less than 35 C, else exit 1 if it's less than 40, else exit 2. This can be used in QBW to select the widget background color, e.g. red when the battery gets hot.
__________________
21.2011.38-1Smaemo7 (CSSU Stable)
2.6.28.10power53 (not overclocked)
Yes, I search before posting.

Last edited by chill; 2013-06-07 at 00:02.