platypush.message.event.sun

class platypush.message.event.sun.SunEvent(latitude: Optional[float] = None, longitude: Optional[float] = None, time: Optional[datetime.datetime] = None, *args, **kwargs)[source]

Base class for sun related events (sunrise and sunset).

__init__(latitude: Optional[float] = None, longitude: Optional[float] = None, time: Optional[datetime.datetime] = None, *args, **kwargs)[source]
Parameters
  • latitude – Latitude for the sun event.

  • longitude – Longitude for the sun event.

  • time – Event timestamp.

class platypush.message.event.sun.SunriseEvent(latitude: Optional[float] = None, longitude: Optional[float] = None, time: Optional[datetime.datetime] = None, *args, **kwargs)[source]

Class for sunrise events.

class platypush.message.event.sun.SunsetEvent(latitude: Optional[float] = None, longitude: Optional[float] = None, time: Optional[datetime.datetime] = None, *args, **kwargs)[source]

Class for sunset events.