HptFw
July 2, 2020, 8:30am
1
‘AI01T’ : {
type : "temperature",
value : -999
},
при использовании модуля WBIO-AI-DV-12 4-20мА для перевода первичных значений во вторичные и отображения в WebUi использовал промежуточные Virtual Values, которые пересчитывал по различным для каждого типа датчиков формулам.
На установке есть промышленные датчики температуры, давления, расхода.
По температурным всё понятно: выставляешь type : “temperature”, в интерфейсе получаешь значение с [градусами С]. Какие типы присваивать датчикам давления и расхода для отображения величин в [Бар] и [л/мин]?
Тип “value” используем в таких случаях.
HptFw
July 2, 2020, 3:17pm
4
Нашёл в Wiki
Type
meta/type
units
value format
Temperature
temperature
°C
float
Relative humidity
rel_humidity
%, RH
float, 0 - 100
Atmospheric pressure
atmospheric_pressure
millibar (100 Pa)
float
Precipitation rate (rainfall rate)
rainfall
mm per hour
float
Wind speed
wind_speed
m/s
float
Power
power
watt
float
Power consumption
power_consumption
kWh
float
Voltage
voltage
volts
float
Water flow
water_flow
m^3 / hour
float
Water total consumption
water_consumption
m^3
float
Resistance
resistance
resistance
float
Gas concentration
concentration
ppm
float (unsigned)
Heat power
heat_power
Gcal / hour
float
Heat energy
heat_energy
Gcal
float
Вот бы ещё добавились те, что мне нужны)
The standard liter per minute (SLM or SLPM) is a unit of volumetric flow rate of a gas at standard conditions for temperature and pressure (STP), which is most commonly practiced in the United States whereas European practice revolves around the normal litre per minute (NLPM).. Until 1982, STP was defined as a temperature of 273.15 K (0 °C, 32 °F) and an absolute pressure of 101.325 kPa (1 atm). Since 1982, STP is defined as a temperature of 273.15 K (0 °C, 32 °F) and an absolute pressure of 1 Co...
The bar is a metric unit of pressure, but not part of the International System of Units (SI). It is defined as exactly equal to 100,000 Pa (100 kPa), or slightly less than the current average pressure at sea level (approximately 1.013 bar). By the barometric formula, 1 bar is roughly the atmospheric pressure on Earth at an altitude of 111 metres at 15 °C.
The bar and the millibar were introduced by the Norwegian meteorologist Vilhelm Bjerknes, who was a founder of the modern practice of weather...
2 Likes
А так же силу тока, дату, время и проч. или кастомные типы
1 Like