|
|
@ -37,7 +37,7 @@ function sensorName(id) { |
|
|
|
"DHT", "Dallas", "Emon Analog", "Emon ADC121", "Emon ADS1X15", |
|
|
|
"HLW8012", "V9261F", "ECH1560", "Analog", "Digital", |
|
|
|
"Events", "PMSX003", "BMX280", "MHZ19", "SI7021", |
|
|
|
"SHT3X I2C", "BH1750" |
|
|
|
"SHT3X I2C", "BH1750", "PZEM004T", "AM2320 I2C", "GUVAS12SD" |
|
|
|
]; |
|
|
|
if (1 <= id && id <= names.length) { |
|
|
|
return names[id - 1]; |
|
|
@ -51,7 +51,7 @@ function magnitudeType(type) { |
|
|
|
"Current", "Voltage", "Active Power", "Apparent Power", |
|
|
|
"Reactive Power", "Power Factor", "Energy", "Energy (delta)", |
|
|
|
"Analog", "Digital", "Events", |
|
|
|
"PM1.0", "PM2.5", "PM10", "CO2", "Lux" |
|
|
|
"PM1.0", "PM2.5", "PM10", "CO2", "Lux", "UV" |
|
|
|
]; |
|
|
|
if (1 <= type && type <= types.length) { |
|
|
|
return types[type - 1]; |
|
|
|