Skip to content

Instantly share code, notes, and snippets.

@corbanmailloux
Created January 20, 2016 16:27
Show Gist options
  • Save corbanmailloux/38a1b0c745efcb663484 to your computer and use it in GitHub Desktop.
Save corbanmailloux/38a1b0c745efcb663484 to your computer and use it in GitHub Desktop.
Tasker - Speed-based Volume Control Project
<TaskerData sr="" dvi="1" tv="4.8m">
<Profile sr="prof9" ve="2">
<cdate>1413471371610</cdate>
<edate>1453307010034</edate>
<flags>8</flags>
<id>9</id>
<mid0>5</mid0>
<mid1>6</mid1>
<nme>Car</nme>
<State sr="con0" ve="2">
<cname>Connected to Car Bluetooth</cname>
<code>3</code>
<Str sr="arg0" ve="3">(YOUR CAR'S BLUETOOTH INFORMATION)</Str>
<Str sr="arg1" ve="3"/>
</State>
</Profile>
<Project sr="proj0" ve="2">
<cdate>1413490932197</cdate>
<name>Car - Speed Volume</name>
<pids>9</pids>
<tids>24,6,5</tids>
<Img sr="icon" ve="2">
<nme>hd_aaa_ext_car</nme>
</Img>
</Project>
<Task sr="task24">
<cdate>1413999294407</cdate>
<edate>1453307049203</edate>
<id>24</id>
<nme>Speed Volume Loop</nme>
<Action sr="act0" ve="7">
<code>37</code>
<label>Break the loop</label>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%inCar</lhs>
<op>8</op>
<rhs>0</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>307</code>
<label>Default value</label>
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act10" ve="7">
<code>307</code>
<Int sr="arg0" val="13"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act11" ve="7">
<code>43</code>
<label>10 - 30 mph</label>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%locmph</lhs>
<op>7</op>
<rhs>10</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act12" ve="7">
<code>307</code>
<Int sr="arg0" val="12"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act13" ve="7">
<code>43</code>
<label>&lt; 10 mph</label>
</Action>
<Action sr="act14" ve="7">
<code>307</code>
<Int sr="arg0" val="11"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act15" ve="7">
<code>38</code>
</Action>
<Action sr="act16" ve="7">
<code>30</code>
<label>Delay to avoid constant looping</label>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act17" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act2" ve="7">
<code>137</code>
<Int sr="arg0" val="0"/>
<Str sr="arg1" ve="3"/>
</Action>
<Action sr="act3" ve="7">
<code>38</code>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<label>Convert to MPH</label>
<Str sr="arg0" ve="3">%locmph</Str>
<Str sr="arg1" ve="3">%LOCSPD*2.23694</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="7">
<code>37</code>
<label>&gt; 75 mph</label>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%locmph</lhs>
<op>7</op>
<rhs>75</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act6" ve="7">
<code>307</code>
<Int sr="arg0" val="15"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act7" ve="7">
<code>43</code>
<label>50 - 75 mph</label>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%locmph</lhs>
<op>7</op>
<rhs>50</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act8" ve="7">
<code>307</code>
<Int sr="arg0" val="14"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act9" ve="7">
<code>43</code>
<label>30 - 50 mph</label>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%locmph</lhs>
<op>7</op>
<rhs>30</rhs>
</Condition>
</ConditionList>
</Action>
</Task>
<Task sr="task5">
<cdate>1413426130143</cdate>
<edate>1453307052826</edate>
<id>5</id>
<nme>Enter Car</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%inCar</Str>
<Str sr="arg1" ve="3">1</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>902</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="100"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>138</code>
<label>Set a notification icon</label>
<Img sr="arg0" ve="2">
<nme>hd_aaa_ext_car</nme>
</Img>
</Action>
<Action sr="act3" ve="7">
<code>130</code>
<label>Start the speed volume loop</label>
<Str sr="arg0" ve="3">Speed Volume Loop</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="icn" ve="2">
<nme>hd_aaa_ext_car</nme>
</Img>
</Task>
<Task sr="task6">
<cdate>1413427040363</cdate>
<edate>1453307045115</edate>
<id>6</id>
<nme>Exit Car</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>547</code>
<label>Stop the speed volume loop</label>
<Str sr="arg0" ve="3">%inCar</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>901</code>
<Int sr="arg0" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>138</code>
<label>Restore default notification icon</label>
<Img sr="arg0" ve="2">
<nme>cust_notification</nme>
</Img>
</Action>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment