Skip to content

jhrcook/weather_forecast_collection

Repository files navigation

Weather Forecast Collection

python pre-commit Code style: black Checked with mypy License: GPLv3

A collection of weather forecasts and nowcasts.

TODO

  • MetaWeather and Rainery sources

Install

pip install git+https://github.com/jhrcook/weather_forecast_collection.git

Quickstart

(In progress.)

AccuWeather

from weather_forecast_collection.apis import accuweather_api

data = get_accuweather_forecast(lat=latitude, long=longitude, api_key=ACCU_KEY)

Sources

Here is a good list of weather sources: open weather APIs.

AccuWeather (done)

The Weather Company (The Weather Channel) (nope)

From what I can tell, this API used to be open, but is now only available to individuals with a "personal weather station" linked with Weather Underground.

National Weather Service (done)

Yahoo Weather (nope)

A banner on the documentation website indicates that this API will be closed soon.

On approximately May 1, 2021, the free Yahoo Weather API will be retired and will cease to function. Unfortunately, we will not be offering a replacement API, and there will be no paid alternative.

Dark Sky (nope)

The API is no longer open, but I may try to webscrape the HTML or use RapidAPI.

ClimaCell (done)

OpenWeatherMap (done)

MetaWeather

The Rainery (maybe)

Free tier is restricted to 50 requests per day.

openSenseMap (TODO)

The data comes from live weather stations. This could be a good way to get the "true" current weather.