NREL / lore

Other
1 stars 0 forks source link

Add OpenWeatherMap integration #59

Closed odow closed 3 years ago

odow commented 3 years ago

This adds an integration to the REST api of https://openweathermap.org.

I signed up for the free plan: https://openweathermap.org/price#weather

Then applied for an API key

image

The current code has a fallback to return an empty data frame if you won't provide an up-to-date API key, so we can safely revoke the current key before making this repository public.

odow commented 3 years ago

This now uses openweathermap for the pressure, and falls back to the altitude estimate if it's not available.