Antwort
Diese Frage wurde noch nicht beantwortet.
var tempAct=0;
var tempMaxDay=0;
var tempMinDay=0;
console.log("Hello");
getDeviceStatus(
"Garten",
"Wetterstation",
{"value":"temp","extMeta":"5-30","scale":"0.1"},
function(err, status) {
err && console.error("err1 "+err.message);
console.log("Aktuelle Temperatur");
console.log(status);
tempAct=status;
}
);
getDeviceStatus(
"System",
"TempMaxDay",
{"value":"state","extMeta":"-21474836.48-21474836.47","scale":"0.01"},
function(err, status) {
err && console.error("err2 "+err.message);
console.log("Bisheriga Tagesmaximaltemperatur");
console.log(status);
tempMaxDay=status;
}
);
getDeviceStatus(
"System",
"TempMinDay",
{"value":"state","extMeta":"-21474836.48-21474836.47","scale":"0.01"},
function(err, status) {
err && console.error("err3 "+err.message);
console.log("Bisherige Tagesminimaltemperatur");
console.log(status);
tempMinDay=status;
}
);
-------------------------------------------------------------------------------6/4/2020 20:45:0.039 debug: [x.hub.scriptman.ScriptExecutorService2] start script:/opt/mediola/share/v5plus/data/scripts/2
6/4/2020 20:45:0.100 debug: [x.hub.scriptman.ScriptExecutorService2] Hello
6/4/2020 20:45:0.232 debug: [x.hub.scriptman.ScriptExecutorService2] Bisheriga Tagesmaximaltemperatur
undefined
Bisherige Tagesminimaltemperatur
undefined
6/4/2020 20:45:0.259 debug: [x.hub.scriptman.ScriptExecutorService2] err2 device not found
err3 device not found
device not found
6/4/2020 20:45:1.348 debug: [x.hub.scriptman.ScriptExecutorService2] Aktuelle Temperatur
6/4/2020 20:45:1.352 debug: [x.hub.scriptman.ScriptExecutorService2] 13.8
Haben Sie die gleiche Frage? Dieser Frage folgen
Diese Frage wurde noch nicht beantwortet.