queclink-parser 1.9.23 → 1.9.25

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 CHANGED
@@ -1,3 +1,15 @@
1
+ #### 1.9.25 (2026-03-12)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **hbe:** se quita velocidad en mensaje HBE. ([b90ffe67](https://github.com/jaayesta/queclink-parser/commit/b90ffe6701b0fdbed09a54aeff1620ee9a86eee5))
6
+
7
+ #### 1.9.24 (2026-03-12)
8
+
9
+ ##### Bug Fixes
10
+
11
+ * **messages:** se corrige mensaje para HBE ([b5abf3c4](https://github.com/jaayesta/queclink-parser/commit/b5abf3c4fec9b5802044a8daf8cd01fcd6c17171))
12
+
1
13
  #### 1.9.23 (2026-03-11)
2
14
 
3
15
  ##### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "queclink-parser",
3
- "version": "1.9.23",
3
+ "version": "1.9.25",
4
4
  "description": "Parse raw data from Queclink devices",
5
5
  "main": "src",
6
6
  "scripts": {
package/src/gv310lau.js CHANGED
@@ -3164,7 +3164,7 @@ const parse = raw => {
3164
3164
  alarm: utils.getAlarm(
3165
3165
  command[1],
3166
3166
  [parsedData[5], parsedData[6]],
3167
- [maxAcc, duration, speed]
3167
+ [maxAcc, duration]
3168
3168
  ),
3169
3169
  loc: {
3170
3170
  type: 'Point',
package/src/gv57cg.js CHANGED
@@ -2453,7 +2453,7 @@ const parse = raw => {
2453
2453
  alarm: utils.getAlarm(
2454
2454
  command[1],
2455
2455
  [parsedData[5], parsedData[6]],
2456
- [maxAcc, duration, speed]
2456
+ [maxAcc, duration]
2457
2457
  ),
2458
2458
  loc: {
2459
2459
  type: 'Point',
package/src/gv58lau.js CHANGED
@@ -3389,7 +3389,7 @@ const parse = raw => {
3389
3389
  alarm: utils.getAlarm(
3390
3390
  command[1],
3391
3391
  [parsedData[5], parsedData[6]],
3392
- [maxAcc, duration, speed]
3392
+ [maxAcc, duration]
3393
3393
  ),
3394
3394
  loc: {
3395
3395
  type: 'Point',
@@ -214,12 +214,12 @@
214
214
  "5": "Comportamiento Brusco Desconocido"
215
215
  },
216
216
  "GTHBE": {
217
- "0": "Fin de Frenada Brusca",
218
- "1": "Fin de Aceleración Brusca",
219
- "2": "Fin de Giro Brusco",
220
- "3": "Fin de Frenada Brusca Girando",
221
- "4": "Fin de Aceleración Brusca Girando",
222
- "5": "Fin de Comportamiento Brusco Desconocido"
217
+ "0": "Frenada Brusca de X m/s² durante Z segundos",
218
+ "1": "Aceleración Brusca de X m/s² durante Z segundos",
219
+ "2": "Giro Brusco de X m/s² durante Z segundos",
220
+ "3": "Frenada Brusca Girando de X m/s² durante Z segundos",
221
+ "4": "Aceleración Brusca Girando de X m/s² durante Z segundos",
222
+ "5": "Comportamiento Brusco Desconocido"
223
223
  },
224
224
  "GTDOG": {
225
225
  "1": "Dispositivo reiniciado por frecuencia configurada",
package/src/utils.js CHANGED
@@ -1851,7 +1851,6 @@ const getAlarm = (command, report, extra = false) => {
1851
1851
  let y = getAccelerationMagnitude(extra[0].substring(4, 8), 4)
1852
1852
  let z = getAccelerationMagnitude(extra[0].substring(8, 12), 4)
1853
1853
  let duration = extra[1]
1854
- let speed = extra[2]
1855
1854
  let magnitude = Number(
1856
1855
  Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)).toFixed(2)
1857
1856
  ).toString()
@@ -1860,12 +1859,10 @@ const getAlarm = (command, report, extra = false) => {
1860
1859
  status: parseInt(report[1], 10),
1861
1860
  calibration: report[0] === '2',
1862
1861
  duration: duration,
1863
- speed: speed,
1864
1862
  magnitude: magnitude,
1865
1863
  xyz: { x: x, y: y, z: z },
1866
1864
  message: messages[command][report[1]]
1867
1865
  .replace('X', magnitude)
1868
- .replace('Y', speed)
1869
1866
  .replace('Z', duration)
1870
1867
  }
1871
1868
  } else if (command === 'GTCRA') {