aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorK-J-Dod24 <kieran.dodson@complexus.uk>2023-05-10 11:19:20 +0100
committerK-J-Dod24 <kieran.dodson@complexus.uk>2023-05-10 11:19:20 +0100
commit797fef3ed402af9e2a9143b1dbf5ce94942455de (patch)
tree049078f444310cb4f7f75ba45606547fa34dca0a /modern/src
parent024e3a7633feec4e55da8b41b9f67d3155a0b991 (diff)
downloadtrackermap-web-797fef3ed402af9e2a9143b1dbf5ce94942455de.tar.gz
trackermap-web-797fef3ed402af9e2a9143b1dbf5ce94942455de.tar.bz2
trackermap-web-797fef3ed402af9e2a9143b1dbf5ce94942455de.zip
io32 coolant temperature fix
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/common/attributes/usePositionAttributes.js10
-rw-r--r--modern/src/common/components/PositionValue.js4
-rw-r--r--modern/src/resources/l10n/en.json2
3 files changed, 16 insertions, 0 deletions
diff --git a/modern/src/common/attributes/usePositionAttributes.js b/modern/src/common/attributes/usePositionAttributes.js
index a2fab896..90b14e76 100644
--- a/modern/src/common/attributes/usePositionAttributes.js
+++ b/modern/src/common/attributes/usePositionAttributes.js
@@ -196,6 +196,16 @@ export default (t) => useMemo(() => ({
name: `${t('positionOutput')} 4`,
type: 'boolean',
},
+ coolantTemp: {
+ name: t('positionCoolantTemp'),
+ type: 'number',
+ dataType: 'celsius',
+ },
+ engineTemp: {
+ name: t('positionEngineTemp'),
+ type: 'number',
+ dataType: 'celsius',
+ },
power: {
name: t('positionPower'),
type: 'number',
diff --git a/modern/src/common/components/PositionValue.js b/modern/src/common/components/PositionValue.js
index 2f996960..56114ed3 100644
--- a/modern/src/common/components/PositionValue.js
+++ b/modern/src/common/components/PositionValue.js
@@ -45,6 +45,10 @@ const PositionValue = ({ position, property, attribute }) => {
return formatAltitude(value, altitudeUnit, t);
case 'batteryLevel':
return value != null ? formatPercentage(value, t) : '';
+ case 'coolantTemp':
+ return formatCelsius(value);
+ case 'engineTemp':
+ return formatCelsius(value);
case 'alarm':
return formatAlarm(value, t);
case 'odometer':
diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json
index 2568c26f..1e13d8b1 100644
--- a/modern/src/resources/l10n/en.json
+++ b/modern/src/resources/l10n/en.json
@@ -231,6 +231,8 @@
"linkGoogleMaps": "Google Maps",
"linkAppleMaps": "Apple Maps",
"linkStreetView": "Street View",
+ "positionCoolantTemp": "Coolant Temperature",
+ "positionEngineTemp": "Engine Temperature",
"positionEngineTemp": "Engine Temperature",
"positionCoolantTemp": "Coolant Temperature",
"positionFixTime": "Fix Time",