platypush/platypush/message/event/weather.py
Fabio Manganiello 02f6845e72 - Added weather.openweathermap plugin and backend, as a replacement for Darksky [closes #177]
- Added note to the Darksky plugin about the decomissioning of the API by the end of the year
2021-03-12 01:31:26 +01:00

24 lines
731 B
Python

from typing import Optional
from platypush.message.event import Event
class NewWeatherConditionEvent(Event):
"""
Event triggered when the weather condition changes
"""
def __init__(self, *args, plugin_name: Optional[str] = None, **kwargs):
super().__init__(*args, plugin_name=plugin_name, **kwargs)
class NewPrecipitationForecastEvent(Event):
"""
Event triggered when the precipitation forecast changes
"""
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: