weather.buienradar
#
- class platypush.plugins.weather.buienradar.WeatherBuienradarPlugin(lat: float, long: float, time_frame: int = 120, **kwargs)[source]#
Bases:
Plugin
Plugin for getting weather updates through Buienradar - a Dutch weather app.
Requires:
buienradar (
pip install buienradar
)
- __init__(lat: float, long: float, time_frame: int = 120, **kwargs)[source]#
- Parameters:
lat – Default latitude
long – Default longitude
time_frame – Default number of minutes to look ahead for precipitation forecast
- get_forecast(lat: float | None = None, long: float | None = None) BuienradarForecastResponse [source]#
Get the weather forecast for the next days.
- Parameters:
lat – Weather latitude (default: configured latitude)
long – Weather longitude (default: configured longitude)
- get_precipitation(lat: float | None = None, long: float | None = None, time_frame: int | None = None) BuienradarPrecipitationResponse [source]#
Get the precipitation forecast for the specified time frame.
- Parameters:
lat – Weather latitude (default: configured latitude)
long – Weather longitude (default: configured longitude)
time_frame – Time frame for the forecast in minutes (default: configured time_frame)