Skip to content

Instantly share code, notes, and snippets.

@pythe
Created October 15, 2016 06:26
Show Gist options
  • Select an option

  • Save pythe/767d6a325e2f9b181427dff12ff8e4a1 to your computer and use it in GitHub Desktop.

Select an option

Save pythe/767d6a325e2f9b181427dff12ff8e4a1 to your computer and use it in GitHub Desktop.
Tasker task to reconnect Pebble smartwatch. Requires AutoInput. Activate via homescreen widget.
<TaskerData sr="" dvi="1" tv="4.8u5m">
<Task sr="task17">
<cdate>1476336090443</cdate>
<edate>1476512127828</edate>
<id>17</id>
<nme>Connect Pebble</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>20</code>
<App sr="arg0">
<appClass>com.getpebble.android.main.activity.MainActivity</appClass>
<appPkg>com.getpebble.android.basalt</appPkg>
<label>Pebble</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>1732635924</code>
<Bundle sr="arg0">
<Vals sr="val">
<ActionId>CONNECT</ActionId>
<ActionId-type>java.lang.String</ActionId-type>
<ActionType>16</ActionType>
<ActionType-type>java.lang.String</ActionType-type>
<FieldSelectionType>0</FieldSelectionType>
<FieldSelectionType-type>java.lang.String</FieldSelectionType-type>
<IsFirstAction>false</IsFirstAction>
<IsFirstAction-type>java.lang.Boolean</IsFirstAction-type>
<IsTaskerAction>false</IsTaskerAction>
<IsTaskerAction-type>java.lang.Boolean</IsTaskerAction-type>
<NearbyText>&lt;null&gt;</NearbyText>
<NearbyText-type>java.lang.String</NearbyText-type>
<StoredAction>&lt;null&gt;</StoredAction>
<StoredAction-type>java.lang.String</StoredAction-type>
<TextToWrite>&lt;null&gt;</TextToWrite>
<TextToWrite-type>java.lang.String</TextToWrite-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Type: Text
Value: CONNECT
Action : Click
Is Tasker Action: false
Check Screen State: false</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.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%err
Error Code
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%errmsg
Error Message
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>TextToWrite StoredAction ActionId RecentFieldIds FieldSelectionType ActionType ActionTimeout NearbyText plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-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>
<plugininstanceid>10c8582c-d875-4a79-ab93-cfe878e7f3f0</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autoinput.intent.IntentPerformAction</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autoinput</Str>
<Str sr="arg2" ve="3">com.joaomgcd.autoinput.activity.ActivityConfigPerformAction</Str>
<Int sr="arg3" val="10"/>
</Action>
<Action sr="act2" ve="7">
<code>1732635924</code>
<Bundle sr="arg0">
<Vals sr="val">
<ActionId>PEBBLE TIME 5154</ActionId>
<ActionId-type>java.lang.String</ActionId-type>
<ActionType>16</ActionType>
<ActionType-type>java.lang.String</ActionType-type>
<FieldSelectionType>0</FieldSelectionType>
<FieldSelectionType-type>java.lang.String</FieldSelectionType-type>
<IsFirstAction>false</IsFirstAction>
<IsFirstAction-type>java.lang.Boolean</IsFirstAction-type>
<IsTaskerAction>false</IsTaskerAction>
<IsTaskerAction-type>java.lang.Boolean</IsTaskerAction-type>
<NearbyText>&lt;null&gt;</NearbyText>
<NearbyText-type>java.lang.String</NearbyText-type>
<StoredAction>&lt;null&gt;</StoredAction>
<StoredAction-type>java.lang.String</StoredAction-type>
<TextToWrite>&lt;null&gt;</TextToWrite>
<TextToWrite-type>java.lang.String</TextToWrite-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Type: Text
Value: PEBBLE TIME 5154
Action : Click
Is Tasker Action: false
Check Screen State: false</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.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%err
Error Code
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%errmsg
Error Message
Only available if you select &amp;lt;b&amp;gt;Continue Task After Error&amp;lt;/b&amp;gt; and the action ends in error&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;/StringArray&gt;</net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>TextToWrite StoredAction ActionId RecentFieldIds FieldSelectionType ActionType ActionTimeout NearbyText plugininstanceid plugintypeid </net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS>
<net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-type>java.lang.String</net.dinglisch.android.tasker.extras.VARIABLE_REPLACE_KEYS-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>
<plugininstanceid>a5c19f07-5cf6-418d-a2e0-aef905b1d606</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autoinput.intent.IntentPerformAction</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autoinput</Str>
<Str sr="arg2" ve="3">com.joaomgcd.autoinput.activity.ActivityConfigPerformAction</Str>
<Int sr="arg3" val="3"/>
</Action>
<Action sr="act3" ve="7">
<code>25</code>
<Int sr="arg0" val="0"/>
</Action>
<Img sr="icn" ve="2">
<cls>com.getpebble.android.main.activity.MainActivity</cls>
<pkg>com.getpebble.android.basalt</pkg>
</Img>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment