weather
#
- class platypush.message.event.weather.NewPrecipitationForecastEvent(*args, plugin_name: str | None = None, average: float, total: float, time_frame: int, **kwargs)[source]#
Bases:
Event
Event triggered when the precipitation forecast changes
- __init__(*args, plugin_name: str | None = None, average: float, total: float, time_frame: int, **kwargs)[source]#
- Parameters:
target (str) – Target node
origin (str) – Origin node (default: current node)
id (str) – Event ID (default: auto-generated)
timestamp (float) – Event timestamp (default: current time)
logging_level – Logging level for this event (default:
logging.INFO
)disable_web_clients_notification – Don’t send a notification of this event to the websocket clients
kwargs – Additional arguments for the event
- class platypush.message.event.weather.NewWeatherConditionEvent(*args, plugin_name: str | None = None, **kwargs)[source]#
Bases:
Event
Event triggered when the weather condition changes
- __init__(*args, plugin_name: str | None = None, **kwargs)[source]#
- Parameters:
target (str) – Target node
origin (str) – Origin node (default: current node)
id (str) – Event ID (default: auto-generated)
timestamp (float) – Event timestamp (default: current time)
logging_level – Logging level for this event (default:
logging.INFO
)disable_web_clients_notification – Don’t send a notification of this event to the websocket clients
kwargs – Additional arguments for the event