aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes/useDeviceAttributes.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-15 13:04:00 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-15 13:04:00 -0700
commit6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc (patch)
tree8712dcf947f4e6fa0795faa4667e9bb787775d72 /modern/src/common/attributes/useDeviceAttributes.js
parent5faf345b841da9af97a45cc057a58b63b2379388 (diff)
downloadtrackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.gz
trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.bz2
trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.zip
Update known attributes
Diffstat (limited to 'modern/src/common/attributes/useDeviceAttributes.js')
-rw-r--r--modern/src/common/attributes/useDeviceAttributes.js23
1 files changed, 17 insertions, 6 deletions
diff --git a/modern/src/common/attributes/useDeviceAttributes.js b/modern/src/common/attributes/useDeviceAttributes.js
index 8a4d886c..34ddb64c 100644
--- a/modern/src/common/attributes/useDeviceAttributes.js
+++ b/modern/src/common/attributes/useDeviceAttributes.js
@@ -1,13 +1,24 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
- speedLimit: {
- name: t('attributeSpeedLimit'),
+ devicePassword: {
+ name: t('attributeDevicePassword'),
+ type: 'string',
+ },
+ 'processing.copyAttributes': {
+ name: t('attributeProcessingCopyAttributes'),
+ type: 'string',
+ },
+ 'decoder.timezone': {
+ name: t('sharedTimezone'),
+ type: 'string',
+ },
+ deviceInactivityStart: {
+ name: t('attributeDeviceInactivityStart'),
type: 'number',
- subtype: 'speed',
},
- 'report.ignoreOdometer': {
- name: t('attributeReportIgnoreOdometer'),
- type: 'boolean',
+ deviceInactivityPeriod: {
+ name: t('attributeDeviceInactivityPeriod'),
+ type: 'number',
},
}), [t]);