/* clang-format off */ static const char html_confSens_script[] PROGMEM = R"=====( function transmit(f) { if (!xhttp) { reqTime = 0; reqFin = false; updCbxVal(g('DHT_enable')); xhttp = new XMLHttpRequest(); xhttp.timeout = 1000; xhttp.overrideMimeType('application/json'); xhttp.open('POST', 'confDataSens'); xhttp.send(f ? (new FormData(f)) : ''); xhttp.onreadystatechange = function () { if (xhttp.readyState === XMLHttpRequest.DONE && xhttp.status === 200) { var data = JSON.parse(xhttp.responseText); selectElement(g('assignSens_0'), data.assignSens_0); selectElement(g('assignSens_1'), data.assignSens_1); selectElement(g('assignSens_2'), data.assignSens_2); g('measInt').value = data.measInt; g('DHT_tempCorr').value = data.DHT_tempCorr; g('DHT_humCorr').value = data.DHT_humCorr; setCbx(g('DHT_enable'), data.DHT_enable); xhttp = null; reqFin = true; } else { if(!reqFin && reqTime > 10) { xhttp = null; reqFin = true; } } } } return false; } //transmit(); function saveConf() { updCbxVal(g('DHT_enable')); g('frmConf').submit(); } function init() { transmit(); } )====="; // html_confSens_script static const char html_confSens_body_start[] PROGMEM = R"=====( Konfiguration - Sensoren

Intervalle

Messintervall [s]

)====="; #ifdef ENABLE_SENSORS_ONEWIRE static const char html_confSens_oneWire_start[] PROGMEM = R"=====(


OneWire Temperatursensoren )====="; static const char html_confSens_oneWire_AssignSelector_options[] PROGMEM = R"=====( )====="; static const char html_confSens_oneWire_end[] PROGMEM = R"=====(
#AdresseT [°C]Zuordnung

)====="; #endif #ifdef ENABLE_SENSOR_DHT22 static const char html_confSens_dht[] PROGMEM = R"=====(

DHT Temperatur- u. Luftfeuchtesensor

DHT-Sensor aktivieren 

Korrekturwert Temperatur [°C] *

Korrekturwert Luftfeuchte [%] *

* wird zum gemessenen Wert addiert.
Kann auch negativ un eine Kommazahl sein.
Zu verwenden, wenn die Messwerte von
einem kalibrierten Sensor abweichen.


)====="; #endif static const char html_confSens_body_end[] PROGMEM = R"=====(

)====="; // html_confSens_body