diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-03 19:06:11 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-03 19:06:11 -0700 |
commit | 04e50e512f59983f330ac866793ff9da41ac4fce (patch) | |
tree | f1ecb8af051fa4b0ce22f52bc171e82bcd1182c6 | |
parent | c76053a1c40328a3ae734ea0390d45c2f52283b5 (diff) | |
download | trackermap-web-04e50e512f59983f330ac866793ff9da41ac4fce.tar.gz trackermap-web-04e50e512f59983f330ac866793ff9da41ac4fce.tar.bz2 trackermap-web-04e50e512f59983f330ac866793ff9da41ac4fce.zip |
Implement refuel events
-rw-r--r-- | modern/src/common/attributes/useCommonDeviceAttributes.js | 8 | ||||
-rw-r--r-- | web/l10n/en.json | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/modern/src/common/attributes/useCommonDeviceAttributes.js b/modern/src/common/attributes/useCommonDeviceAttributes.js index 8a4d886c..f9214818 100644 --- a/modern/src/common/attributes/useCommonDeviceAttributes.js +++ b/modern/src/common/attributes/useCommonDeviceAttributes.js @@ -6,6 +6,14 @@ export default (t) => useMemo(() => ({ type: 'number', subtype: 'speed', }, + fuelDropThreshold: { + name: t('attributeFuelDropThreshold'), + type: 'number', + }, + fuelIncreaseThreshold: { + name: t('attributeFuelIncreaseThreshold'), + type: 'number', + }, 'report.ignoreOdometer': { name: t('attributeReportIgnoreOdometer'), type: 'boolean', diff --git a/web/l10n/en.json b/web/l10n/en.json index 712e32ff..c23cb402 100644 --- a/web/l10n/en.json +++ b/web/l10n/en.json @@ -97,6 +97,8 @@ "sharedColumns": "Columns", "sharedDropzoneText": "Drag and drop a file here or click", "attributeSpeedLimit": "Speed Limit", + "attributeFuelDropThreshold": "Fuel Drop Threshold", + "attributeFuelIncreaseThreshold": "Fuel Increase Threshold", "attributePolylineDistance": "Polyline Distance", "attributeReportIgnoreOdometer": "Report: Ignore Odometer", "attributeWebReportColor": "Web: Report Color", @@ -396,6 +398,7 @@ "eventDeviceStopped": "Device stopped", "eventDeviceOverspeed": "Speed limit exceeded", "eventDeviceFuelDrop": "Fuel drop", + "eventDeviceFuelIncrease": "Fuel increase", "eventCommandResult": "Command result", "eventGeofenceEnter": "Geofence entered", "eventGeofenceExit": "Geofence exited", |