Skip to Main Content
Cumulocity IoT Feedback Portal
Status Likely to support/improve
Created by Neil C
Created on Apr 25, 2023

Extended system of units, and units conversion

Currently, Cumulocity has a rudimentary model for systems of units. It recognises metric and imperial units systems, and the API will convert measurement values between them. https://cumulocity.com/api/10.15.0/#section/System-of-units

Metric

Imperial

m (meter)

ft (foot)

km (kilometer)

mi (mile)

cm (centimeter)

in (inch)

°C (degree Celsius)

°F (degree Fahrenheit)

K (Kelvin)

°R (degree Rankine)

g (gram)

oz (ounce)

kg (kilogram)

lb (pound)


We suggest that it would be helpful if this system of units framework could be flexibly extended, both by adding new units for existing dimensions:

Metric

Imperial

CustomUnitSystem1

m (meter)

ft (foot)

mm (micrometer)

km (kilometer)

mi (mile)

km (kilometer)

cm (centimeter)

in (inch)

cm (centimeter)

°C (degree Celsius)

°F (degree Fahrenheit)

K (degree Kelvin)

K (Kelvin)

°R (degree Rankine)

K (degree Kelvin)

g (gram)

oz (ounce)

g (gram)

kg (kilogram)

lb (pound)

kg (kilogram)

...and also by adding additional dimensions to the system:

Metric

Imperial

CustomUnitSystem1

m (meter)

ft (foot)

mm (micrometer)

km (kilometer)

mi (mile)

km (kilometer)

cm (centimeter)

in (inch)

cm (centimeter)

°C (degree Celsius)

°F (degree Fahrenheit)

K (degree Kelvin)

K (Kelvin)

°R (degree Rankine)

K (degree Kelvin)

g (gram)

oz (ounce)

g (gram)

kg (kilogram)

lb (pound)

kg (kilogram)

Pa (Pascal)

psi (pounds per sq. inch)

mbar (millibar)


We would also like to see the Cockpit environment able to select systems of units on a per-user and per-dashboard basis...
For example, the user might choose to see data in all Dashboards as Metric by default, but another user could also author a dashboard that specifically used "CustomUnitSystem1" rather than "default". Individual users would ideally also be able to override the units settings for any dashboard.

In some cases it may be necessary to support more than one representation of the same dimension in a system of units. For example a dashboard might need to display some temperature measurement values in Celcius, but others in Kelvin.

  • Attach files
  • Admin
    Rahul Talreja
    Reply
    |
    May 3, 2023

    Hi Neil, thanks a lot for sharing this feedback

    We agree this would be a valuable product improvement and a necessary component of how we improve capabilities of Cockpit. We plan to consider this idea as an input for future releases and will update you once we plan to pick this up.