function Init(){ LoadParametres(); } function LoadParametres() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var LesParas=this.responseText; var Para=LesParas.split(','); GID("tempsmarcheforce").value=Para[0]; GID("pchauffeeau").value=Para[1]; GID("fortcoef").value=Para[2]; GID("petitcoef").value=Para[3]; GID("puissancebasculecoef").value=Para[4]; GID("puissance_basse_chauffe").value=Para[5]; GID("puissance_moyenne_chauffe").value=Para[6]; GID("coefficientbas_detect_fin_chauffe").value=Para[7]; GID("coefficientmoy_detect_fin_chauffe").value=Para[8]; GID("coefficienthaut_detect_fin_chauffe").value=Para[9]; GID("durer_forcer_web").value=Para[10]; GID("durer_forcer_web_piscine").value=Para[11]; GID("URLesp32second").value=Para[12]; } }; xhttp.open('GET', 'ParaAjax', true); xhttp.send(); } function GID(id){return document.getElementById(id)}; function SendValues(){ var S="?tempsmarcheforce="+ GID("tempsmarcheforce").value+ "&pchauffeeau="+ GID("pchauffeeau").value+ "&fortcoef="+ GID("fortcoef").value+ "&petitcoef="+ GID("petitcoef").value+ "&puissancebasculecoef="+ GID("puissancebasculecoef").value+ "&puissance_basse_chauffe="+ GID("puissance_basse_chauffe").value+ "&puissance_moyenne_chauffe="+ GID("puissance_moyenne_chauffe").value+ "&coefficientbas_detect_fin_chauffe="+ GID("coefficientbas_detect_fin_chauffe").value+ "&coefficientmoy_detect_fin_chauffe="+ GID("coefficientmoy_detect_fin_chauffe").value+ "&coefficienthaut_detect_fin_chauffe="+ GID("coefficienthaut_detect_fin_chauffe").value+ "&durer_forcer_web="+ GID("durer_forcer_web").value+ "&durer_forcer_web_piscine="+ GID("durer_forcer_web_piscine").value+ "&URLesp32second="+ GID("URLesp32second").value; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var retour=this.responseText; location.reload(); } }; xhttp.open('GET', 'ParaUpdate'+S, true); xhttp.send(); } function marcheforcerweb(){ var S="?tempsmarcheforce="+ GID("tempsmarcheforce").value+ "&pchauffeeau="+ GID("pchauffeeau").value+ "&fortcoef="+ GID("fortcoef").value+ "&petitcoef="+ GID("petitcoef").value+ "&puissancebasculecoef="+ GID("puissancebasculecoef").value+ "&puissance_basse_chauffe="+ GID("puissance_basse_chauffe").value+ "&puissance_moyenne_chauffe="+ GID("puissance_moyenne_chauffe").value+ "&coefficientbas_detect_fin_chauffe="+ GID("coefficientbas_detect_fin_chauffe").value+ "&coefficientmoy_detect_fin_chauffe="+ GID("coefficientmoy_detect_fin_chauffe").value+ "&coefficienthaut_detect_fin_chauffe="+ GID("coefficienthaut_detect_fin_chauffe").value+ "&durer_forcer_web="+ GID("durer_forcer_web").value+ "&durer_forcer_web_piscine="+ GID("durer_forcer_web").value+ "&URLesp32second="+ GID("URLesp32second").value; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var retour=this.responseText; location.reload(); } }; xhttp.open('GET', 'MarcheForcer'+S, true); xhttp.send(); } function encodeString(s){ var S=""; for (var i=0;i