Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
tasker/RainWarning.prf.xml
2014-08-23 22:02:49 +02:00

170 lines
4.8 KiB
XML

<TaskerData sr="" dvi="1" tv="4.0u1m">
<Profile sr="prof62" ve="2">
<cdate>1365112517568</cdate>
<clp>true</clp>
<edate>1365113603659</edate>
<id>62</id>
<mid0>60</mid0>
<nme>Rain Warning</nme>
<Time sr="con0">
<fh>3</fh>
<fm>0</fm>
<th>12</th>
<tm>30</tm>
</Time>
<Event sr="con1" ve="2">
<code>306</code>
</Event>
</Profile>
<Task sr="task60">
<cdate>1365078569558</cdate>
<edate>1370607047164</edate>
<id>60</id>
<nme>RainWarning</nme>
<pri>10</pri>
<Action sr="act0" 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="act1" ve="3">
<code>118</code>
<Str sr="arg0" ve="3">api.wunderground.com</Str>
<Str sr="arg1" ve="3">/api/%WUnderKey/forecast/lang:DL/q/%LOCN.json</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="10"/>
<Str sr="arg5" ve="3">text/*</Str>
<Str sr="arg6" ve="3"/>
</Action>
<Action sr="act10" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict2</Str>
<Str sr="arg1" ve="3">km/h</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">Kilometer pro Stunde</Str>
</Action>
<Action sr="act11" ve="3">
<code>559</code>
<Str sr="arg0" ve="3">Heute gibt es %Rain_mm Millimeter Regen. Tagsüber: %Rain_predict. Nachts: %Rain_predict2</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="0"/>
</Action>
<Action sr="act12" ve="3">
<code>38</code>
</Action>
<Action sr="act2" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%JSON</Str>
<Str sr="arg1" ve="3">%HTTPD</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="3">
<code>129</code>
<Str sr="arg0" ve="3">var json_str=global('HTTPD');
var data=JSON.parse(json_str);
var today=data['forecast']['simpleforecast']['forecastday'][0];
var today_txt= data['forecast']['txt_forecast']['forecastday'][0];
var tonight_txt= data['forecast']['txt_forecast']['forecastday'][1];
setGlobal('Rain_mm', today['qpf_allday']['mm']);
setGlobal('Rain_date', today['date']['pretty']);
setGlobal('Rain_predict', today_txt['fcttext_metric']);
setGlobal('Rain_predict2', tonight_txt['fcttext_metric']);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="10"/>
</Action>
<Action sr="act4" ve="3">
<code>37</code>
<lhs>%Rain_mm</lhs>
<op>4</op>
<rhs>0</rhs>
</Action>
<Action sr="act5" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_mm</Str>
<Str sr="arg1" ve="3">\.</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">,</Str>
</Action>
<Action sr="act6" ve="3">
<code>523</code>
<Str sr="arg0" ve="3">Heute %Rain_mm mm Regen</Str>
<Str sr="arg1" ve="3">%Rain_predict (%Rain_date)</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="3"/>
<ListElementItem sr="item0">
<label>TWC</label>
<Action sr="action" ve="3">
<code>20</code>
<App sr="arg0">
<appClass>com.weather.Weather.activity.WeatherController</appClass>
<appPkg>com.weather.Weather</appPkg>
<label>The Weather Channel</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
<Img sr="icon" ve="2">
<cls>com.weather.Weather.activity.WeatherController</cls>
<pkg>com.weather.Weather</pkg>
</Img>
</ListElementItem>
</Action>
<Action sr="act7" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict</Str>
<Str sr="arg1" ve="3">([0-9.]+)C</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">$1 Grad</Str>
</Action>
<Action sr="act8" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict</Str>
<Str sr="arg1" ve="3">km/h</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">Kilometer pro Stunde</Str>
</Action>
<Action sr="act9" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict2</Str>
<Str sr="arg1" ve="3">([0-9.]+)C</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">$1 Grad</Str>
</Action>
<Img sr="icn" ve="2">
<nme>hd_aaa_ext_rain</nme>
</Img>
</Task>
</TaskerData>