forked from mbirth/tasker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
VoiceWeatherAlarm.prf.xml
112 lines (108 loc) · 3.38 KB
/
VoiceWeatherAlarm.prf.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<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>