Hola a todos,
Quería dejar unas tareas de Tasker con las que controlar Oruxmaps desde un reloj Pebble. Hay una principal para grabar la ruta, y otras tres accesorias para detener la grabación, añadir un punto y reanudar la grabación parada. Incluyen notificación en el Pebble y, dos de ellas, aviso acústico en el móvil.
Here are some Tasker scripts to operate Oruxmaps from a Pebble watch. There's a main one to record a track, and three secondary ones to stop recording, add a waypoint and resume a previous track. Pebble notification is included, as well as audible alert on phone for two of them.
Activar GPS, esperar una localización e iniciar la grabación / Activate GPS, wait for a lock and start a recording:
<TaskerData sr="" dvi="1" tv="4.8">
<Task sr="task9">
<cdate>1452962709251</cdate>
<edate>1453125880208</edate>
<id>9</id>
<nme>BICI ON</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>GPS Enabled</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.ENABLED>true</com.intangibleobject.securesettings.plugin.extra.ENABLED>
<com.intangibleobject.securesettings.plugin.extra.ENABLED-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.ENABLED-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>gps</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>GPS Enabled</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0" />
</Action>
<Action sr="act1" ve="7">
<code>902</code>
<Int sr="arg0" val="0" />
<Int sr="arg1" val="10" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="1" />
</Action>
<Action sr="act2" ve="7">
<code>35</code>
<Int sr="arg0" val="1" />
<Int sr="arg1" val="0" />
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<Int sr="arg4" val="0" />
<ConditionList sr="if">
<bool0>And</bool0>
<Condition sr="c0" ve="3">
<lhs>%LOCTMS</lhs>
<op>12</op>
<rhs></rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%TIMES - %LOCTMS</lhs>
<op>6</op>
<rhs>10</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act3" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.orux.oruxmaps.actividades.ActivityMap2</appClass>
<appPkg>com.orux.oruxmaps</appPkg>
<label>OruxMaps</label>
</App>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
</Action>
<Action sr="act4" ve="7">
<code>30</code>
<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="act5" ve="7">
<code>877</code>
<Str sr="arg0" ve="3">com.oruxmaps.INTENT_START_RECORD_NEWTRACK</Str>
<Int sr="arg1" val="0" />
<Str sr="arg2" ve="3" />
<Str sr="arg3" ve="3" />
<Str sr="arg4" ve="3" />
<Str sr="arg5" ve="3" />
<Str sr="arg6" ve="3" />
<Str sr="arg7" ve="3" />
<Str sr="arg8" ve="3" />
<Int sr="arg9" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%LOCACC</lhs>
<op>6</op>
<rhs>20</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act6" ve="7">
<code>171</code>
<Int sr="arg0" val="10000" />
<Int sr="arg1" val="200" />
<Int sr="arg2" val="100" />
<Int sr="arg3" val="4" />
</Action>
<Action sr="act7" ve="7">
<code>171</code>
<Int sr="arg0" val="10000" />
<Int sr="arg1" val="200" />
<Int sr="arg2" val="100" />
<Int sr="arg3" val="4" />
</Action>
<Action sr="act8" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">COMIENZO GRABACIÓN RUTA.</Str>
<Str sr="arg1" ve="3" />
<Img sr="arg2" ve="2" />
<Int sr="arg3" val="0" />
<Int sr="arg4" val="0" />
<Int sr="arg5" val="3" />
</Action>
</Task>
</TaskerData>
Parar la grabación/Stop recording.
<TaskerData sr="" dvi="1" tv="4.8">
<Task sr="task3">
<cdate>1452898686535</cdate>
<edate>1453125933562</edate>
<id>3</id>
<nme>BICI OFF</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>877</code>
<Str sr="arg0" ve="3">com.oruxmaps.INTENT_STOP_RECORD</Str>
<Int sr="arg1" val="0" />
<Str sr="arg2" ve="3" />
<Str sr="arg3" ve="3" />
<Str sr="arg4" ve="3" />
<Str sr="arg5" ve="3" />
<Str sr="arg6" ve="3" />
<Str sr="arg7" ve="3" />
<Str sr="arg8" ve="3" />
<Int sr="arg9" val="0" />
</Action>
<Action sr="act1" ve="7">
<code>171</code>
<Int sr="arg0" val="9263" />
<Int sr="arg1" val="500" />
<Int sr="arg2" val="50" />
<Int sr="arg3" val="4" />
</Action>
<Action sr="act2" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">GRABACIÓN PARADA.</Str>
<Str sr="arg1" ve="3" />
<Img sr="arg2" ve="2" />
<Int sr="arg3" val="0" />
<Int sr="arg4" val="0" />
<Int sr="arg5" val="3" />
</Action>
</Task>
</TaskerData>
Las otras dos tareas son prácticamente idénticas a esta última pero cambiando el intent al que llaman / The other two tasks are mostly identical to this last one except for the intent called:
Añadir punto / Add waypoint: com.oruxmaps.INTENT_NEW_WAYPOINT
Reanudar grabación / Resume recording: com.oruxmaps.INTENT_START_RECORD_CONTINUE
Podéis proponer cambios y mejoras. Espero que sean útiles / Feel free to suggest changes and improvements. Hope that helps.
Saludos / Regards