aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
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",