queclink-parser 1.4.1 → 1.4.3
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 +12 -0
- package/package.json +1 -1
- package/src/gl300.js +1 -1
- package/src/gl50.js +1 -1
- package/src/gmt100.js +1 -1
- package/src/gv200.js +1 -1
- package/src/gv300.js +1 -1
- package/src/gv300w.js +1 -1
- package/src/gv500.js +1 -1
- package/src/gv50p.js +1 -1
- package/src/gv55.js +1 -1
- package/src/gv600w.js +1 -1
- package/src/gv75w.js +1 -1
- package/src/gv800w.js +1 -1
- package/src/utils.js +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
#### 1.4.3 (2023-03-04)
|
|
2
|
+
|
|
3
|
+
##### New Features
|
|
4
|
+
|
|
5
|
+
* **overSpeed:** overspeedtype added to over speed alarm ([fc3554d4](https://github.com/jaayesta/queclink-parser/commit/fc3554d4b48b7da43b62931272fa048b68d1f736))
|
|
6
|
+
|
|
7
|
+
#### 1.4.2 (2023-01-16)
|
|
8
|
+
|
|
9
|
+
##### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **messages:** fixes empty messages in events not supported directly. Adds raw message as message ([fa8eaf92](https://github.com/jaayesta/queclink-parser/commit/fa8eaf92b66623ea6ff53d6febc52e570d16b487))
|
|
12
|
+
|
|
1
13
|
#### 1.4.1 (2022-02-28)
|
|
2
14
|
|
|
3
15
|
##### New Features
|
package/package.json
CHANGED
package/src/gl300.js
CHANGED
package/src/gl50.js
CHANGED
package/src/gmt100.js
CHANGED
package/src/gv200.js
CHANGED
package/src/gv300.js
CHANGED
package/src/gv300w.js
CHANGED
package/src/gv500.js
CHANGED
package/src/gv50p.js
CHANGED
package/src/gv55.js
CHANGED
package/src/gv600w.js
CHANGED
package/src/gv75w.js
CHANGED
package/src/gv800w.js
CHANGED
package/src/utils.js
CHANGED
|
@@ -255,6 +255,7 @@ const getAlarm = (command, report, extra = false) => {
|
|
|
255
255
|
return {
|
|
256
256
|
type: 'Over_Speed',
|
|
257
257
|
status: reportType === 0,
|
|
258
|
+
overSpeedType: 'device',
|
|
258
259
|
message: messages[command][reportType]
|
|
259
260
|
}
|
|
260
261
|
} else if (command === 'GTIGL') {
|
|
@@ -470,10 +471,16 @@ const getAlarm = (command, report, extra = false) => {
|
|
|
470
471
|
return {
|
|
471
472
|
type: 'Device_Geofence'
|
|
472
473
|
}
|
|
474
|
+
} else if (command === 'GTALC' || command === 'GTALM') {
|
|
475
|
+
return {
|
|
476
|
+
type: command,
|
|
477
|
+
status: 'CONFIG',
|
|
478
|
+
message: report
|
|
479
|
+
}
|
|
473
480
|
} else {
|
|
474
481
|
return {
|
|
475
482
|
type: command,
|
|
476
|
-
message: messages[command] ? messages[command] : ''
|
|
483
|
+
message: messages[command] ? messages[command] : report || ''
|
|
477
484
|
}
|
|
478
485
|
}
|
|
479
486
|
}
|