2018-05-04 03:24:35 +02:00
|
|
|
from platypush.message.event import Event
|
|
|
|
|
2019-12-31 08:51:19 +01:00
|
|
|
|
2018-05-04 03:24:35 +02:00
|
|
|
class NewWeatherConditionEvent(Event):
|
2018-07-09 22:37:54 +02:00
|
|
|
"""
|
|
|
|
Event triggered when the weather condition changes
|
|
|
|
"""
|
|
|
|
|
2018-05-04 03:24:35 +02:00
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super().__init__(*args, **kwargs)
|
|
|
|
|
|
|
|
|
2019-12-31 08:51:19 +01:00
|
|
|
class NewPrecipitationForecastEvent(Event):
|
|
|
|
"""
|
|
|
|
Event triggered when the precipitation forecast changes
|
|
|
|
"""
|
|
|
|
def __init__(self, *args, average: float, total: float, time_frame: int, **kwargs):
|
|
|
|
super().__init__(*args, average=average, total=total, time_frame=time_frame, **kwargs)
|
|
|
|
|
|
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|