This repository was archived by the owner on Jan 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData_Remaining.prj.xml
More file actions
executable file
·310 lines (308 loc) · 10.3 KB
/
Data_Remaining.prj.xml
File metadata and controls
executable file
·310 lines (308 loc) · 10.3 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<TaskerData sr="" dvi="1" tv="5.15.14">
<Profile sr="prof5" ve="2">
<cdate>1651786301812</cdate>
<clp>true</clp>
<edate>1652823933526</edate>
<flags>8</flags>
<id>5</id>
<mid0>28</mid0>
<nme>Data Remaining</nme>
<Time sr="con0">
<fh>-1</fh>
<fm>-1</fm>
<rep>2</rep>
<repval>15</repval>
<th>-1</th>
<tm>-1</tm>
</Time>
</Profile>
<Project sr="proj0" ve="2">
<cdate>1513568609886</cdate>
<name>Data Remaining</name>
<pids>5</pids>
<tids>31,28</tids>
<Kid sr="Kid">
<launchID>28</launchID>
<pkg>com.mobilescalability.data_remaining</pkg>
<vTarg>29</vTarg>
<vnme>1.0</vnme>
<vnum>5</vnum>
</Kid>
<Img sr="icon" ve="2">
<nme>mw_action_settings_cell</nme>
</Img>
</Project>
<Task sr="task28">
<cdate>1651786310248</cdate>
<edate>1652823927779</edate>
<id>28</id>
<nme>Data Remaining</nme>
<pri>6</pri>
<Action sr="act0" ve="7">
<code>130</code>
<Str sr="arg0" ve="3">Initialize</Str>
<Int sr="arg1">
<var>%priority+1</var>
</Int>
<Int sr="arg10" val="1"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="0"/>
<Int sr="arg6" val="0"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
<Int sr="arg9" val="0"/>
<ConditionList sr="if">
<bool0>Or</bool0>
<bool1>Or</bool1>
<Condition sr="c0" ve="3">
<lhs>%POOL_ID</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
<Condition sr="c1" ve="3">
<lhs>%WARN_AT</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
<Condition sr="c2" ve="3">
<lhs>%TOKEN</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="7">
<code>339</code>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%http_cookies
Cookies
The cookies the server sent in the response in the Cookie:COOKIE_VALUE format. You can use this directly in the 'Headers' field of the HTTP Request action</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1>%http_data
Data
Data that the server responded from the HTTP request.</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2>%http_file_output
File Output
Will always contain the file's full path even if you specified a directory as the File to save.</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3>%http_response_code
Response Code
The HTTP Code the server responded</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4>%http_headers()
Response Headers
The HTTP Headers the server sent in the response. Each header is in the 'key:value' format</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5>%http_response_length
Response Length
The size of the response in bytes</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Int sr="arg1" val="0"/>
<Int sr="arg10" val="0"/>
<Int sr="arg11" val="0"/>
<Int sr="arg12" val="1"/>
<Str sr="arg2" ve="3">https://api.usmobile.com/api/v1/pools/%POOL_ID </Str>
<Str sr="arg3" ve="3">USMAuthorization:Bearer %TOKEN</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="30"/>
<Int sr="arg9" val="0"/>
</Action>
<Action sr="act2" ve="7">
<code>129</code>
<Str sr="arg0" ve="3">const data = JSON.parse(http_data);
var days_remaining = Math.floor((convert(data.renewsOn, 'datetimeToSec') - Date.now() / 1000) / 60 / 60 /24);
var data_remaining = (data.balanceInMB / 1024).toFixed(2)</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act3" ve="7">
<code>779</code>
<Str sr="arg0" ve="3">US Mobile Data Remaining</Str>
<Int sr="arg1" val="0"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%data_remaining</lhs>
<op>6</op>
<rhs>%WARN_AT</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act4" ve="7">
<code>779</code>
<Str sr="arg0" ve="3">US Mobile Data Alert</Str>
<Int sr="arg1" val="0"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%data_remaining</lhs>
<op>7</op>
<rhs>%WARN_AT</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act5" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">US Mobile Data Remaining</Str>
<Str sr="arg1" ve="3">%data_remaining GB, %days_remaining days</Str>
<Str sr="arg10" ve="3"/>
<Str sr="arg11" ve="3">US Mobile Data Remaining</Str>
<Img sr="arg2" ve="2">
<nme>mw_action_settings_cell</nme>
</Img>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="5"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Int sr="arg8" val="0"/>
<Str sr="arg9" ve="3"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%data_remaining</lhs>
<op>7</op>
<rhs>%WARN_AT</rhs>
</Condition>
</ConditionList>
<ListElementItem sr="item0">
<label></label>
</ListElementItem>
</Action>
<Action sr="act6" ve="7">
<code>523</code>
<Str sr="arg0" ve="3">US Mobile Data Alert</Str>
<Str sr="arg1" ve="3">%data_remaining GB, %days_remaining days</Str>
<Str sr="arg10" ve="3"/>
<Str sr="arg11" ve="3">US Mobile Data Alert</Str>
<Img sr="arg2" ve="2">
<nme>mw_action_settings_cell</nme>
</Img>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Int sr="arg8" val="0"/>
<Str sr="arg9" ve="3"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%data_remaining</lhs>
<op>6</op>
<rhs>%WARN_AT</rhs>
</Condition>
</ConditionList>
<ListElementItem sr="item0">
<label></label>
</ListElementItem>
</Action>
<Img sr="icn" ve="2">
<nme>hl_hardware_phone</nme>
</Img>
</Task>
<Task sr="task31">
<cdate>1652730240967</cdate>
<edate>1652823890445</edate>
<id>31</id>
<nme>Initialize</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>360</code>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%input
Input
The text that was inserted in the dialog</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">jwtToken</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3">%TOKEN</Str>
<Int sr="arg4" val="120"/>
<Str sr="arg5" ve="3">524417</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="1"/>
</Action>
<Action sr="act1" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%TOKEN</Str>
<Str sr="arg1" ve="3">%input</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>360</code>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%input
Input
The text that was inserted in the dialog</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">Pool ID</Str>
<Str sr="arg2" ve="3">Log into USMobile, select the pool you want to monitor and get the pool ID from the URL.</Str>
<Str sr="arg3" ve="3">%POOL_ID</Str>
<Int sr="arg4" val="120"/>
<Str sr="arg5" ve="3">524289</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%POOL_ID</Str>
<Str sr="arg1" ve="3">%input</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
<Action sr="act4" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%WARN_AT</Str>
<Str sr="arg1" ve="3">0.5</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%WARN_AT</lhs>
<op>13</op>
<rhs></rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act5" ve="7">
<code>360</code>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%input
Input
The text that was inserted in the dialog</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">Data remaining threshold (GB)</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3">%WARN_AT</Str>
<Int sr="arg4" val="120"/>
<Str sr="arg5" ve="3">12290</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act6" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%WARN_AT</Str>
<Str sr="arg1" ve="3">%input</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<Int sr="arg6" val="1"/>
</Action>
</Task>
</TaskerData>