weather
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.
Classes¶
WeatherConnector
¶
Bases: BaseConnector
Fetch current weather and short-term forecast from OpenWeatherMap.
Source code in src/openjarvis/connectors/weather.py
Functions¶
configure
¶
Validate and persist the API key and required location.
Source code in src/openjarvis/connectors/weather.py
sync
¶
sync(*, since: Optional[datetime] = None, cursor: Optional[str] = None) -> Iterator[Document]
Yield Documents for current weather and forecast.