hier mein Script 1:
Code: Alles auswählen
! Systemvariablen auslesen
object maxWind = dom.GetObject(ID_SYSTEM_VARIABLES).Get("Wind max heute");
object timeMax = dom.GetObject(ID_SYSTEM_VARIABLES).Get("Wind Uhrzeit max heute");
! Aktuelle Windgeschw
object wds = dom.GetObject("Garagendach - Wetterstation HmIP-SWO-PR 00185BE9922B92:1");
object curWind = wds.DPByHssDP("WIND_SPEED");
if (curWind.Value() > maxWind.Value())
{
maxWind.State(curWind.Value());
timeMax.State(system.Date("%H:%M"));
}
und hier das 2. Script:
Code: Alles auswählen
! Systemvariablen
object maxWind = dom.GetObject(ID_SYSTEM_VARIABLES).Get("Wind max heute");
object timeMax = dom.GetObject(ID_SYSTEM_VARIABLES).Get("Wind Uhrzeit max heute");
object maxGestern = dom.GetObject(ID_SYSTEM_VARIABLES).Get("Wind max gestern");
! Aktuelle Windgeschw
object wds = dom.GetObject("Garagendach - Wetterstation HmIP-SWO-PR 00185BE9922B92:1");
object curWind = wds.DPByHssDP("WIND_SPEED");
maxGestern.State(maxWind.Value());
maxWind.State(curWind.Value());
timeMax.State(system.Date("%H:%M"));