Hello
I’m preparing a PR to add missing units in Gladys, knowing that many users use node-red to integrate various equipment (and therefore various units of measurement), I’m fishing for needs.
@pierre-gilles I’m taking the opportunity to reorganize by unit type for more clarity if you’re okay
The planned additions:
- VA - VAR - MWh - mA (Energy/Power) => in anticipation of the lixee TIC
- km - m (Distance)
- € $ (Currency)
- bar psi (Pressure)
- Kelvin (Temperature)
- l, ml, m3 (Volume)
- ° (Angle)
const DEVICE_FEATURE_UNITS = {
// Temperature units
CELSIUS: 'celsius',
FAHRENHEIT: 'fahrenheit',
KELVIN: 'kelvin',
// Percentage units
PERCENT: 'percent',
// Pressure units
PASCAL: 'pascal',
HECTO_PASCAL: 'hPa',
BAR: 'bar',
PSI: 'psi',
// Light units
LUX: 'lux',
// Concentration units
PPM: 'ppm',
// Power units
WATT: 'watt',
KILOWATT: 'kilowatt',
WATT_HOUR: 'watt-hour',
KILOWATT_HOUR: 'kilowatt-hour',
MEGAWATT_HOUR: 'megawatt-hour',
AMPERE: 'ampere',
MILLI_AMPERE: 'milliampere',
MILLI_VOLT: 'millivolt',
VOLT: 'volt',
VOLT_AMPERE: 'volt-ampere',
VOLT_AMPERE_REACTIVE: 'volt-ampere-reactive',
// Length units
MM: 'mm',
CM: 'cm',
M: 'm',
KM: 'km',
// Degree units
DEGREE: 'degree',
// Volume units
LITER: 'liter',
MILLILITER: 'milliliter',
CUBIC_METER: 'cubicmeter',
// Currency units
EURO: 'euro',
DOLLAR: 'dollar',
// Speed units
METER_PER_SECOND: 'meter-per-second',
KILOMETER_PER_HOUR: 'kilometer-per-hour',
// Precipitation units
MILLIMETER_PER_HOUR: 'millimeter-per-hour',
// UV Units
UV_INDEX: 'uv-index',
};
I’m thinking in particular of @Einstein8854, do you have any needs for your weather station? Speed, for example?