Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bpruitt-goddard/865e4f8aa9b7da77439c3f498819b1c5 to your computer and use it in GitHub Desktop.
Save bpruitt-goddard/865e4f8aa9b7da77439c3f498819b1c5 to your computer and use it in GitHub Desktop.
Tasker profile for speaking the BoardGameGeek rank for a game. The command is "BGG rank <game name>".
<TaskerData dvi="1" sr="" tv="4.8u1m">
<Profile sr="prof3" ve="2">
<cdate>1460962844383</cdate>
<edate>1461822396172</edate>
<id>3</id>
<mid0>2</mid0>
<nme>BGG Voice Rank</nme>
<State sr="con0" ve="2">
<code>20126</code>
<Bundle sr="arg0">
<Vals sr="val">
<Contains>false</Contains>
<Contains-type>java.lang.Boolean</Contains-type>
<DisableCommand>&lt;null&gt;</DisableCommand>
<DisableCommand-type>java.lang.String</DisableCommand-type>
<DisableCommandExact>false</DisableCommandExact>
<DisableCommandExact-type>java.lang.Boolean</DisableCommandExact-type>
<DisableCommandRegex>false</DisableCommandRegex>
<DisableCommandRegex-type>java.lang.Boolean</DisableCommandRegex-type>
<LastCommandIdInvert>false</LastCommandIdInvert>
<LastCommandIdInvert-type>java.lang.Boolean</LastCommandIdInvert-type>
<LastCommandIdRegex>false</LastCommandIdRegex>
<LastCommandIdRegex-type>java.lang.Boolean</LastCommandIdRegex-type>
<NotCancelSearchGoogleNow>false</NotCancelSearchGoogleNow>
<NotCancelSearchGoogleNow-type>java.lang.Boolean</NotCancelSearchGoogleNow-type>
<NotOnContinuous>false</NotOnContinuous>
<NotOnContinuous-type>java.lang.Boolean</NotOnContinuous-type>
<NotOnNormal>false</NotOnNormal>
<NotOnNormal-type>java.lang.Boolean</NotOnNormal-type>
<Precision>&lt;null&gt;</Precision>
<Precision-type>java.lang.String</Precision-type>
<ProfileName>&lt;null&gt;</ProfileName>
<ProfileName-type>java.lang.String</ProfileName-type>
<Source>&lt;null&gt;</Source>
<Source-type>java.lang.String</Source-type>
<Substitutions>&lt;null&gt;</Substitutions>
<Substitutions-type>java.lang.String</Substitutions-type>
<TriggerWord>&lt;null&gt;</TriggerWord>
<TriggerWord-type>java.lang.String</TriggerWord-type>
<TriggerWordExact>false</TriggerWordExact>
<TriggerWordExact-type>java.lang.Boolean</TriggerWordExact-type>
<TriggerWordRegex>false</TriggerWordRegex>
<TriggerWordRegex-type>java.lang.Boolean</TriggerWordRegex-type>
<VariableNames>&lt;null&gt;</VariableNames>
<VariableNames-type>java.lang.String</VariableNames-type>
<VariableValues>&lt;null&gt;</VariableValues>
<VariableValues-type>java.lang.String</VariableValues-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Event Behaviour: true
Command: &quot;bgg rank&quot;
Last Cmd Id Regex: false
Last Cmd Id Invert: false
Not on Normal: false
Not on Continuous: false
Contains All: false
Use Regex Replacements: false
Do Google Now Search: false</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<configcommand>BGG rank</configcommand>
<configcommand-type>java.lang.String</configcommand-type>
<configcommandid>&lt;null&gt;</configcommandid>
<configcommandid-type>java.lang.String</configcommandid-type>
<configcommandinvert>false</configcommandinvert>
<configcommandinvert-type>java.lang.Boolean</configcommandinvert-type>
<configexactsub>false</configexactsub>
<configexactsub-type>java.lang.Boolean</configexactsub-type>
<configinstant>true</configinstant>
<configinstant-type>java.lang.Boolean</configinstant-type>
<configlastcommand>&lt;null&gt;</configlastcommand>
<configlastcommand-type>java.lang.String</configlastcommand-type>
<configregexsub>false</configregexsub>
<configregexsub-type>java.lang.Boolean</configregexsub-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=&quot;&quot;&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%avcomm
First recognized Command
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%avcommnofilter
First Command Without Filter
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;%avcomms()
All recognized commands
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;%avcommsnofilter()
All recognized commands without filter
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;%avsource
Source of the Voice Command
Can be normal, continuous, test or googlenow&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&gt;%avword()
Word Array
&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5&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>configcommand configcommandid configlastcommand Precision DisableCommand TriggerWord ProfileName Substitutions VariableNames VariableValues Source 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>8e642a61-bc3c-47b0-a121-0d794cd4a29d</plugininstanceid>
<plugininstanceid-type>java.lang.String</plugininstanceid-type>
<plugintypeid>com.joaomgcd.autovoice.intent.IntentReceiveVoice</plugintypeid>
<plugintypeid-type>java.lang.String</plugintypeid-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.joaomgcd.autovoice</Str>
<Str sr="arg2" ve="3">AutoVoice Recognized</Str>
</State>
</Profile>
<Task sr="task2">
<cdate>1460956865172</cdate>
<edate>1461822387065</edate>
<id>2</id>
<nme>BGG API</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var search = new String(avcommnofilter).replace(/ /g, &quot;%20&quot;)</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act1" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">boardgamegeek.com/xmlapi/search?search=%search</Str>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="15"/>
<Str sr="arg6" ve="3">text/xml</Str>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>598</code>
<Str sr="arg0" ve="3">%HTTPD</Str>
<Str sr="arg1" ve="3">(?&lt;=\bobjectid=&quot;)[^&quot;]*</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="1"/>
<Str sr="arg5" ve="3">%gameid</Str>
<Int sr="arg6" val="0"/>
<Str sr="arg7" ve="3"/>
</Action>
<Action sr="act3" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">boardgamegeek.com/xmlapi/boardgame/%gameid(1)?stats=1</Str>
<Str sr="arg1" ve="3"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>598</code>
<Str sr="arg0" ve="3">%HTTPD</Str>
<Str sr="arg1" ve="3">Board Game Rank.*</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">%ranktmp</Str>
<Int sr="arg6" val="0"/>
<Str sr="arg7" ve="3"/>
</Action>
<Action sr="act5" ve="7">
<code>598</code>
<Str sr="arg0" ve="3">%ranktmp(1)</Str>
<Str sr="arg1" ve="3">(?&lt;=\bvalue=&quot;)[^&quot;]*</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">%rank</Str>
<Int sr="arg6" val="0"/>
<Str sr="arg7" ve="3"/>
</Action>
<Action sr="act6" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">BGG Rank %rank(1)</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment