Skip to content

Instantly share code, notes, and snippets.

@davebrny
Created May 4, 2018 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davebrny/a94e5eb9858ec048f47d47648716086d to your computer and use it in GitHub Desktop.
Save davebrny/a94e5eb9858ec048f47d47648716086d to your computer and use it in GitHub Desktop.
(tasker) connect to the garmin glo using an NFC tag
<TaskerData sr="" dvi="1" tv="5.1m">
<Profile sr="prof199" ve="2">
<cdate>1493412138872</cdate>
<edate>1525368772438</edate>
<id>199</id>
<mid0>187</mid0>
<nme>nfc - garmin glo connect</nme>
<State sr="con0" ve="2">
<code>992481284</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.twofortyfouram.locale.intent.extra.BLURB>0447C172092980 - repetitive</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>
<se.badaccess.local.nfc.extra.ENABLE_IMMEDIATE_RESCAN>true</se.badaccess.local.nfc.extra.ENABLE_IMMEDIATE_RESCAN>
<se.badaccess.local.nfc.extra.ENABLE_IMMEDIATE_RESCAN-type>java.lang.Boolean</se.badaccess.local.nfc.extra.ENABLE_IMMEDIATE_RESCAN-type>
<se.badaccess.local.nfc.extra.FIRST_SCAN>true</se.badaccess.local.nfc.extra.FIRST_SCAN>
<se.badaccess.local.nfc.extra.FIRST_SCAN-type>java.lang.Boolean</se.badaccess.local.nfc.extra.FIRST_SCAN-type>
<se.badaccess.locale.nfc.extra.INT_VERSION_CODE>4</se.badaccess.locale.nfc.extra.INT_VERSION_CODE>
<se.badaccess.locale.nfc.extra.INT_VERSION_CODE-type>java.lang.Integer</se.badaccess.locale.nfc.extra.INT_VERSION_CODE-type>
<se.badaccess.locale.nfc.extra.NFC_TAG>0447C172092980</se.badaccess.locale.nfc.extra.NFC_TAG>
<se.badaccess.locale.nfc.extra.NFC_TAG-type>java.lang.String</se.badaccess.locale.nfc.extra.NFC_TAG-type>
<se.badaccess.locale.nfc.extra.READ_NFC_TAG></se.badaccess.locale.nfc.extra.READ_NFC_TAG>
<se.badaccess.locale.nfc.extra.READ_NFC_TAG-type>java.lang.String</se.badaccess.locale.nfc.extra.READ_NFC_TAG-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">se.badaccess.locale.nfc</Str>
<Str sr="arg2" ve="3">se.badaccess.locale.nfc.ui.EditActivity</Str>
</State>
</Profile>
<Task sr="task187">
<cdate>1525350323616</cdate>
<edate>1525368772438</edate>
<id>187</id>
<nme>garmin glo connect</nme>
<pri>7</pri>
<Action sr="act0" ve="7">
<code>294</code>
<Int sr="arg0" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%BLUE</lhs>
<op>2</op>
<rhs>off</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>877</code>
<label>start service</label>
<Str sr="arg0" ve="3">googoo.android.btgps.action.SERVICE_START</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>
<Img sr="icn" ve="2">
<cls>googoo.android.btgps.BluetoothGPSActivity</cls>
<pkg>googoo.android.btgps</pkg>
</Img>
</Task>
</TaskerData>
@davebrny
Copy link
Author

davebrny commented May 4, 2018

this tasker profile needs the Local NFC plugin to work and the app Bluetooth GPS needs to be set up and working with your glo first

once the profile is imported, go into the trigger and add your NFC tag (make sure "repetitive" is checked)

i have this task set to connect only since the garmin_glo_connected.prf.xml profile handles the disconnecting when the glo is turned off.
if you would rather it toggled every time then change the intent to the following:

googoo.android.btgps.action.SERVICE_TOGGLE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment