Metadata-Version: 2.4
Name: llama-index-readers-weather
Version: 0.4.0
Summary: llama-index readers weather integration
Author-email: Your Name <you@example.com>
Maintainer: iamadhee
License-Expression: MIT
License-File: LICENSE
Keywords: openweather,weather
Requires-Python: <4.0,>=3.9
Requires-Dist: llama-index-core<0.14,>=0.13.0
Requires-Dist: pyowm<4,>=3.3.0
Description-Content-Type: text/markdown

# Weather Loader

```bash
pip install llama-index-readers-weather
```

This loader fetches the weather data from the [OpenWeatherMap](https://openweathermap.org/api)'s OneCall API, using the `pyowm` Python package. You must initialize the loader with your OpenWeatherMap API token, and then pass in the names of the cities you want the weather data for.

OWM's One Call API provides the following weather data for any geographical coordinate: - Current weather - Hourly forecast for 48 hours - Daily forecast for 7 days

## Usage

To use this loader, you need to pass in an array of city names (eg. [chennai, chicago]). Pass in the country codes as well for better accuracy.

```python
from llama_index.readers.weather import WeatherReader

loader = WeatherReader(token="[YOUR_TOKEN]")
documents = loader.load_data(places=["Chennai, IN", "Dublin, IE"])
```

This loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/run-llama/llama_index/).
