mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-06 20:51:38 +02:00
Merge branch 'main' into development03
This commit is contained in:
commit
921419de72
2 changed files with 7 additions and 6 deletions
|
@ -234,7 +234,7 @@ When everything is wired up and the firmware is flashed, it is time to connect t
|
||||||
|
|
||||||
## MQTT command to set the DTU without webinterface
|
## MQTT command to set the DTU without webinterface
|
||||||
|
|
||||||
[Read here](tools/esp8266/User_Manual.md)
|
[Read here](User_Manual.md)
|
||||||
|
|
||||||
## Used Libraries
|
## Used Libraries
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
obj.cmd = 2;
|
obj.cmd = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
obj.inverter = get_selected_iv();
|
obj.inverter = get_selected_iv();
|
||||||
obj.tx_request = 81;
|
obj.tx_request = 81;
|
||||||
|
@ -188,15 +188,16 @@
|
||||||
document.getElementById("sendpwrlim").addEventListener("click", function() {
|
document.getElementById("sendpwrlim").addEventListener("click", function() {
|
||||||
var val = parseInt(document.getElementsByName('pwrlimval')[0].value);
|
var val = parseInt(document.getElementsByName('pwrlimval')[0].value);
|
||||||
var ctrl = parseInt(document.getElementsByName('pwrlimcntrl')[0].value);
|
var ctrl = parseInt(document.getElementsByName('pwrlimcntrl')[0].value);
|
||||||
|
|
||||||
if((ctrl == 1 || ctrl == 257) && unit < 2) unit = 2;
|
if((ctrl == 1 || ctrl == 257) && val < 2) val = 2;
|
||||||
if(isNaN(val) || isNaN(ctrl))
|
|
||||||
|
if(isNaN(val) || isNaN(ctrl))
|
||||||
{
|
{
|
||||||
var tmp = (isNaN(val)) ? "Value" : "Unit";
|
var tmp = (isNaN(val)) ? "Value" : "Unit";
|
||||||
document.getElementById("result").textContent = tmp + " is missing";
|
document.getElementById("result").textContent = tmp + " is missing";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var obj = new Object();
|
var obj = new Object();
|
||||||
obj.inverter = get_selected_iv();
|
obj.inverter = get_selected_iv();
|
||||||
obj.cmd = 11;
|
obj.cmd = 11;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue