Skip to content

weather

diapason.connectors.weather

Weather connector — current conditions and forecast via OpenWeatherMap API.

Uses an API key stored in the connector config dir. All API calls are in module-level functions for easy mocking in tests.

WeatherConnector

Bases: BaseConnector

Fetch current weather and short-term forecast from OpenWeatherMap.

sync(*, since=None, cursor=None)

Yield Documents for current weather and forecast.