Skip to content

Instantly share code, notes, and snippets.

@leoherzog
Last active December 13, 2017 21:32
Show Gist options
  • Save leoherzog/f8242056765ea693ba7a to your computer and use it in GitHub Desktop.
Save leoherzog/f8242056765ea693ba7a to your computer and use it in GitHub Desktop.
Weather Wallpaper Flickr Tasker Task
<TaskerData sr="" dvi="1" tv="4.8u1m">
<Task sr="task19">
<cdate>1458152913165</cdate>
<edate>1458658344165</edate>
<id>19</id>
<nme>Weather Wallpaper</nme>
<pri>100</pri>
<Kid sr="Kid">
<launchID>19</launchID>
<pkg>eqs.wdr.ynk</pkg>
<vnme>v2</vnme>
<vnum>2</vnum>
</Kid>
<Action sr="act0" ve="7">
<code>137</code>
<on>false</on>
<Int sr="arg0" val="0" />
<Str sr="arg1" ve="3">Weather Wallpaper</Str>
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%WIFII</lhs>
<op>3</op>
<rhs>Connection</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%BATT</lhs>
<op>6</op>
<rhs>15</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>26348</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.twofortyfouram.locale.intent.extra.BLURB>Message: ⛈️ Updating Wallpaper...</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED>false</com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED>
<com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED-type>
<com.yourcompany.yourapp.extra.BOOLEAN_FAB>false</com.yourcompany.yourapp.extra.BOOLEAN_FAB>
<com.yourcompany.yourapp.extra.BOOLEAN_FAB-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_FAB-type>
<com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE>false</com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE>
<com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO-type>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL>false</com.yourcompany.yourapp.extra.BOOLEAN_REAL>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_REAL-type>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB>false</com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB-type>
<com.yourcompany.yourapp.extra.INT_EDIT_TYPE>0</com.yourcompany.yourapp.extra.INT_EDIT_TYPE>
<com.yourcompany.yourapp.extra.INT_EDIT_TYPE-type>java.lang.Integer</com.yourcompany.yourapp.extra.INT_EDIT_TYPE-type>
<com.yourcompany.yourapp.extra.STRING_BCOLOR>#212121</com.yourcompany.yourapp.extra.STRING_BCOLOR>
<com.yourcompany.yourapp.extra.STRING_BCOLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_BCOLOR-type>
<com.yourcompany.yourapp.extra.STRING_BUTTON></com.yourcompany.yourapp.extra.STRING_BUTTON>
<com.yourcompany.yourapp.extra.STRING_BUTTON-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_BUTTON-type>
<com.yourcompany.yourapp.extra.STRING_COLOR>#FF000000</com.yourcompany.yourapp.extra.STRING_COLOR>
<com.yourcompany.yourapp.extra.STRING_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_COMMAND>false</com.yourcompany.yourapp.extra.STRING_COMMAND>
<com.yourcompany.yourapp.extra.STRING_COMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_COMMAND-type>
<com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR></com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR>
<com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_EDIT_HINT></com.yourcompany.yourapp.extra.STRING_EDIT_HINT>
<com.yourcompany.yourapp.extra.STRING_EDIT_HINT-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_EDIT_HINT-type>
<com.yourcompany.yourapp.extra.STRING_FAB_COLOR></com.yourcompany.yourapp.extra.STRING_FAB_COLOR>
<com.yourcompany.yourapp.extra.STRING_FAB_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FAB_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_FAB_COMMAND></com.yourcompany.yourapp.extra.STRING_FAB_COMMAND>
<com.yourcompany.yourapp.extra.STRING_FAB_COMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FAB_COMMAND-type>
<com.yourcompany.yourapp.extra.STRING_FAB_ICON>#B2EBF2</com.yourcompany.yourapp.extra.STRING_FAB_ICON>
<com.yourcompany.yourapp.extra.STRING_FAB_ICON-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FAB_ICON-type>
<com.yourcompany.yourapp.extra.STRING_FIELD_COLOR></com.yourcompany.yourapp.extra.STRING_FIELD_COLOR>
<com.yourcompany.yourapp.extra.STRING_FIELD_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FIELD_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_FIELD_TEXT></com.yourcompany.yourapp.extra.STRING_FIELD_TEXT>
<com.yourcompany.yourapp.extra.STRING_FIELD_TEXT-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FIELD_TEXT-type>
<com.yourcompany.yourapp.extra.STRING_IME_COMMAND></com.yourcompany.yourapp.extra.STRING_IME_COMMAND>
<com.yourcompany.yourapp.extra.STRING_IME_COMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_IME_COMMAND-type>
<com.yourcompany.yourapp.extra.STRING_LENGTH>Short</com.yourcompany.yourapp.extra.STRING_LENGTH>
<com.yourcompany.yourapp.extra.STRING_LENGTH-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_LENGTH-type>
<com.yourcompany.yourapp.extra.STRING_LONGCOMMAND></com.yourcompany.yourapp.extra.STRING_LONGCOMMAND>
<com.yourcompany.yourapp.extra.STRING_LONGCOMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_LONGCOMMAND-type>
<com.yourcompany.yourapp.extra.STRING_MESSAGE>⛈️ Updating Wallpaper...</com.yourcompany.yourapp.extra.STRING_MESSAGE>
<com.yourcompany.yourapp.extra.STRING_MESSAGE-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_MESSAGE-type>
<com.yourcompany.yourapp.extra.STRING_SEPARATOR></com.yourcompany.yourapp.extra.STRING_SEPARATOR>
<com.yourcompany.yourapp.extra.STRING_SEPARATOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_SEPARATOR-type>
<com.yourcompany.yourapp.extra.STRING_TITLE_COLOR></com.yourcompany.yourapp.extra.STRING_TITLE_COLOR>
<com.yourcompany.yourapp.extra.STRING_TITLE_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_TITLE_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_TYPE>No Button</com.yourcompany.yourapp.extra.STRING_TYPE>
<com.yourcompany.yourapp.extra.STRING_TYPE-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_TYPE-type>
<com.yourcompany.yourcondition.extra.INT_VERSION_CODE>107</com.yourcompany.yourcondition.extra.INT_VERSION_CODE>
<com.yourcompany.yourcondition.extra.INT_VERSION_CODE-type>java.lang.Integer</com.yourcompany.yourcondition.extra.INT_VERSION_CODE-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%sb_command
Snackbar swiped away: "Swipe" returned
Snackbar times-out: "Timeout" returned&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&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>com.yourcompany.yourapp.extra.STRING_MESSAGE com.yourcompany.yourapp.extra.STRING_BCOLOR com.yourcompany.yourapp.extra.STRING_FIELD_COLOR com.yourcompany.yourapp.extra.STRING_FAB_ICON</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>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.nick.mowen.sceneplugin</Str>
<Str sr="arg2" ve="3">Snackbar Without Button</Str>
<Int sr="arg3" val="10" />
</Action>
<Action sr="act10" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastcondition</Str>
<Str sr="arg1" ve="3">%forecastcondition1 %forecastcondition2</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%forecastcondition3</lhs>
<op>12</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act11" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">☀️</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>clear</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act12" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">🌤️</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>partly cloudy</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act13" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">⛅</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>mostly cloudy</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act14" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">☁️</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>cloudy</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>overcast</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act15" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">🌧️</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>rain</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>drizzle</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act16" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">🌨️</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<bool0>Or</bool0>
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>snow</rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>flurries</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act17" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">🌫️</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>wind</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act18" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">🌁</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%forecastcondition</lhs>
<op>2</op>
<rhs>fog</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act19" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastconditionemoji</Str>
<Str sr="arg1" ve="3">⛈️</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%forecastconditionemoji</lhs>
<op>13</op>
<rhs>fog</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%flickrapikey</Str>
<Str sr="arg1" ve="3">YOUR-FLICKR-API-KEY-HERE</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
</Action>
<Action sr="act20" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">https://api.flickr.com</Str>
<Str sr="arg1" ve="3">/services/rest/?method=flickr.photos.search&amp;api_key=%flickrapikey&amp;group_id=1463451%40N25&amp;text=%forecastcondition&amp;lat=%LOCN1&amp;lon=%LOCN2&amp;radius=20&amp;format=json&amp;nojsoncallback=1&amp;extras=url_l,url_o&amp;sort=interestingness-desc</Str>
<Str sr="arg2" ve="3" />
<Str sr="arg3" ve="3" />
<Str sr="arg4" ve="3">Mozilla/5.0</Str>
<Int sr="arg5" val="15" />
<Str sr="arg6" ve="3">text/*</Str>
<Str sr="arg7" ve="3" />
<Int sr="arg8" val="0" />
</Action>
<Action sr="act21" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var numberofphotos = JSON.parse(global('HTTPD')).photos.photo.length;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
</Action>
<Action sr="act22" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">No %forecastcondition photos found near you. Finding %forecastcondition photos from around the world instead.</Str>
<Int sr="arg1" val="1" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%numberofphotos</lhs>
<op>8</op>
<rhs>0</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act23" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">https://api.flickr.com</Str>
<Str sr="arg1" ve="3">/services/rest/?method=flickr.photos.search&amp;api_key=%flickrapikey&amp;group_id=1463451%40N25&amp;text=%forecastcondition&amp;format=json&amp;nojsoncallback=1&amp;extras=url_l,url_o&amp;sort=interestingness-desc</Str>
<Str sr="arg2" ve="3" />
<Str sr="arg3" ve="3" />
<Str sr="arg4" ve="3">Mozilla/5.0</Str>
<Int sr="arg5" val="15" />
<Str sr="arg6" ve="3">text/*</Str>
<Str sr="arg7" ve="3" />
<Int sr="arg8" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%numberofphotos</lhs>
<op>8</op>
<rhs>0</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act24" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var numberofphotos = JSON.parse(global('HTTPD')).photos.photo.length;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%numberofphotos</lhs>
<op>8</op>
<rhs>0</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act25" ve="7">
<code>545</code>
<Str sr="arg0" ve="3">%randomphotonumber</Str>
<Int sr="arg1" val="1" />
<Int sr="arg2">
<var>%numberofphotos</var>
</Int>
</Action>
<Action sr="act26" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var randomphotoname = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].title;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
</Action>
<Action sr="act27" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%randomphotoname</Str>
<Str sr="arg1" ve="3">No Title</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%randomphotoname</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act28" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var randomphotoid = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].id;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
</Action>
<Action sr="act29" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var randomphotoowner = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].owner;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
</Action>
<Action sr="act3" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastapikey</Str>
<Str sr="arg1" ve="3">YOUR-FORECAST-IO-API-KEY-HERE</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
</Action>
<Action sr="act30" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var randomphotourl = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].url_o;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
</Action>
<Action sr="act31" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var randomphotourl = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].url_l;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%randomphotourl</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act32" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%numberofphotos photos found</Str>
<Int sr="arg1" val="0" />
</Action>
<Action sr="act33" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">%randomphotourl</Str>
<Str sr="arg1" ve="3" />
<Str sr="arg2" ve="3" />
<Str sr="arg3" ve="3" />
<Str sr="arg4" ve="3">Mozilla/5.0</Str>
<Int sr="arg5" val="15" />
<Str sr="arg6" ve="3">image/*</Str>
<Str sr="arg7" ve="3">tasker/currentwallpaper.jpg</Str>
<Int sr="arg8" val="0" />
</Action>
<Action sr="act34" ve="7">
<code>109</code>
<Str sr="arg0" ve="3">tasker/currentwallpaper.jpg</Str>
<Int sr="arg1" val="0" />
<Int sr="arg2" val="0" />
</Action>
<Action sr="act35" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">Wallpaper</Str>
<Str sr="arg1" ve="3">%forecastconditionemoji %forecastcondition | "%randomphotoname"</Str>
<Img sr="arg2" ve="2">
<nme>hd_aaa_ext_rain</nme>
</Img>
<Int sr="arg3" val="0" />
<Int sr="arg4" val="0" />
<Int sr="arg5" val="1" />
<ListElementItem sr="item0">
<label>See on Flickr</label>
<Action sr="action" ve="7">
<code>104</code>
<Str sr="arg0" ve="3">https://www.flickr.com/photos/%randomphotoowner/%randomphotoid</Str>
</Action>
<Img sr="icon" ve="2">
<nme>hd_location_web_site</nme>
</Img>
</ListElementItem>
<ListElementItem sr="item1">
<label>Refresh</label>
<Action sr="action" ve="7">
<code>130</code>
<Str sr="arg0" ve="3">Weather Wallpaper</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="icon" ve="2">
<nme>hd_ab_av_replay</nme>
</Img>
</ListElementItem>
</Action>
<Action sr="act36" ve="7">
<code>3899</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.twofortyfouram.locale.intent.extra.BLURB>Message: %forecastconditionemoji Wallpaper: "%randomphotoname"
Button: See on Flickr
Command: Button Pressed</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED>false</com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED>
<com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_EDIT_ENABLED-type>
<com.yourcompany.yourapp.extra.BOOLEAN_FAB>false</com.yourcompany.yourapp.extra.BOOLEAN_FAB>
<com.yourcompany.yourapp.extra.BOOLEAN_FAB-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_FAB-type>
<com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE>false</com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE>
<com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_IMMERSIVE-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_FOUR-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_THREE-type>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO>false</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO>
<com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_PERSISTENT_TWO-type>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL>false</com.yourcompany.yourapp.extra.BOOLEAN_REAL>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_REAL-type>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB>false</com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB>
<com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB-type>java.lang.Boolean</com.yourcompany.yourapp.extra.BOOLEAN_REAL_FAB-type>
<com.yourcompany.yourapp.extra.INT_EDIT_TYPE>0</com.yourcompany.yourapp.extra.INT_EDIT_TYPE>
<com.yourcompany.yourapp.extra.INT_EDIT_TYPE-type>java.lang.Integer</com.yourcompany.yourapp.extra.INT_EDIT_TYPE-type>
<com.yourcompany.yourapp.extra.STRING_BCOLOR>#212121</com.yourcompany.yourapp.extra.STRING_BCOLOR>
<com.yourcompany.yourapp.extra.STRING_BCOLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_BCOLOR-type>
<com.yourcompany.yourapp.extra.STRING_BUTTON>See on Flickr</com.yourcompany.yourapp.extra.STRING_BUTTON>
<com.yourcompany.yourapp.extra.STRING_BUTTON-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_BUTTON-type>
<com.yourcompany.yourapp.extra.STRING_COLOR>#B2EBF2</com.yourcompany.yourapp.extra.STRING_COLOR>
<com.yourcompany.yourapp.extra.STRING_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_COMMAND>Button Pressed</com.yourcompany.yourapp.extra.STRING_COMMAND>
<com.yourcompany.yourapp.extra.STRING_COMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_COMMAND-type>
<com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR></com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR>
<com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_DIVIDER_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_EDIT_HINT></com.yourcompany.yourapp.extra.STRING_EDIT_HINT>
<com.yourcompany.yourapp.extra.STRING_EDIT_HINT-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_EDIT_HINT-type>
<com.yourcompany.yourapp.extra.STRING_FAB_COLOR></com.yourcompany.yourapp.extra.STRING_FAB_COLOR>
<com.yourcompany.yourapp.extra.STRING_FAB_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FAB_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_FAB_COMMAND></com.yourcompany.yourapp.extra.STRING_FAB_COMMAND>
<com.yourcompany.yourapp.extra.STRING_FAB_COMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FAB_COMMAND-type>
<com.yourcompany.yourapp.extra.STRING_FAB_ICON>#B2EBF2</com.yourcompany.yourapp.extra.STRING_FAB_ICON>
<com.yourcompany.yourapp.extra.STRING_FAB_ICON-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FAB_ICON-type>
<com.yourcompany.yourapp.extra.STRING_FIELD_COLOR></com.yourcompany.yourapp.extra.STRING_FIELD_COLOR>
<com.yourcompany.yourapp.extra.STRING_FIELD_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FIELD_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_FIELD_TEXT></com.yourcompany.yourapp.extra.STRING_FIELD_TEXT>
<com.yourcompany.yourapp.extra.STRING_FIELD_TEXT-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_FIELD_TEXT-type>
<com.yourcompany.yourapp.extra.STRING_IME_COMMAND></com.yourcompany.yourapp.extra.STRING_IME_COMMAND>
<com.yourcompany.yourapp.extra.STRING_IME_COMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_IME_COMMAND-type>
<com.yourcompany.yourapp.extra.STRING_LENGTH>Long</com.yourcompany.yourapp.extra.STRING_LENGTH>
<com.yourcompany.yourapp.extra.STRING_LENGTH-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_LENGTH-type>
<com.yourcompany.yourapp.extra.STRING_LONGCOMMAND></com.yourcompany.yourapp.extra.STRING_LONGCOMMAND>
<com.yourcompany.yourapp.extra.STRING_LONGCOMMAND-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_LONGCOMMAND-type>
<com.yourcompany.yourapp.extra.STRING_MESSAGE>%forecastconditionemoji Wallpaper: "%randomphotoname"</com.yourcompany.yourapp.extra.STRING_MESSAGE>
<com.yourcompany.yourapp.extra.STRING_MESSAGE-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_MESSAGE-type>
<com.yourcompany.yourapp.extra.STRING_SEPARATOR></com.yourcompany.yourapp.extra.STRING_SEPARATOR>
<com.yourcompany.yourapp.extra.STRING_SEPARATOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_SEPARATOR-type>
<com.yourcompany.yourapp.extra.STRING_TITLE_COLOR></com.yourcompany.yourapp.extra.STRING_TITLE_COLOR>
<com.yourcompany.yourapp.extra.STRING_TITLE_COLOR-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_TITLE_COLOR-type>
<com.yourcompany.yourapp.extra.STRING_TYPE>Regular</com.yourcompany.yourapp.extra.STRING_TYPE>
<com.yourcompany.yourapp.extra.STRING_TYPE-type>java.lang.String</com.yourcompany.yourapp.extra.STRING_TYPE-type>
<com.yourcompany.yourcondition.extra.INT_VERSION_CODE>107</com.yourcompany.yourcondition.extra.INT_VERSION_CODE>
<com.yourcompany.yourcondition.extra.INT_VERSION_CODE-type>java.lang.Integer</com.yourcompany.yourcondition.extra.INT_VERSION_CODE-type>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES>&lt;StringArray sr=""&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;%sb_command
Action button pressed: Command is returned
Snackbar swiped away: "Swipe" returned
Snackbar times-out: "Timeout" returned&lt;/_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0&gt;&lt;_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1&gt;%sb_button
Action button pressed: Button Pressed is returned else Not Pressed is returned
&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>com.yourcompany.yourapp.extra.STRING_MESSAGE com.yourcompany.yourapp.extra.STRING_BUTTON com.yourcompany.yourapp.extra.STRING_COLOR com.yourcompany.yourapp.extra.STRING_COMMAND com.yourcompany.yourapp.extra.STRING_BCOLOR com.yourcompany.yourapp.extra.STRING_FAB_ICON</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>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.nick.mowen.sceneplugin</Str>
<Str sr="arg2" ve="3">Snackbar</Str>
<Int sr="arg3" val="3600" />
</Action>
<Action sr="act37" ve="7">
<code>104</code>
<Str sr="arg0" ve="3">https://www.flickr.com/photos/%randomphotoowner/%randomphotoid</Str>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%sb_button</lhs>
<op>2</op>
<rhs>Button Pressed</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act4" ve="7">
<code>902</code>
<Int sr="arg0" val="1" />
<Int sr="arg1" val="15" />
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
</Action>
<Action sr="act5" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%LOCN</Str>
<Str sr="arg1" ve="3">,</Str>
<Int sr="arg2" val="0" />
</Action>
<Action sr="act6" ve="7">
<code>118</code>
<Str sr="arg0" ve="3">https://api.forecast.io</Str>
<Str sr="arg1" ve="3">/forecast/%forecastapikey/%LOCN</Str>
<Str sr="arg2" ve="3" />
<Str sr="arg3" ve="3" />
<Str sr="arg4" ve="3">Mozilla/5.0</Str>
<Int sr="arg5" val="15" />
<Str sr="arg6" ve="3">text/*</Str>
<Str sr="arg7" ve="3" />
<Int sr="arg8" val="0" />
</Action>
<Action sr="act7" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var forecastcondition = JSON.parse(global('HTTPD')).currently.icon;</Str>
<Str sr="arg1" ve="3" />
<Int sr="arg2" val="1" />
<Int sr="arg3" val="5" />
</Action>
<Action sr="act8" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%forecastcondition</Str>
<Str sr="arg1" ve="3">-</Str>
<Int sr="arg2" val="1" />
</Action>
<Action sr="act9" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%forecastcondition</Str>
<Str sr="arg1" ve="3">%forecastcondition1</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
</Action>
<Img sr="icn" ve="2">
<nme>hl_aaa_ext_rain</nme>
</Img>
</Task>
</TaskerData>
Weather Wallpaper (19)
A1: [X] Stop [ With Error:Off Task:Weather Wallpaper ] If [ %WIFII !~ Connection | %BATT < 15 ]
A2: Snackbar Without Button [ Configuration:Message: ⛈️ Updating Wallpaper... Package:com.nick.mowen.sceneplugin Name:Snackbar Without Button Timeout (Seconds):10 ]
A3: Variable Set [ Name:%flickrapikey To:YourFlickrAPIKey Do Maths:Off Append:Off ]
A4: Variable Set [ Name:%forecastapikey To:YourForecastAPIKey Do Maths:Off Append:Off ]
A5: Get Location [ Source:Net Timeout (Seconds):15 Continue Task Immediately:Off Keep Tracking:Off ]
A6: Variable Split [ Name:%LOCN Splitter:, Delete Base:Off ]
A7: HTTP Get [ Server:Port:https://api.forecast.io Path:/forecast/%forecastapikey/%LOCN Attributes: Cookies: User Agent:Mozilla/5.0 Timeout:15 Mime Type:text/* Output File: Trust Any Certificate:Off ]
A8: JavaScriptlet [ Code:var forecastcondition = JSON.parse(global('HTTPD')).currently.icon; Libraries: Auto Exit:On Timeout (Seconds):5 ]
A9: Variable Split [ Name:%forecastcondition Splitter:- Delete Base:On ]
A10: Variable Set [ Name:%forecastcondition To:%forecastcondition1 Do Maths:Off Append:Off ]
A11: Variable Set [ Name:%forecastcondition To:%forecastcondition1 %forecastcondition2 Do Maths:Off Append:Off ] If [ %forecastcondition3 Set ]
A12: Variable Set [ Name:%forecastconditionemoji To:☀️ Do Maths:Off Append:Off ] If [ %forecastcondition ~ clear ]
A13: Variable Set [ Name:%forecastconditionemoji To:🌤️ Do Maths:Off Append:Off ] If [ %forecastcondition ~ partly cloudy ]
A14: Variable Set [ Name:%forecastconditionemoji To:⛅ Do Maths:Off Append:Off ] If [ %forecastcondition ~ mostly cloudy ]
A15: Variable Set [ Name:%forecastconditionemoji To:☁️ Do Maths:Off Append:Off ] If [ %forecastcondition ~ cloudy | %forecastcondition ~ overcast ]
A16: Variable Set [ Name:%forecastconditionemoji To:🌧️ Do Maths:Off Append:Off ] If [ %forecastcondition ~ rain | %forecastcondition ~ drizzle ]
A17: Variable Set [ Name:%forecastconditionemoji To:🌨️ Do Maths:Off Append:Off ] If [ %forecastcondition ~ snow | %forecastcondition ~ flurries ]
A18: Variable Set [ Name:%forecastconditionemoji To:🌫️ Do Maths:Off Append:Off ] If [ %forecastcondition ~ wind ]
A19: Variable Set [ Name:%forecastconditionemoji To:🌁 Do Maths:Off Append:Off ] If [ %forecastcondition ~ fog ]
A20: Variable Set [ Name:%forecastconditionemoji To:⛈️ Do Maths:Off Append:Off ] If [ %forecastconditionemoji !Set ]
A21: HTTP Get [ Server:Port:https://api.flickr.com Path:/services/rest/?method=flickr.photos.search&api_key=%flickrapikey&group_id=1463451%40N25&text=%forecastcondition&lat=%LOC1&lon=%LOC2&radius=20&format=json&nojsoncallback=1&extras=url_l,url_o&sort=interestingness-desc Attributes: Cookies: User Agent:Mozilla/5.0 Timeout:15 Mime Type:text/* Output File: Trust Any Certificate:Off ]
A22: JavaScriptlet [ Code:var numberofphotos = JSON.parse(global('HTTPD')).photos.photo.length; Libraries: Auto Exit:On Timeout (Seconds):5 ]
A23: Flash [ Text:No %forecastcondition photos found near you. Finding %forecastcondition photos from around the world instead. Long:On ] If [ %numberofphotos = 0 ]
A24: HTTP Get [ Server:Port:https://api.flickr.com Path:/services/rest/?method=flickr.photos.search&api_key=%flickrapikey&group_id=1463451%40N25&text=%forecastcondition&format=json&nojsoncallback=1&extras=url_l,url_o&sort=interestingness-desc Attributes: Cookies: User Agent:Mozilla/5.0 Timeout:15 Mime Type:text/* Output File: Trust Any Certificate:Off ] If [ %numberofphotos = 0 ]
A25: JavaScriptlet [ Code:var numberofphotos = JSON.parse(global('HTTPD')).photos.photo.length; Libraries: Auto Exit:On Timeout (Seconds):5 ] If [ %numberofphotos = 0 ]
A26: Variable Randomize [ Name:%randomphotonumber Min:1 Max:%numberofphotos ]
A27: JavaScriptlet [ Code:var randomphotoname = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].title; Libraries: Auto Exit:On Timeout (Seconds):5 ]
A28: Variable Set [ Name:%randomphotoname To:No Title Do Maths:Off Append:Off ] If [ %randomphotoname !Set ]
A29: JavaScriptlet [ Code:var randomphotoid = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].id; Libraries: Auto Exit:On Timeout (Seconds):5 ]
A30: JavaScriptlet [ Code:var randomphotoowner = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].owner; Libraries: Auto Exit:On Timeout (Seconds):5 ]
A31: JavaScriptlet [ Code:var randomphotourl = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].url_o; Libraries: Auto Exit:On Timeout (Seconds):5 ]
A32: JavaScriptlet [ Code:var randomphotourl = JSON.parse(global('HTTPD')).photos.photo[randomphotonumber - 1].url_l; Libraries: Auto Exit:On Timeout (Seconds):5 ] If [ %randomphotourl !Set ]
A33: Flash [ Text:%numberofphotos photos found Long:Off ]
A34: HTTP Get [ Server:Port:%randomphotourl Path: Attributes: Cookies: User Agent:Mozilla/5.0 Timeout:15 Mime Type:image/* Output File:tasker/currentwallpaper.jpg Trust Any Certificate:Off ]
A35: Set Wallpaper [ Image:tasker/currentwallpaper.jpg Scale:Off Crop:Off ]
A36: Notify [ Title:Wallpaper Text:%forecastconditionemoji %forecastcondition | "%randomphotoname" Icon:hd_aaa_ext_rain Number:0 Permanent:Off Priority:1 Actions:(2) ]
A37: Snackbar [ Configuration:Message: %forecastconditionemoji Wallpaper: "%randomphotoname"
Button: See on Flickr
Command: Button Pressed Package:com.nick.mowen.sceneplugin Name:Snackbar Timeout (Seconds):3600 ]
A38: Browse URL [ URL:https://www.flickr.com/photos/%randomphotoowner/%randomphotoid ] If [ %sb_button ~ Button Pressed ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment