Source code for platypush.message.event.weather

from typing import Optional

from platypush.message.event import Event


[docs]class NewWeatherConditionEvent(Event): """ Event triggered when the weather condition changes """
[docs] def __init__(self, *args, plugin_name: Optional[str] = None, **kwargs): super().__init__(*args, plugin_name=plugin_name, **kwargs)
[docs]class NewPrecipitationForecastEvent(Event): """ Event triggered when the precipitation forecast changes """
[docs] def __init__(self, *args, plugin_name: Optional[str] = None, average: float, total: float, time_frame: int, **kwargs): super().__init__(*args, plugin_name=plugin_name, average=average, total=total, time_frame=time_frame, **kwargs)
# vim:sw=4:ts=4:et: