2021-03-12 01:17:29 +01:00
|
|
|
from platypush.backend.weather import WeatherBackend
|
|
|
|
|
|
|
|
|
|
|
|
class WeatherOpenweathermapBackend(WeatherBackend):
|
|
|
|
"""
|
|
|
|
Weather forecast backend that leverages the OpenWeatherMap API.
|
|
|
|
|
|
|
|
Requires:
|
|
|
|
|
|
|
|
* The :class:`platypush.plugins.weather.openweathermap.WeatherOpenWeatherMapPlugin` plugin configured
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, poll_seconds: int = 60, **kwargs):
|
|
|
|
"""
|
|
|
|
:param poll_seconds: How often the backend should check for updates (default: every minute).
|
|
|
|
"""
|
2023-09-24 16:54:43 +02:00
|
|
|
super().__init__(
|
|
|
|
plugin_name='weather.openweathermap', poll_seconds=poll_seconds, **kwargs
|
|
|
|
)
|
2021-03-12 01:17:29 +01:00
|
|
|
|
|
|
|
|
|
|
|
# vim:sw=4:ts=4:et:
|