openhems.server.OpenHEMSServer
- class openhems.server.OpenHEMSServer(mylogger, network, serverConf: ConfigurationManager, allowSleep=False)
- This is the server thread witch aim to centralize information
and take right deccisions to optimize consumption
Methods
__init__(mylogger, network, serverConf[, ...])check()decrementTime(duration)Decrement time from all objects neither the type (Thanks Python ;) )
getCycleId()Return cycle id.
getNetwork()Return network.
getSchedule()Return scheduled planning.
getTime()Return current time
getWarningMessages()Return warning messages to display on dashboard.
loop([now])It's the content of each loop.
registerDecrementTime(node[, register])Register a node witch will decrement time.
run([loopDelay])Run an infinite loop