hello everybody,
I would like to send a parameter to a script via http from a browser.
For example, I would change "SogliaTemp" with another value.
Is it possible? how can do it?
thank you
Code
let SogliaTemp = 58.5
function Loop(){
try{
var TempH2O = Shelly.getComponentStatus('Temperature', 100).tC; //Lettura temperatura da addon
if (TempH2O < SogliaTemp) {
Shelly.call("Switch.Set", {"id": 0, "on": true});
print("Output: ON");
} else {
Shelly.call("Switch.Set", {"id": 0, "on": false});
print("Output: OFF");
}
print("")
}catch(e){print(e);}
}
Timer.set(1000,true,Loop);
Alles anzeigen