> Now it's popping up every 5 or 10 seconds. I don't think it's
> working in 1% increments.
My device only reports batt % in increments of 10 and using 'batt changed' context it seems to fire every 5 -10 minutes but not with the change of %BATT.
I did a quick search but did not find exactly what is supposed to fire this context. Does any one know??
I believe if you want to just monitor the % of batt as reported by your device you can use context / event / variable set %BATT.
Rich..
> I believe if you want to just monitor the % of batt as reported by your device you can use context / event / variable set %BATT.
Oooops.... sorry.. did not read the first post. I could have sworn I had used that before, but apparently you can not use %BATT in a variable context.
I guess you would need to use the 'Batt changed" context then test %BATT against the value that %BATT had the last time the profile was active. Of course this might not be practical if your "batt changed" context is firing every 5 seconds....
Rich..
I did some testing overnight And found some interesting results. As stated earlier my device only reports Battery percentages In increments of 10. Here's the profile I use for the test..
Profile: Batt Changed (82)
Event: Battery Changed
Enter: Anon (97)
A1: Flash [ Text:%BATT Long:Off ]
A2: Notify [ Title:%TIME. %BATT. Text: Icon:<icon> Number:0 Permanent:Off Priority:3 ]
"Apparently " the profile fired with every 1% change. As the battery discharged I got 10 notifications of battery at 90 percent and then 10 notifications of battery at 80 percent and then 10 notifications of battery at 70 percent etc....
I find it strange that Android will report a battery "change" of 1 percent however it will only report my "battery percentage" in 10 percent increments.....
> What I am not sure is what exactly you. Want to do, if maybe you can show us the profile or tell us more to see how we can help you
If I am reading Tunis post correctly, the OP "Wes" is using the "Batt Changed " context and all is well...
However "electricpete" seems to be having problems with this particular context that seems to be related to his device or perhaps ROM.... Unless his batt is discharging 1% in 5 to 10 seconds then something is not working as it should....
Rich..
Yes, it’s definitely firing way too often for me (every 5 to 10 seconds).
To double-check, I deleted the profile, created brand new profile with anonymous task that has unique message (so we know it cannot be any other profile)
Results show unequivocally that on my phone (*), the power changed context fires once every 5 to 10 seconds.
FWIW, here is boring 2 minute video showing the entire process from creating the video to demonstrating the results
http://www.youtube.com/watch?v=xhFhoU3PeNE
* My phone: Rooted Samsung Infuse with Android 2.3.6, Tasker version 1.6u1m
Good idea - I did a logcat. I excerpted below every record that contains the string “batt”.
It seems there are 3 closely-spaced actions that repeat at intervals of very close to 10 seconds. For example:
[ 05-10 16:40:56.914 321:0x163 D/BatteryService ] update start
[ 05-10 16:40:56.914 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3721 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:40:56.921 321:0x155 D/Tethering ]
Then the sequences of three actions repeats almost exactly 10 secnds later, and again 10 seconds later. Full set of stuff containing “batt” at the end of this thread. I don't know what is the business about Tethering... I don't do any Tethering.
Two things come to mind:
1 - I have another program on my device that monitor battery level: Battery Monitor Widget Pro. It “stores” the value at user-selectable intervals where the shortest possible interval is 10 seconds. I have mine set for 3 minutes. I wonder if possibly it is updating every 10 seconds and recording the average every 3 minutes (there is something similar to that in their documentation... I posted a question on the BMW xda thread and will let you know the results). Maybe a coincidence but "10 seconds" is the smallest selectable logging interval in the BMW program (screen print attached)
2 - The other part of the story that I’m thinking: maybe whenever BMW “polls” Android OS to find out the battery level, it appears to Tasker as a change in battery (i.e. Tasker isn’t expecting Android to display the battery level unless it changes, but BMW is forcing Android to display it every 10 seconds).
Below is excerpt from my log file. I can email the full log file to Pent if he requests but at this point I don’t want to bother him. It’s not all that important to me.... it's somewhat of a curiosity but not causing me any problems. I just update my battery widget every 5 minutes. And by the way I do need both a Tasker/zoom battery widget along with BMW pro because they do different things... my Tasker/zoom battery widget sits in the Holo launcher bottom Dock so it's almost always visible (BMW won't display correctly in that location) ... and my Tasker/zoom battery widget is large color-coded percent number... something I can't customize to my liking with BMW.
[ 05-10 16:40:56.914 321:0x163 D/BatteryService ] update start
[ 05-10 16:40:56.914 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3721 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:40:56.921 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:41:06.953 321:0x163 D/BatteryService ] update start
[ 05-10 16:41:06.957 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3742 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:41:06.964 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:41:16.976 321:0x163 D/BatteryService ] update start
[ 05-10 16:41:16.980 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3745 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:41:16.984 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:41:27.007 321:0x163 D/BatteryService ] update start
[ 05-10 16:41:37.039 321:0x163 D/BatteryService ] update start
[ 05-10 16:41:47.070 321:0x163 D/BatteryService ] update start
[ 05-10 16:41:47.074 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3727 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:41:47.078 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:41:57.101 321:0x163 D/BatteryService ] update start
[ 05-10 16:41:57.105 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3732 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:41:57.113 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:42:07.132 321:0x163 D/BatteryService ] update start
[ 05-10 16:42:07.148 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3730 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:42:07.175 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:42:17.164 321:0x163 D/BatteryService ] update start
[ 05-10 16:42:17.167 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3742 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:42:17.175 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:42:27.195 321:0x163 D/BatteryService ] update start
[ 05-10 16:42:27.195 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3683 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:42:27.210 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:42:37.257 321:0x163 D/BatteryService ] update start
[ 05-10 16:42:37.257 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3732 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:42:37.265 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:42:47.324 321:0x163 D/BatteryService ] update start
[ 05-10 16:42:47.324 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3663 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:42:47.332 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED
[ 05-10 16:42:57.386 321:0x163 D/BatteryService ] update start
[ 05-10 16:42:57.386 321:0x163 D/BatteryService ] updateBattery level:38 scale:100 status:4 health:2 present:true voltage: 3696 temperature: 310 technology: Li-ion AC powered:false USB powered:false icon:17302191
[ 05-10 16:42:57.417 321:0x155 D/Tethering ] [kjtemp]ACTION_BATTERY_CHANGED