Battery/device temperature

772 views
Skip to first unread message

Duck Redbeard

unread,
Aug 26, 2013, 8:47:01 AM8/26/13
to tas...@googlegroups.com
I have been participating in a thread for my Asus TF700 tablet regarding overclocking and device temperature.  Several people mentioned that when their device starts to run hot (from overclocking+heavy usage), they manually go into one of a few apps that govern CPU speed and throttle it back.  I saw that and thought "Surely Tasker can do that!"

I opened Tasker and looked for a state or event that monitored battery and/or device temperature.  I was surprised that there was none.  I know that Android will throw a "overheating" signal, but is there a numerical value to the device temp?

I have seen in Minimalistic Text that a battery temp can be displayed, so the value is in there somewhere.  Can Tasker set that as a variable?  

nanobrain

unread,
Aug 26, 2013, 9:30:59 AM8/26/13
to tas...@googlegroups.com
Event>Power>Battery Overheating

You can get the battery temperature by parsing the results of the 'dumpsys battery' shell command. You need to be rooted for this.  
Message has been deleted
Message has been deleted

Duck Redbeard

unread,
Aug 26, 2013, 9:38:28 AM8/26/13
to tas...@googlegroups.com
This parsing of results of shell commands is waaay above my head.  Is this the only way?


On Monday, August 26, 2013 8:47:01 AM UTC-4, Duck Redbeard wrote:

Brandon Horwath

unread,
Aug 26, 2013, 9:40:12 AM8/26/13
to tas...@googlegroups.com
I opened Tasker and looked for a state or event that monitored battery and/or device temperature. I was surprised that there was none.

I want to have quotes like this flash when I open tasker Google groups.

nanobrain

unread,
Aug 26, 2013, 10:22:31 AM8/26/13
to tas...@googlegroups.com

Dipesh adhikari

unread,
Jun 27, 2015, 7:32:06 AM6/27/15
to tas...@googlegroups.com
Follow my Blog for that taskerbatterytemperature.blogspot.com

Robert Ryan

unread,
Jun 27, 2015, 4:56:36 PM6/27/15
to Support Forum

It might be easier to use the Battery Changed intent to get the battery temperature:

Profile: Battery Temp (61)
Event: Intent Received [ Action:android.intent.action.BATTERY_CHANGED Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: Anon (68)
A1: Variable Set [ Name:%temp_c To:%temperature / 10 Do Maths:On Append:Off ]
A2: Variable Convert [ Name:%temp_c Function:Celsius to Fahrenheit Store Result In:%temp_f ]
A3: Variable Set [ Name:%temp_c To:round(%temp_c)  Do Maths:On Append:Off ]
A4: Variable Set [ Name:%temp_f To:round(%temp_f)  Do Maths:On Append:Off ]
A5: Flash [ Text:%temp_c° C
%temp_f ° F Long:Off ]

Reply all
Reply to author
Forward
0 new messages