-def eventDaylightStart():
- logging.debug("eventDaylightStart()")
- logging.info("event: daylight is here, switching off: "+uwscfg.slug_ids_logo)
- for id in uwscfg.slug_ids_logo.split(" "):
- switchPower(id,False)
-
-def eventDaylightStop():
- logging.debug("eventDaylightStop()")
- if not isWolfHour():
- logging.info("event: daylight ends, switching on: "+uwscfg.slug_ids_logo)
- for id in uwscfg.slug_ids_logo.split(" "):
- switchPower(id,True)
-
-def eventWolfHourStart():
- logging.debug("eventWolfHourStart()")
- logging.info("event: nobody on the street time, switching off: "+uwscfg.slug_ids_logo)
- for id in uwscfg.slug_ids_logo.split(" "):
- switchPower(id,False)
-
-def eventWolfHourStop():
- logging.debug("eventWolfHourStop()")
- if haveDaylight():
- logging.info("event: people might be on street now, switching on: "+uwscfg.slug_ids_logo)
- for id in uwscfg.slug_ids_logo.split(" "):
- switchPower(id,True)
-