queclink-parser 1.9.26 → 1.9.28

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,17 @@
1
+ #### 1.9.28 (2026-03-17)
2
+
3
+ ##### Bug Fixes
4
+
5
+ * **gl533cg:** se agrega campo en alarma PNR y se modifican mensajes. ([dd10d272](https://github.com/jaayesta/queclink-parser/commit/dd10d2721d08d87e5275b7a617ac305a3a901ae6))
6
+
7
+ #### 1.9.27 (2026-03-16)
8
+
9
+ ##### Bug Fixes
10
+
11
+ * **hbe:**
12
+ * se corrige unidad de medida de duración del evento ([6ef963a2](https://github.com/jaayesta/queclink-parser/commit/6ef963a27ddcfce95a46573d413723f258fdff6c))
13
+ * se corrige duración del evento ([2761d04b](https://github.com/jaayesta/queclink-parser/commit/2761d04bd5eb6e327f981f7a57e836b93ac7dbf6))
14
+
1
15
  #### 1.9.26 (2026-03-13)
2
16
 
3
17
  ##### New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "queclink-parser",
3
- "version": "1.9.26",
3
+ "version": "1.9.28",
4
4
  "description": "Parse raw data from Queclink devices",
5
5
  "main": "src",
6
6
  "scripts": {
package/src/gv310lau.js CHANGED
@@ -3130,7 +3130,9 @@ const parse = raw => {
3130
3130
  let maxAcc = parsedData[index + 1] !== '' ? parsedData[index + 1] : null
3131
3131
  let avgAcc = parsedData[index + 2] !== '' ? parsedData[index + 2] : null
3132
3132
  let duration =
3133
- parsedData[index + 3] !== '' ? parseFloat(parsedData[index + 3]) : null
3133
+ parsedData[index + 3] !== ''
3134
+ ? parseFloat(parsedData[index + 3]) / 100
3135
+ : null
3134
3136
  let speed = parsedData[8] !== '' ? parseFloat(parsedData[8]) : null
3135
3137
 
3136
3138
  data = Object.assign(data, {
package/src/gv57cg.js CHANGED
@@ -2446,7 +2446,9 @@ const parse = raw => {
2446
2446
  let maxAcc = parsedData[index + 1] !== '' ? parsedData[index + 1] : null
2447
2447
  let avgAcc = parsedData[index + 2] !== '' ? parsedData[index + 2] : null
2448
2448
  let duration =
2449
- parsedData[index + 3] !== '' ? parseFloat(parsedData[index + 3]) : null
2449
+ parsedData[index + 3] !== ''
2450
+ ? parseFloat(parsedData[index + 3]) / 100
2451
+ : null
2450
2452
  let speed = parsedData[8] !== '' ? parseFloat(parsedData[8]) : null
2451
2453
 
2452
2454
  data = Object.assign(data, {
package/src/gv58lau.js CHANGED
@@ -3381,8 +3381,12 @@ const parse = raw => {
3381
3381
  ? parsedData[index + 3] !== '' ? parsedData[index + 3] : null
3382
3382
  : parsedData[index + 2] !== '' ? parsedData[index + 2] : null
3383
3383
  let duration = includeStatus
3384
- ? parsedData[index + 4] !== '' ? parseFloat(parsedData[index + 4]) : null
3385
- : parsedData[index + 3] !== '' ? parseFloat(parsedData[index + 3]) : null
3384
+ ? parsedData[index + 4] !== ''
3385
+ ? parseFloat(parsedData[index + 4]) / 100
3386
+ : null
3387
+ : parsedData[index + 3] !== ''
3388
+ ? parseFloat(parsedData[index + 3]) / 100
3389
+ : null
3386
3390
  let speed = parsedData[8] !== '' ? parseFloat(parsedData[8]) : null
3387
3391
 
3388
3392
  data = Object.assign(data, {
@@ -365,8 +365,8 @@
365
365
  "14": "Eliminar todos los reportes almacenados",
366
366
  "17": "Reseteo de nivel de batería",
367
367
  "18": "Borrar el emparejamiento SVR",
368
- "92": "Ingreso a modo de emergencia",
369
- "93": "Salida del modo de emergencia",
368
+ "92": "Ingreso a modo recupero",
369
+ "93": "Salida del modo recupero",
370
370
  "94": "Restaurar configuración de fábrica",
371
371
  "95": "Forzar configuración de fábrica"
372
372
  }
package/src/utils.js CHANGED
@@ -2270,6 +2270,7 @@ const getAlarm = (command, report, extra = false) => {
2270
2270
  return {
2271
2271
  type: 'Power_Reason',
2272
2272
  status: command === 'GTPNR',
2273
+ dailyWakeup: report === '09' || false,
2273
2274
  message: messages[command][report]
2274
2275
  }
2275
2276
  } else if (command === 'GTMPN' || command === 'GTEPN') {