forked from mbirth/tasker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LetsGoHome.tsk.xml
83 lines (80 loc) · 2.38 KB
/
LetsGoHome.tsk.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
<TaskerData sr="" dvi="1" tv="4.1u3m">
<Task sr="task69">
<cdate>1373144774404</cdate>
<edate>1373146475970</edate>
<id>69</id>
<nme>LetsGoHome</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%TransitFrom</Str>
<Str sr="arg1" ve="3">Alexanderplatz 1, 10178 Berlin</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%TransitTo</Str>
<Str sr="arg1" ve="3">Pariser Platz 1, 10117 Berlin</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="3">
<code>118</code>
<Str sr="arg0" ve="3">maps.googleapis.com</Str>
<Str sr="arg1" ve="3">maps/api/directions/json</Str>
<Str sr="arg2" ve="3">origin=%TransitFrom
destination=%TransitTo
sensor=false
departure_time=%TIMES
mode=transit
language=de</Str>
<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="act3" ve="3">
<code>129</code>
<Str sr="arg0" ve="3">var data=JSON.parse(global('HTTPD'));
var route=data['routes'][0]['legs'][0];
setGlobal('TransitLeavingTime', route['departure_time']['text']);
var first_transit=null;
for (var i in route['steps']) {
if (route['steps'][i]['travel_mode'] === 'TRANSIT') {
first_transit=route['steps'][i];
break;
}
}
setGlobal('TransitTitle', first_transit['html_instructions']);
setGlobal('TransitLine', first_transit['transit_details']['line']['short_name']);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act4" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%TransitInfo</Str>
<Str sr="arg1" ve="3">Um %TransitLeavingTime los gehen, um %TransitTitle zu erreichen.</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="3">
<code>548</code>
<Str sr="arg0" ve="3">%TransitInfo</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act6" ve="3">
<code>559</code>
<Str sr="arg0" ve="3">%TransitInfo</Str>
<Str sr="arg1" ve="3">com.google.android.tts:deu-deu</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="7"/>
<Int sr="arg5" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hd_aaa_ext_home</nme>
</Img>
</Task>
</TaskerData>