Adding units to an attribute

Hi,
i found into database table asset_datapoint the saved measurements. May i define Unit about every measure? For example: temperature → degree_celsius or Power: watt.
Perhaps in another table ?

Thanks
Francesco DG

In fact, i want to create a new asset and add to it a measurement field with a specific unit (for example: temperature in celsius degrees) then add many many measurements by Postman.
In wiki i did not find easy guide about it.
Thanks

Hi,

Units within OpenRemote are for UI purposes; for something like temperature it is just stored as a number, there is no special treatment for storage, but if you want to show units in the UI then the following explains how to do it:

You can create a custom attribute on an asset and then add a Units Configuration Item, which allows you to define units using a list of strings which loosely follow the HTML internationalisation spec.

You can find currently supported unit strings in:

For example to add celsius units to an attribute:

Thanks
it is the info that i wanted to know.