platypush.plugins.weather.buienradar

class platypush.plugins.weather.buienradar.WeatherBuienradarPlugin(lat: float, long: float, time_frame: int = 120, **kwargs)[source]

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: Optional[float] = None, long: Optional[float] = None)platypush.message.response.weather.buienradar.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: Optional[float] = None, long: Optional[float] = None, time_frame: Optional[int] = None)platypush.message.response.weather.buienradar.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)

get_weather(lat: Optional[float] = None, long: Optional[float] = None)platypush.message.response.weather.buienradar.BuienradarWeatherResponse[source]

Get the current weather conditions.

Parameters
  • lat – Weather latitude (default: configured latitude)

  • long – Weather longitude (default: configured longitude)