-
Notifications
You must be signed in to change notification settings - Fork 0
/
Charged.prf.xml
50 lines (50 loc) · 1.37 KB
/
Charged.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
<TaskerData sr="" dvi="1" tv="5.9.2">
<Profile sr="prof10" ve="2">
<cdate>1584940321836</cdate>
<clp>true</clp>
<edate>1589993118769</edate>
<flags>8</flags>
<id>10</id>
<mid0>7</mid0>
<nme>Charged</nme>
<State sr="con0" ve="2">
<code>10</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Task sr="task7">
<cdate>1575748969418</cdate>
<edate>1585987519336</edate>
<id>7</id>
<nme>Telegram Battery</nme>
<Action sr="act0" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">var obj = { chat_id: YOUR-CHAT-ID, text:`plug changed!`}
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>