fleetmap-reports 2.0.296 → 2.0.298

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.296",
3
+ "version": "2.0.298",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -324,10 +324,13 @@ function deviceName (device) {
324
324
  }
325
325
 
326
326
  function getAlertInfo (drivers, alert, device, translations) {
327
+ if (alert.type === 'alarm' && alert.attributes.alarm === 'temperature') {
328
+ return alert.attributes.info
329
+ }
327
330
  if (alert.type === 'alarm' && alert.attributes.alarm === 'sensor') {
328
331
  return device ? device.attributes.sensor1on : ''
329
332
  }
330
- if (alert.type === 'alarm' && alert.position) {
333
+ if (alert.type === 'alarm' && alert.position && !alert.attributes.alarm.startsWith('hard')) {
331
334
  return getDigitalPortValue(alert.position, 1, translations, device.attributes)
332
335
  }
333
336
  if (alert.type === 'deviceOverspeed') {