-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBattery_Hot.prf.xml
49 lines (49 loc) · 1.35 KB
/
Battery_Hot.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
<TaskerData sr="" dvi="1" tv="5.9.2">
<Profile sr="prof11" ve="2">
<cdate>1584940335034</cdate>
<edate>1589993107450</edate>
<flags>8</flags>
<id>11</id>
<mid0>8</mid0>
<nme>Battery Hot</nme>
<Event sr="con0" ve="2">
<code>206</code>
</Event>
</Profile>
<Task sr="task8">
<cdate>1575748969418</cdate>
<edate>1587883715814</edate>
<id>8</id>
<nme>Telegram Battery Hot</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var obj = { chat_id: YOUR-CHAT-ID, text:`Battery hot!`}
var ansjson= JSON.stringify(obj)</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act1" ve="7">
<code>116</code>
<Str sr="arg0" ve="3">https://api.telegram.org:443</Str>
<Str sr="arg1" ve="3">/botYOUR-BOT-TOKEN/sendMessage</Str>
<Str sr="arg2" ve="3">%ansjson</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3">application/json</Str>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var parse = JSON.parse(global('HTTPD'))
var is_ok = parse.ok
var descript = parse.description</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
</Task>
</TaskerData>