Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rob-blackbourn/jetblack-open-meteo
A python API for open-meteo
https://github.com/rob-blackbourn/jetblack-open-meteo
Last synced: about 1 month ago
JSON representation
A python API for open-meteo
- Host: GitHub
- URL: https://github.com/rob-blackbourn/jetblack-open-meteo
- Owner: rob-blackbourn
- Created: 2024-02-11T07:34:09.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-09-13T15:15:14.000Z (2 months ago)
- Last Synced: 2024-09-14T07:22:18.987Z (2 months ago)
- Language: Python
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jetblack-open-meteo
A client API for [open-meteo](https://open-meteo.com).
## Status
This is work in progress.
## Usage
Rather than provide a client, this library provides the url and params.
This means you can use the http library of you choice.
For example with requests:
```python
import pandas as pd
import requestsfrom jetblack_open_meteo import prepare_weather_forecast_request
url, params = prepare_weather_forecast_request(
(51.50242846391432, -0.1423227420691731),
hourly=['temperature_2m'],
)# Use requests to get the data.
response = requests.get(url, params=params)
data = response.json()df = pd.DataFrame(data['hourly'])
print(df)
```