queclink-parser 1.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +405 -0
- package/LICENSE +22 -0
- package/README.md +70 -0
- package/example.js +4 -0
- package/package.json +92 -0
- package/src/gl300.js +378 -0
- package/src/gl50.js +224 -0
- package/src/gmt100.js +486 -0
- package/src/gv200.js +1116 -0
- package/src/gv300.js +934 -0
- package/src/gv300w.js +1313 -0
- package/src/gv500.js +586 -0
- package/src/gv50p.js +513 -0
- package/src/gv55.js +512 -0
- package/src/gv600w.js +997 -0
- package/src/gv75w.js +1294 -0
- package/src/gv800w.js +1035 -0
- package/src/index.js +316 -0
- package/src/messages/en.json +6 -0
- package/src/messages/es.json +150 -0
- package/src/utils.js +592 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
#### 1.3.20 (2021-09-23)
|
|
2
|
+
|
|
3
|
+
##### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **parse:** add end character to all patterns ([44cf0796](https://github.com/jaayesta/queclink-parser/commit/44cf0796f07c5006f12e709a70e02e39b4188c6c))
|
|
6
|
+
|
|
7
|
+
#### 1.3.19 (2021-08-05)
|
|
8
|
+
|
|
9
|
+
##### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **gv600w:** fix parse gv600w GTDAT short format ([bd995505](https://github.com/jaayesta/queclink-parser/commit/bd99550501610c5b9c8843b268e415a3fcb26247))
|
|
12
|
+
|
|
13
|
+
#### 1.3.18 (2021-06-22)
|
|
14
|
+
|
|
15
|
+
##### New Features
|
|
16
|
+
|
|
17
|
+
* **devices:** support for GV600 series added ([4dc0c779](https://github.com/jaayesta/queclink-parser/commit/4dc0c779e2245c7a8802f4e24f222863268e27b9))
|
|
18
|
+
|
|
19
|
+
#### 1.3.17 (2021-04-23)
|
|
20
|
+
|
|
21
|
+
#### 1.3.16 (2020-10-28)
|
|
22
|
+
|
|
23
|
+
#### 1.3.15 (2020-08-13)
|
|
24
|
+
|
|
25
|
+
#### 1.3.14 (2020-07-30)
|
|
26
|
+
|
|
27
|
+
#### 1.3.13 (2020-07-20)
|
|
28
|
+
|
|
29
|
+
#### 1.3.12 (2020-07-13)
|
|
30
|
+
|
|
31
|
+
#### 1.3.11 (2020-02-28)
|
|
32
|
+
|
|
33
|
+
#### 1.3.10 (2020-02-24)
|
|
34
|
+
|
|
35
|
+
#### 1.3.9 (2020-01-31)
|
|
36
|
+
|
|
37
|
+
#### 1.3.8 (2020-01-15)
|
|
38
|
+
|
|
39
|
+
#### 1.3.7 (2020-01-10)
|
|
40
|
+
|
|
41
|
+
#### 1.3.6 (2020-01-09)
|
|
42
|
+
|
|
43
|
+
#### 1.3.5 (2020-01-09)
|
|
44
|
+
|
|
45
|
+
#### 1.3.4 (2019-10-16)
|
|
46
|
+
|
|
47
|
+
#### 1.3.3 (2019-06-05)
|
|
48
|
+
|
|
49
|
+
#### 1.3.2 (2019-06-05)
|
|
50
|
+
|
|
51
|
+
#### 1.3.1 (2019-04-23)
|
|
52
|
+
|
|
53
|
+
### 1.3.0 (2019-04-23)
|
|
54
|
+
|
|
55
|
+
### 1.2.0 (2019-03-07)
|
|
56
|
+
|
|
57
|
+
#### 1.1.4 (2019-01-22)
|
|
58
|
+
|
|
59
|
+
##### Bug Fixes
|
|
60
|
+
|
|
61
|
+
* **reportType:** Report Type parser fixed for GTERI commands. ([2576ec71](https://github.com/jaayesta/queclink-parser/commit/2576ec716feb8b5b198ce8d3d577fdcc42e29183))
|
|
62
|
+
* **GV300W:** GTERI report parser for GV300W with AC100 devices fixed ([fe1d02b0](https://github.com/jaayesta/queclink-parser/commit/fe1d02b085067e52fbeb05b0d2870edb2fe82d56))
|
|
63
|
+
|
|
64
|
+
#### 1.1.3 (2019-01-16)
|
|
65
|
+
|
|
66
|
+
#### 1.1.2 (2019-01-16)
|
|
67
|
+
|
|
68
|
+
#### 1.1.1 (2018-10-10)
|
|
69
|
+
|
|
70
|
+
##### Bug Fixes
|
|
71
|
+
|
|
72
|
+
* **gmt100:** Correct GIS port alarms for gmt100. ([374af391](https://github.com/jaayesta/queclink-parser/commit/374af39106c29d9b4d4e7041cf7dd04b955d3c3c))
|
|
73
|
+
|
|
74
|
+
### 1.1.0 (2018-10-10)
|
|
75
|
+
|
|
76
|
+
##### New Features
|
|
77
|
+
|
|
78
|
+
* **GMT100:** support for NMD alarms added to GMT100 devices. ([d025e5e3](https://github.com/jaayesta/queclink-parser/commit/d025e5e3e2919997b38dac997959605e5ba87d19))
|
|
79
|
+
|
|
80
|
+
#### 1.0.10 (2018-07-24)
|
|
81
|
+
|
|
82
|
+
#### 1.0.9 (2018-07-24)
|
|
83
|
+
|
|
84
|
+
#### 1.0.8 (2018-06-27)
|
|
85
|
+
|
|
86
|
+
#### 1.0.7 (2018-06-11)
|
|
87
|
+
|
|
88
|
+
#### 1.0.6 (2018-06-01)
|
|
89
|
+
|
|
90
|
+
#### 1.0.5 (2018-03-27)
|
|
91
|
+
|
|
92
|
+
#### 1.0.4 (2018-02-01)
|
|
93
|
+
|
|
94
|
+
#### 1.0.3 (2018-01-30)
|
|
95
|
+
|
|
96
|
+
#### 1.0.2 (2018-01-18)
|
|
97
|
+
|
|
98
|
+
#### 1.0.1 (2017-12-31)
|
|
99
|
+
|
|
100
|
+
##### Chores
|
|
101
|
+
|
|
102
|
+
* **package:** update mocha to v4.1.0 ([44212cae](https://github.com/jaayesta/queclink-parser/commit/44212cae52ffd11458fb566771f19a5644a06d1b))
|
|
103
|
+
|
|
104
|
+
##### Bug Fixes
|
|
105
|
+
|
|
106
|
+
* **parser:** fix parser GTINF with invalid data ([517daf67](https://github.com/jaayesta/queclink-parser/commit/517daf674d7be7a31a38d1a167b57acfa2aea55b))
|
|
107
|
+
|
|
108
|
+
## 1.0.0 (2017-12-28)
|
|
109
|
+
|
|
110
|
+
##### Chores
|
|
111
|
+
|
|
112
|
+
* **package:** update dependencies ([b785d952](https://github.com/jaayesta/queclink-parser/commit/b785d95241ce4603d5a0dcf45081726142dd5510))
|
|
113
|
+
|
|
114
|
+
##### New Features
|
|
115
|
+
|
|
116
|
+
* **package:**
|
|
117
|
+
* update min node version to v8 ([d3ab7fc9](https://github.com/jaayesta/queclink-parser/commit/d3ab7fc931edb45032462a1c1e253db4f3a85388))
|
|
118
|
+
* remove lodash and moment ([b4c2a655](https://github.com/jaayesta/queclink-parser/commit/b4c2a65528ad0f5a3602f09326fc1b5e5b939264))
|
|
119
|
+
|
|
120
|
+
##### Code Style Changes
|
|
121
|
+
|
|
122
|
+
* **js:** migrate to standardjs ([27c9edcb](https://github.com/jaayesta/queclink-parser/commit/27c9edcb8f4a486925e82aa409e98f2c78aae6a3))
|
|
123
|
+
|
|
124
|
+
#### 0.3.34 (2017-8-23)
|
|
125
|
+
|
|
126
|
+
#### 0.3.33 (2017-6-30)
|
|
127
|
+
|
|
128
|
+
#### 0.3.32 (2017-5-5)
|
|
129
|
+
|
|
130
|
+
#### 0.3.31 (2017-5-5)
|
|
131
|
+
|
|
132
|
+
#### 0.3.30 (2017-4-13)
|
|
133
|
+
|
|
134
|
+
#### 0.3.29 (2017-3-17)
|
|
135
|
+
|
|
136
|
+
#### 0.3.29 (2017-3-17)
|
|
137
|
+
|
|
138
|
+
#### 0.3.28 (2017-3-2)
|
|
139
|
+
|
|
140
|
+
#### 0.3.27 (2017-2-23)
|
|
141
|
+
|
|
142
|
+
#### 0.3.26 (2017-2-22)
|
|
143
|
+
|
|
144
|
+
#### 0.3.25 (2017-2-18)
|
|
145
|
+
|
|
146
|
+
#### 0.3.24 (2017-2-17)
|
|
147
|
+
|
|
148
|
+
#### 0.3.23 (2017-2-17)
|
|
149
|
+
|
|
150
|
+
#### 0.3.22 (2017-2-17)
|
|
151
|
+
|
|
152
|
+
#### 0.3.21 (2017-2-17)
|
|
153
|
+
|
|
154
|
+
##### Chores
|
|
155
|
+
|
|
156
|
+
* **package:** Upgrade eslint to v3.15.0 ([a03250e6](https://github.com/jaayesta/queclink-parser/commit/a03250e60da179bb7a081327934841b132fc5d93))
|
|
157
|
+
* **nvm:** Update to node v7 ([7c333936](https://github.com/jaayesta/queclink-parser/commit/7c333936e8afc76e0815991cde72b043249aea34))
|
|
158
|
+
|
|
159
|
+
##### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* **parser:** Se agrego validacion del dato parsedData[24]. Fix #9 ([9404427a](https://github.com/jaayesta/queclink-parser/commit/9404427a2caadec022253bb9378c3f70424f6bc9))
|
|
162
|
+
|
|
163
|
+
#### 0.3.20 (2017-2-2)
|
|
164
|
+
|
|
165
|
+
#### 0.3.19 (2017-1-30)
|
|
166
|
+
|
|
167
|
+
#### 0.3.19 (2017-1-30)
|
|
168
|
+
|
|
169
|
+
#### 0.3.18 (2017-1-26)
|
|
170
|
+
|
|
171
|
+
#### 0.3.17 (2017-1-25)
|
|
172
|
+
|
|
173
|
+
#### 0.3.16 (2017-1-25)
|
|
174
|
+
|
|
175
|
+
#### 0.3.15 (2017-1-14)
|
|
176
|
+
|
|
177
|
+
##### Chores
|
|
178
|
+
|
|
179
|
+
* **travis:**
|
|
180
|
+
* Add cache yarn ([fc970039](https://github.com/jaayesta/queclink-parser/commit/fc9700396c40c2f5269b0d03bf56fc3a85339dd9))
|
|
181
|
+
* Update node versions ([2a8027f1](https://github.com/jaayesta/queclink-parser/commit/2a8027f1e19037366f77fda260905c0ad5cd6d22))
|
|
182
|
+
* **package:**
|
|
183
|
+
* Upgrade min node version to v6 ([365a40ff](https://github.com/jaayesta/queclink-parser/commit/365a40ff82467c42f9e8a5a31621dc29cb2f5233))
|
|
184
|
+
* Update dependencies ([398ec2b8](https://github.com/jaayesta/queclink-parser/commit/398ec2b849b9174b63469ae9fc84a5e52c6aa620))
|
|
185
|
+
|
|
186
|
+
#### 0.3.14 (2017-1-13)
|
|
187
|
+
|
|
188
|
+
#### 0.3.13 (2016-12-7)
|
|
189
|
+
|
|
190
|
+
##### Chores
|
|
191
|
+
|
|
192
|
+
* **package:** Update dependencies ([e80c849e](https://github.com/jaayesta/queclink-parser/commit/e80c849ee245a1f3e7e6b7b65a110376bd974f3e))
|
|
193
|
+
|
|
194
|
+
##### Bug Fixes
|
|
195
|
+
|
|
196
|
+
* **parser:** Return UNKNOWN if GV200 strange data ([57a401fb](https://github.com/jaayesta/queclink-parser/commit/57a401fbe4c6146df8e875f5860797cac277468a))
|
|
197
|
+
|
|
198
|
+
#### 0.3.12 (2016-11-29)
|
|
199
|
+
|
|
200
|
+
#### 0.3.11 (2016-11-25)
|
|
201
|
+
|
|
202
|
+
#### 0.3.10 (2016-11-18)
|
|
203
|
+
|
|
204
|
+
#### 0.3.9 (2016-11-18)
|
|
205
|
+
|
|
206
|
+
#### 0.3.8 (2016-11-11)
|
|
207
|
+
|
|
208
|
+
#### 0.3.7 (2016-11-3)
|
|
209
|
+
|
|
210
|
+
#### 0.3.6 (2016-11-3)
|
|
211
|
+
|
|
212
|
+
#### 0.3.5 (2016-11-3)
|
|
213
|
+
|
|
214
|
+
#### 0.3.4 (2016-11-2)
|
|
215
|
+
|
|
216
|
+
#### 0.3.3 (2016-11-2)
|
|
217
|
+
|
|
218
|
+
#### 0.3.2 (2016-11-2)
|
|
219
|
+
|
|
220
|
+
#### 0.3.1 (2016-11-2)
|
|
221
|
+
|
|
222
|
+
### 0.3.0 (2016-11-2)
|
|
223
|
+
|
|
224
|
+
##### Chores
|
|
225
|
+
|
|
226
|
+
* **package:**
|
|
227
|
+
* Update yarn ([0dc6ea87](https://github.com/jaayesta/queclink-parser/commit/0dc6ea8701d2e2e289535de8a2f72cb226d80dbe))
|
|
228
|
+
* Update eslint ([0ab45caa](https://github.com/jaayesta/queclink-parser/commit/0ab45caac1a5ac6155807dc448a4dcb2d8679bd7))
|
|
229
|
+
* **test:** Add alarm tests ([f0357dd0](https://github.com/jaayesta/queclink-parser/commit/f0357dd0d332edaa95a387f68308412ea45c993f))
|
|
230
|
+
|
|
231
|
+
##### New Features
|
|
232
|
+
|
|
233
|
+
* **messages:**
|
|
234
|
+
* Add message to alarm ([38a19655](https://github.com/jaayesta/queclink-parser/commit/38a19655bde2bd0fd6769e7ad80095f208596fe7))
|
|
235
|
+
* Add new spanish messages ([33103a42](https://github.com/jaayesta/queclink-parser/commit/33103a4261f2a6110840d7caa5602669a6391643))
|
|
236
|
+
|
|
237
|
+
##### Bug Fixes
|
|
238
|
+
|
|
239
|
+
* **parser:** Fix parse alarms ([2de4dc46](https://github.com/jaayesta/queclink-parser/commit/2de4dc4625a9a916a815c41edc4ef2413aa58589))
|
|
240
|
+
|
|
241
|
+
#### 0.2.24 (2016-10-28)
|
|
242
|
+
|
|
243
|
+
#### 0.2.23 (2016-10-28)
|
|
244
|
+
|
|
245
|
+
#### 0.2.22 (2016-10-28)
|
|
246
|
+
|
|
247
|
+
#### 0.2.21 (2016-10-28)
|
|
248
|
+
|
|
249
|
+
#### 0.2.20 (2016-10-24)
|
|
250
|
+
|
|
251
|
+
##### Bug Fixes
|
|
252
|
+
|
|
253
|
+
* **parser:** Fix parse coordinates ([28c94cae](https://github.com/jaayesta/queclink-parser/commit/28c94cae4f773c50464da012763ee417950aff88))
|
|
254
|
+
|
|
255
|
+
#### 0.2.19 (2016-10-24)
|
|
256
|
+
|
|
257
|
+
##### Bug Fixes
|
|
258
|
+
|
|
259
|
+
* **parser:** Fix parse coordinates ([7601677c](https://github.com/jaayesta/queclink-parser/commit/7601677c4050ebb4bc9cf8709bae7530f5a8f18a))
|
|
260
|
+
|
|
261
|
+
#### 0.2.18 (2016-10-24)
|
|
262
|
+
|
|
263
|
+
##### Bug Fixes
|
|
264
|
+
|
|
265
|
+
* **parser:** Fix parse coordinates ([0e493ed6](https://github.com/jaayesta/queclink-parser/commit/0e493ed601d88e352093abf2f01acc04a1328c5b))
|
|
266
|
+
|
|
267
|
+
#### 0.2.17 (2016-10-24)
|
|
268
|
+
|
|
269
|
+
##### Chores
|
|
270
|
+
|
|
271
|
+
* **package:** Update moment ([081568e5](https://github.com/jaayesta/queclink-parser/commit/081568e51610ad16f4fe57cd06eb7f2ad4f8f63f))
|
|
272
|
+
|
|
273
|
+
##### Bug Fixes
|
|
274
|
+
|
|
275
|
+
* **parser:** Acept duration and toggle in parseCommand. Fix serial and counter in parse ack ([205257ee](https://github.com/jaayesta/queclink-parser/commit/205257ee55948b8e47d0092fcf614b0cbbcd7eea))
|
|
276
|
+
|
|
277
|
+
#### 0.2.16 (2016-10-24)
|
|
278
|
+
|
|
279
|
+
#### 0.2.15 (2016-10-24)
|
|
280
|
+
|
|
281
|
+
##### Bug Fixes
|
|
282
|
+
|
|
283
|
+
* **test:** Fix input status test ([1e37125b](https://github.com/jaayesta/queclink-parser/commit/1e37125b04a40603050cdfa15bbc118f88a660e1))
|
|
284
|
+
|
|
285
|
+
#### 0.2.14 (2016-10-20)
|
|
286
|
+
|
|
287
|
+
#### 0.2.13 (2016-10-20)
|
|
288
|
+
|
|
289
|
+
#### 0.2.12 (2016-10-19)
|
|
290
|
+
|
|
291
|
+
#### 0.2.11 (2016-10-18)
|
|
292
|
+
|
|
293
|
+
##### Chores
|
|
294
|
+
|
|
295
|
+
* **package:**
|
|
296
|
+
* Update yarn.lock ([6d1c2bfa](https://github.com/jaayesta/queclink-parser/commit/6d1c2bfadca2b1db3cbbb4b0898f729d3394fb3c))
|
|
297
|
+
* Update eslint ([49d7af96](https://github.com/jaayesta/queclink-parser/commit/49d7af967cc9d396fd06ef9027f9ae732d6f7008))
|
|
298
|
+
* Add contributors ([e5257002](https://github.com/jaayesta/queclink-parser/commit/e525700282cfb3f21b4d6e3c8aabd79a46cb694a))
|
|
299
|
+
* Update dependencies ([ee6ae837](https://github.com/jaayesta/queclink-parser/commit/ee6ae837a9ac0ab02c5f7784bd9c48af95211fa3))
|
|
300
|
+
* Update dependencies ([776e2e70](https://github.com/jaayesta/queclink-parser/commit/776e2e70ae69b30e37e4d187b1ff20c5470c05c7))
|
|
301
|
+
* Add support to yarnpkg ([1ccafcb9](https://github.com/jaayesta/queclink-parser/commit/1ccafcb95cceda79a806b0c51b3854be24787081))
|
|
302
|
+
* update mocha to version 3.1.2 ([5ac65abc](https://github.com/jaayesta/queclink-parser/commit/5ac65abc83e9838b8cee901a3561a5448fe15a61))
|
|
303
|
+
* update mocha to version 3.1.1 ([6f6cb6db](https://github.com/jaayesta/queclink-parser/commit/6f6cb6db85ac6c3bff6901985e38b876bf9607e4))
|
|
304
|
+
* update lodash to version 4.16.4 ([6cebd98a](https://github.com/jaayesta/queclink-parser/commit/6cebd98a3e88c2a6a6382250c17dace699f85feb))
|
|
305
|
+
* update eslint to version 3.7.1 ([5c7f034f](https://github.com/jaayesta/queclink-parser/commit/5c7f034ffc124785f844ae17bbaecbf9b0757f65))
|
|
306
|
+
* update lodash to version 4.16.3 ([2aec0db5](https://github.com/jaayesta/queclink-parser/commit/2aec0db5e64888cfbc0b62c85d336787b3d3dfd9))
|
|
307
|
+
* update eslint to version 3.7.0 ([13880b14](https://github.com/jaayesta/queclink-parser/commit/13880b14830c69f69e4104ee4824e1cff0768878))
|
|
308
|
+
|
|
309
|
+
##### New Features
|
|
310
|
+
|
|
311
|
+
* **parser:** Add manufacturer to data ([3f49062c](https://github.com/jaayesta/queclink-parser/commit/3f49062cb83375390a4cd71fe53a1cceae293a9a))
|
|
312
|
+
|
|
313
|
+
#### 0.2.10 (2016-10-13)
|
|
314
|
+
|
|
315
|
+
#### 0.2.9 (2016-10-13)
|
|
316
|
+
|
|
317
|
+
##### Chores
|
|
318
|
+
|
|
319
|
+
* **messages:** Add "en" and "es" messages ([95b8c869](https://github.com/jaayesta/queclink-parser/commit/95b8c86977154aedb667c2213c3737bcc80c3bb9))
|
|
320
|
+
|
|
321
|
+
##### New Features
|
|
322
|
+
|
|
323
|
+
* **parser:** Add message to ack commands ([23d87951](https://github.com/jaayesta/queclink-parser/commit/23d87951f8f64ec2fa7796bbb69d4ae1c9786b7d))
|
|
324
|
+
|
|
325
|
+
#### 0.2.8 (2016-9-12)
|
|
326
|
+
|
|
327
|
+
#### 0.2.7 (2016-9-12)
|
|
328
|
+
|
|
329
|
+
##### Bug Fixes
|
|
330
|
+
|
|
331
|
+
* **parse:** Only parse if queclink valid data. ([c3cc7915](https://github.com/jaayesta/queclink-parser/commit/c3cc7915faf1d468dc44b7e1f9217c3099dd4055))
|
|
332
|
+
|
|
333
|
+
#### 0.2.6 (2016-9-5)
|
|
334
|
+
|
|
335
|
+
#### 0.2.5 (2016-8-31)
|
|
336
|
+
|
|
337
|
+
#### 0.2.4 (2016-8-31)
|
|
338
|
+
|
|
339
|
+
#### 0.2.3 (2016-8-30)
|
|
340
|
+
|
|
341
|
+
##### Bug Fixes
|
|
342
|
+
|
|
343
|
+
* **parser:** Fix getimei and add tests ([e05e1f23](https://github.com/jaayesta/queclink-parser/commit/e05e1f237fc78158661b9cd702ab59fbd5ac1489))
|
|
344
|
+
|
|
345
|
+
#### 0.2.2 (2016-8-30)
|
|
346
|
+
|
|
347
|
+
#### 0.2.1 (2016-8-25)
|
|
348
|
+
|
|
349
|
+
### 0.2.0 (2016-8-23)
|
|
350
|
+
|
|
351
|
+
#### 0.1.3 (2016-8-11)
|
|
352
|
+
|
|
353
|
+
#### 0.1.2 (2016-8-11)
|
|
354
|
+
|
|
355
|
+
##### Chores
|
|
356
|
+
|
|
357
|
+
* **src:** Only import extend module from lodash ([90108cb3](https://github.com/jaayesta/queclink-parser/commit/90108cb3f42576f7378b8e52766697398d344e4b))
|
|
358
|
+
* **test:** Add tests ([7737d74f](https://github.com/jaayesta/queclink-parser/commit/7737d74f3cafb57eaa490d58c5e28911364497ac))
|
|
359
|
+
* **package:** Update dependencies and add devDependencies for tests ([f12f1449](https://github.com/jaayesta/queclink-parser/commit/f12f1449447bdd46acd81e7eb2b66d1f46247071))
|
|
360
|
+
|
|
361
|
+
##### Bug Fixes
|
|
362
|
+
|
|
363
|
+
* **getAckCommand:** Fix get command ([b7878fa9](https://github.com/jaayesta/queclink-parser/commit/b7878fa9de0797bf6bda9440a1068d49f3341233))
|
|
364
|
+
|
|
365
|
+
#### 0.1.1 (2016-08-11)
|
|
366
|
+
|
|
367
|
+
* Added sos in status and mV to V in analog inputs in GV200 ([4bea809](https://github.com/jaayesta/queclink-parser/commit/4bea809))
|
|
368
|
+
* Fixed error in input status. ([ae876ce](https://github.com/jaayesta/queclink-parser/commit/ae876ce))
|
|
369
|
+
* Idling duration to int. ([99d08f5](https://github.com/jaayesta/queclink-parser/commit/99d08f5))
|
|
370
|
+
* Some data validation added and parse hex int lac, cell id and parse int mcc and mnc. ([f4d15b2](https://github.com/jaayesta/queclink-parser/commit/f4d15b2))
|
|
371
|
+
* Suport added for GPS Status alarms. ([d5c21b7](https://github.com/jaayesta/queclink-parser/commit/d5c21b7))
|
|
372
|
+
* Support added to a couple of alarms missed before. ([7d10c2a](https://github.com/jaayesta/queclink-parser/commit/7d10c2a))
|
|
373
|
+
|
|
374
|
+
### 0.1.0 (2016-08-10)
|
|
375
|
+
|
|
376
|
+
* Added support for new version devices GV200 and GV300 and deleted heartbeat unuseful data. ([58da8d2](https://github.com/jaayesta/queclink-parser/commit/58da8d2))
|
|
377
|
+
* Fixed parse Outputs commands. ([764b829](https://github.com/jaayesta/queclink-parser/commit/764b829))
|
|
378
|
+
* Remove data from readme. ([bd2c4dc](https://github.com/jaayesta/queclink-parser/commit/bd2c4dc))
|
|
379
|
+
|
|
380
|
+
#### 0.0.5 (2016-07-29)
|
|
381
|
+
|
|
382
|
+
* Added support to GV200. Fixed some errors in input/output status and altitude always float. ([ea1ba57](https://github.com/jaayesta/queclink-parser/commit/ea1ba57))
|
|
383
|
+
|
|
384
|
+
#### 0.0.4 (2016-07-28)
|
|
385
|
+
|
|
386
|
+
* Fixed error in some alarm. Deleted ERI message support. ([324cff7](https://github.com/jaayesta/queclink-parser/commit/324cff7))
|
|
387
|
+
* Fixed error with buffer data. ([8a136fe](https://github.com/jaayesta/queclink-parser/commit/8a136fe))
|
|
388
|
+
* Fixed some jamming report parser. ([58bafe3](https://github.com/jaayesta/queclink-parser/commit/58bafe3))
|
|
389
|
+
* No parseFloat to hourmeter. ([e86b6b7](https://github.com/jaayesta/queclink-parser/commit/e86b6b7))
|
|
390
|
+
* Some validations added and use info in readme. ([86afcf8](https://github.com/jaayesta/queclink-parser/commit/86afcf8))
|
|
391
|
+
|
|
392
|
+
#### 0.0.3 (2016-07-27)
|
|
393
|
+
|
|
394
|
+
* Add suport to buffer and add information to protocolversion in returned data. ([44f4cf6](https://github.com/jaayesta/queclink-parser/commit/44f4cf6))
|
|
395
|
+
* Fixed getAlarm ([3c18b5d](https://github.com/jaayesta/queclink-parser/commit/3c18b5d))
|
|
396
|
+
* Uncomment parse GMT100 in parse function and fix errors. ([c5fc4fc](https://github.com/jaayesta/queclink-parser/commit/c5fc4fc))
|
|
397
|
+
|
|
398
|
+
#### 0.0.2 (2016-07-27)
|
|
399
|
+
|
|
400
|
+
* Fix dependencies error. ([ae9cffe](https://github.com/jaayesta/queclink-parser/commit/ae9cffe))
|
|
401
|
+
* Fix errors and suport to GMT100 devices added. ([cd2a566](https://github.com/jaayesta/queclink-parser/commit/cd2a566))
|
|
402
|
+
|
|
403
|
+
#### 0.0.1 (2016-07-27)
|
|
404
|
+
|
|
405
|
+
* First commit. ([b000eb1](https://github.com/jaayesta/queclink-parser/commit/b000eb1))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Jose Andres Ayestaran
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# queclink-parser
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/queclink-parser)
|
|
4
|
+
[](https://www.npmjs.com/package/queclink-parser)
|
|
5
|
+
[](https://david-dm.org/jaayesta/queclink-parser#info=dependencies)
|
|
6
|
+
[](https://david-dm.org/jaayesta/queclink-parser#info=devDependencies)
|
|
7
|
+
|
|
8
|
+
> Parses raw data from Queclink devices (TCP). Devices supported: GV55, GV200, GV300, GV75W, GV300W, GV500, GV600W, GV800W, GMT100, GL50, GL50B, GL300, GL300W
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm i -S queclink-parser
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Use
|
|
17
|
+
|
|
18
|
+
[Try on Tonic](https://tonicdev.com/npm/queclink-parser)
|
|
19
|
+
```js
|
|
20
|
+
|
|
21
|
+
const queclink = require('queclink-parser');
|
|
22
|
+
|
|
23
|
+
const raw = new Buffer('+RESP:GTFRI,350302,867844003012625,,12372,10,1,0,0.0,0,820.8,-70.514872,-33.361021,20160811154617,0730,0002,7410,C789,00,0.0,00000:15:30,2788,705,164,0D,00,,,20160811154651,061D$');
|
|
24
|
+
const data = queclink.parse(raw);
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
{ raw: '+RESP:GTFRI,350302,867844003012625,,12372,10,1,0,0.0,0,820.8,-70.514872,-33.361021,20160811154617,0730,0002,7410,C789,00,0.0,00000:15:30,2788,705,164,0D,00,,,20160811154651,061D$',
|
|
28
|
+
manufacturer: 'queclink',
|
|
29
|
+
device: 'Queclink-GV200',
|
|
30
|
+
type: 'data',
|
|
31
|
+
imei: '867844003012625',
|
|
32
|
+
protocolVersion: { raw: '350302', deviceType: 'GV200', version: '3.2' },
|
|
33
|
+
temperature: null,
|
|
34
|
+
history: false,
|
|
35
|
+
sentTime: 2016-08-11T15:46:51.000Z,
|
|
36
|
+
serialId: 1565,
|
|
37
|
+
alarm: { type: 'Gps' },
|
|
38
|
+
loc: { type: 'Point', coordinates: [ -70.514872, -33.361021 ] },
|
|
39
|
+
speed: 0,
|
|
40
|
+
gpsStatus: true,
|
|
41
|
+
hdop: 0,
|
|
42
|
+
status:
|
|
43
|
+
{ raw: '0D00',
|
|
44
|
+
sos: false,
|
|
45
|
+
input: { '1': true, '2': false, '3': true, '4': true },
|
|
46
|
+
output: { '1': false, '2': false, '3': false, '4': false },
|
|
47
|
+
charge: true },
|
|
48
|
+
azimuth: 0,
|
|
49
|
+
altitude: 820.8,
|
|
50
|
+
datetime: 2016-08-11T15:46:17.000Z,
|
|
51
|
+
voltage:
|
|
52
|
+
{ battery: null,
|
|
53
|
+
inputCharge: 12.372,
|
|
54
|
+
ada: 2.788,
|
|
55
|
+
adb: 0.705,
|
|
56
|
+
adc: 0.164 },
|
|
57
|
+
mcc: 730,
|
|
58
|
+
mnc: 2,
|
|
59
|
+
lac: 29712,
|
|
60
|
+
cid: 51081,
|
|
61
|
+
odometer: 0,
|
|
62
|
+
hourmeter: 0.25833333333333336
|
|
63
|
+
}
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
[MIT](https://tldrlegal.com/license/mit-license)
|
package/example.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "queclink-parser",
|
|
3
|
+
"version": "1.3.20",
|
|
4
|
+
"description": "Parse raw data from Queclink devices",
|
|
5
|
+
"main": "src",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"lint": "eslint . --fix",
|
|
8
|
+
"format": "prettier-standard 'src/**/*.js' 'test/**/*.js'",
|
|
9
|
+
"precommit": "lint-staged",
|
|
10
|
+
"pretest": "npm run lint -s && npm run format -s",
|
|
11
|
+
"test": "istanbul cover _mocha",
|
|
12
|
+
"release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags && npm publish",
|
|
13
|
+
"release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags && npm publish",
|
|
14
|
+
"release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags && npm publish"
|
|
15
|
+
},
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=8"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "https://github.com/jaayesta/queclink-parser.git"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"queclink",
|
|
25
|
+
"avl",
|
|
26
|
+
"gps",
|
|
27
|
+
"tracking",
|
|
28
|
+
"parser"
|
|
29
|
+
],
|
|
30
|
+
"author": "Jose Andres Ayestaran <ja.ayestaran@gmail.com>",
|
|
31
|
+
"contributors": [
|
|
32
|
+
{
|
|
33
|
+
"name": "Leonardo Gatica",
|
|
34
|
+
"email": "lgatica@protonmail.com",
|
|
35
|
+
"url": "https://about.me/lgatica"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/jaayesta/queclink-parser/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/jaayesta/queclink-parser#readme",
|
|
43
|
+
"dependencies": {},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"chai": "4.1.2",
|
|
46
|
+
"eslint": "4.14.0",
|
|
47
|
+
"eslint-config-standard": "11.0.0-beta.0",
|
|
48
|
+
"eslint-plugin-import": "2.8.0",
|
|
49
|
+
"eslint-plugin-node": "5.2.1",
|
|
50
|
+
"eslint-plugin-promise": "3.6.0",
|
|
51
|
+
"eslint-plugin-standard": "3.0.1",
|
|
52
|
+
"generate-changelog": "1.7.0",
|
|
53
|
+
"husky": "0.14.3",
|
|
54
|
+
"istanbul": "0.4.5",
|
|
55
|
+
"lint-staged": "6.0.0",
|
|
56
|
+
"mocha": "4.1.0",
|
|
57
|
+
"prettier-standard": "8.0.0"
|
|
58
|
+
},
|
|
59
|
+
"eslintConfig": {
|
|
60
|
+
"extends": "standard",
|
|
61
|
+
"rules": {
|
|
62
|
+
"no-console": [
|
|
63
|
+
"error"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"eslintIgnore": [
|
|
68
|
+
"coverage",
|
|
69
|
+
"example.js"
|
|
70
|
+
],
|
|
71
|
+
"lint-staged": {
|
|
72
|
+
"linters": {
|
|
73
|
+
"src/**/*.js": [
|
|
74
|
+
"eslint --fix",
|
|
75
|
+
"prettier-standard",
|
|
76
|
+
"git add"
|
|
77
|
+
],
|
|
78
|
+
"test/**/*.js": [
|
|
79
|
+
"eslint --fix",
|
|
80
|
+
"prettier-standard",
|
|
81
|
+
"git add"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"tonicExampleFilename": "example.js",
|
|
86
|
+
"renovate": {
|
|
87
|
+
"automerge": "minor",
|
|
88
|
+
"extends": [
|
|
89
|
+
":library"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
}
|