Hi ,
This task can be triggered with any Charger connected. It will show charge rate and current value. There is also REFRESH button to get updated value from the device.
I have tested on my Nexus6 and Nexus4 , both working as expected.
This task can be triggered with any Charger connected. It will show charge rate and current value. There is also REFRESH button to get updated value from the device.
I have tested on my Nexus6 and Nexus4 , both working as expected.
Code:
<TaskerData sr="" dvi="1" tv="4.8u4m">
<Task sr="task7">
<cdate>1464179426283</cdate>
<edate>1464254445018</edate>
<id>7</id>
<nme>Show Current</nme>
<pri>100</pri>
<rty>1</rty>
<Action sr="act0" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sys/class/power_supply/battery/charge_rate</Str>
<Str sr="arg1" ve="3">%charge_rate</Str>
</Action>
<Action sr="act1" ve="7">
<code>417</code>
<Str sr="arg0" ve="3">/sys/class/power_supply/battery/current_now</Str>
<Str sr="arg1" ve="3">%current_now</Str>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%current_now</Str>
<Str sr="arg1" ve="3">%current_now/1000</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">Charging..</Str>
<Str sr="arg1" ve="3">%charge_rate , %current_now mAh</Str>
<Img sr="arg2" ve="2">
<nme>hd_aaa_nixx_plug</nme>
</Img>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="5"/>
<ListElementItem sr="item0">
<label>Refresh</label>
<Action sr="action" ve="7">
<code>130</code>
<Str sr="arg0" ve="3">Show Current</Str>
<Int sr="arg1">
<var>%priority</var>
</Int>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="0"/>
</Action>
<Img sr="icon" ve="2">
<nme>hd_ab_av_replay</nme>
</Img>
</ListElementItem>
</Action>
</Task>
</TaskerData> from xda-developers http://ift.tt/1OOXF2d
via IFTTT
No comments:
Post a Comment