113 lines
3.4 KiB
XML
113 lines
3.4 KiB
XML
<TaskerData sr="" dvi="1" tv="5.0u6m">
|
|
<Profile sr="prof30" ve="2">
|
|
<cdate>1508549314954</cdate>
|
|
<edate>1509033475145</edate>
|
|
<id>30</id>
|
|
<mid0>37</mid0>
|
|
<nme>VoiceWeatherAlarm</nme>
|
|
<Event sr="con0" ve="2">
|
|
<code>446</code>
|
|
<Int sr="arg0" val="2"/>
|
|
<Str sr="arg1" ve="3"/>
|
|
<Str sr="arg2" ve="3"/>
|
|
<Str sr="arg3" ve="3"/>
|
|
<Int sr="arg4" val="0"/>
|
|
</Event>
|
|
</Profile>
|
|
<Task sr="task37">
|
|
<cdate>1386947273630</cdate>
|
|
<edate>1508770528125</edate>
|
|
<id>37</id>
|
|
<nme>AlarmWeather</nme>
|
|
<pri>100</pri>
|
|
<Action sr="act0" ve="7">
|
|
<code>547</code>
|
|
<Str sr="arg0" ve="3">%string</Str>
|
|
<Str sr="arg1" ve="3">Error, data not found.</Str>
|
|
<Int sr="arg2" val="0"/>
|
|
<Int sr="arg3" val="0"/>
|
|
<Int sr="arg4" val="0"/>
|
|
</Action>
|
|
<Action sr="act1" ve="3">
|
|
<code>547</code>
|
|
<Str sr="arg0" ve="3">%WUnderKey</Str>
|
|
<Str sr="arg1" ve="3">###changeme###</Str>
|
|
<Int sr="arg2" val="0"/>
|
|
<Int sr="arg3" val="0"/>
|
|
</Action>
|
|
<Action sr="act2" ve="3">
|
|
<code>547</code>
|
|
<Str sr="arg0" ve="3">%Name</Str>
|
|
<Str sr="arg1" ve="3">###changeme###</Str>
|
|
<Int sr="arg2" val="0"/>
|
|
<Int sr="arg3" val="0"/>
|
|
</Action>
|
|
<Action sr="act3" ve="3">
|
|
<code>547</code>
|
|
<Str sr="arg0" ve="3">%Zip</Str>
|
|
<Str sr="arg1" ve="3">###changeme###</Str>
|
|
<Int sr="arg2" val="0"/>
|
|
<Int sr="arg3" val="0"/>
|
|
</Action>
|
|
<Action sr="act4" ve="7">
|
|
<code>118</code>
|
|
<Str sr="arg0" ve="3">api.wunderground.com</Str>
|
|
<Str sr="arg1" ve="3">api/%WUnderKey/conditions/forecast/q/%Zip.json</Str>
|
|
<Str sr="arg2" ve="3"/>
|
|
<Str sr="arg3" ve="3"/>
|
|
<Str sr="arg4" ve="3"/>
|
|
<Int sr="arg5" val="30"/>
|
|
<Str sr="arg6" ve="3"/>
|
|
<Str sr="arg7" ve="3"/>
|
|
<Int sr="arg8" val="0"/>
|
|
</Action>
|
|
<Action sr="act5" ve="7">
|
|
<code>129</code>
|
|
<se>false</se>
|
|
<Str sr="arg0" ve="3">var tmp = JSON.parse(global('HTTPD')).current_observation.temp_f;
|
|
|
|
var skies = JSON.parse(global('HTTPD')).current_observation.weather;
|
|
|
|
var high = JSON.parse(global('HTTPD')).forecast.simpleforecast.forecastday[0].high.fahrenheit;
|
|
|
|
var low = JSON.parse(global('HTTPD')).forecast.simpleforecast.forecastday[0].low.fahrenheit;
|
|
|
|
var humid = JSON.parse(global('HTTPD')).forecast.simpleforecast.forecastday[0].avehumidity;</Str>
|
|
<Str sr="arg1" ve="3"/>
|
|
<Int sr="arg2" val="1"/>
|
|
<Int sr="arg3" val="45"/>
|
|
</Action>
|
|
<Action sr="act6" ve="7">
|
|
<code>303</code>
|
|
<Int sr="arg0" val="5"/>
|
|
<Int sr="arg1" val="0"/>
|
|
<Int sr="arg2" val="0"/>
|
|
</Action>
|
|
<Action sr="act7" ve="7">
|
|
<code>548</code>
|
|
<on>false</on>
|
|
<Str sr="arg0" ve="3">%string</Str>
|
|
<Int sr="arg1" val="1"/>
|
|
</Action>
|
|
<Action sr="act8" ve="7">
|
|
<code>559</code>
|
|
<Str sr="arg0" ve="3">Good morning %Name. Wake up please. Let me tell you the weather. The current temperature is %tmp degrees. The skies are %skies with %humid percent humidity in the air. The high today will be %high degrees, and the low will be %low degrees.</Str>
|
|
<Str sr="arg1" ve="3">com.google.android.tts:eng-aus</Str>
|
|
<Int sr="arg2" val="4"/>
|
|
<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>
|
|
<Action sr="act9" ve="7">
|
|
<code>30</code>
|
|
<Int sr="arg0" val="0"/>
|
|
<Int sr="arg1" val="3"/>
|
|
<Int sr="arg2" val="0"/>
|
|
<Int sr="arg3" val="0"/>
|
|
<Int sr="arg4" val="0"/>
|
|
</Action>
|
|
</Task>
|
|
</TaskerData>
|