make the N2K source configurable for humidity and temperature
This commit is contained in:
parent
553f6c0a23
commit
682bbb5bb4
|
@ -32,8 +32,8 @@ class SHT3XConfig{
|
||||||
humidActive=config->getBool(GwConfigDefinitions::iicSHT3XHumid);
|
humidActive=config->getBool(GwConfigDefinitions::iicSHT3XHumid);
|
||||||
interval=config->getInt(GwConfigDefinitions::SHT3Xinterval);
|
interval=config->getInt(GwConfigDefinitions::SHT3Xinterval);
|
||||||
interval*=1000;
|
interval*=1000;
|
||||||
humiditySource=N2khs_InsideHumidity;
|
humiditySource=(tN2kHumiditySource)(config->getInt(GwConfigDefinitions::SHT3XHumSource));
|
||||||
tempSource=N2kts_InsideTemperature;
|
tempSource=(tN2kTempSource)(config->getInt(GwConfigDefinitions::SHT3XTempSource));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,83 @@
|
||||||
"SHT3X":"true"
|
"SHT3X":"true"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "SHT3XTempSource",
|
||||||
|
"label": "SHT3X Temp Type",
|
||||||
|
"type": "list",
|
||||||
|
"default": "2",
|
||||||
|
"description": "the NMEA2000 source type for the temperature",
|
||||||
|
"list": [
|
||||||
|
{
|
||||||
|
"l": "SeaTemperature",
|
||||||
|
"v": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "OutsideTemperature",
|
||||||
|
"v": "1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "InsideTemperature",
|
||||||
|
"v": "2"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "EngineRoomTemperature",
|
||||||
|
"v": "3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "MainCabinTemperature",
|
||||||
|
"v": "4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "LiveWellTemperature",
|
||||||
|
"v": "5"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "BaitWellTemperature",
|
||||||
|
"v": "6"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "RefridgerationTemperature",
|
||||||
|
"v": "7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "HeatingSystemTemperature",
|
||||||
|
"v": "8"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "DewPointTemperature",
|
||||||
|
"v": "9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "ApparentWindChillTemperature",
|
||||||
|
"v": "10"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "TheoreticalWindChillTemperature",
|
||||||
|
"v": "11"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "HeatIndexTemperature",
|
||||||
|
"v": "12"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "FreezerTemperature",
|
||||||
|
"v": "13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "ExhaustGasTemperature",
|
||||||
|
"v": "14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"l": "ShaftSealTemperature",
|
||||||
|
"v": "15"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"category": "sensors",
|
||||||
|
"capabilities": {
|
||||||
|
"SHT3X":"true"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "iicSHT3XHumid",
|
"name": "iicSHT3XHumid",
|
||||||
"label": "SHT3X Humidity",
|
"label": "SHT3X Humidity",
|
||||||
|
@ -22,22 +99,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "SHT3XTempName",
|
"name": "SHT3XHumSource",
|
||||||
"label": "SHT3X Temp XDR",
|
"label": "SHT3X Humid Type",
|
||||||
"type": "String",
|
"type": "list",
|
||||||
"default": "Temp",
|
"description": "the NMEA2000 source type for the humidity",
|
||||||
"description": "set the XDR transducer name for the SHT3X Temperature, leave empty to disable ",
|
"default": "0",
|
||||||
"category": "sensors",
|
"list":[
|
||||||
"capabilities": {
|
{"l":"InsideHumidity","v":"0"},
|
||||||
"SHT3X":"true"
|
{"l":"OutsideHumidity","v":"1"},
|
||||||
}
|
{"l":"Undef","v":"0xff"}
|
||||||
},
|
],
|
||||||
{
|
|
||||||
"name": "SHT3XHumidName",
|
|
||||||
"label": "SHT3X Humid XDR",
|
|
||||||
"type": "String",
|
|
||||||
"default": "Humidity",
|
|
||||||
"description": "set the XDR transducer name for the SHT3X Humidity, leave empty to disable ",
|
|
||||||
"category": "sensors",
|
"category": "sensors",
|
||||||
"capabilities": {
|
"capabilities": {
|
||||||
"SHT3X":"true"
|
"SHT3X":"true"
|
||||||
|
@ -48,10 +119,10 @@
|
||||||
"label": "SHT3X N2K iid",
|
"label": "SHT3X N2K iid",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"default": 99,
|
"default": 99,
|
||||||
"description": "the N2K instance id the SHT3X Temperature and Humidity ",
|
"description": "the N2K instance id for the SHT3X Temperature and Humidity ",
|
||||||
"category": "sensors",
|
"category": "sensors",
|
||||||
"min": 0,
|
"min": 0,
|
||||||
"max": 255,
|
"max": 253,
|
||||||
"check": "checkMinMax",
|
"check": "checkMinMax",
|
||||||
"capabilities": {
|
"capabilities": {
|
||||||
"SHT3X":"true"
|
"SHT3X":"true"
|
||||||
|
@ -70,5 +141,27 @@
|
||||||
"capabilities": {
|
"capabilities": {
|
||||||
"SHT3X":"true"
|
"SHT3X":"true"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "SHT3XTempName",
|
||||||
|
"label": "SHT3X Temp XDR",
|
||||||
|
"type": "String",
|
||||||
|
"default": "Temp",
|
||||||
|
"description": "set the XDR transducer name for the SHT3X Temperature, leave empty to disable NMEA0183 XDR ",
|
||||||
|
"category": "sensors",
|
||||||
|
"capabilities": {
|
||||||
|
"SHT3X":"true"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "SHT3XHumidName",
|
||||||
|
"label": "SHT3X Humid XDR",
|
||||||
|
"type": "String",
|
||||||
|
"default": "Humidity",
|
||||||
|
"description": "set the XDR transducer name for the SHT3X Humidity, leave empty to disable NMEA0183 XDR",
|
||||||
|
"category": "sensors",
|
||||||
|
"capabilities": {
|
||||||
|
"SHT3X":"true"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue