I hope this might help someone, but I find NOAA to have poor API documentation, and I just found something interesting. I wanted some data from their forecast weather page and noticed below the map itself, there's a link to "XML". Click on it and change the "FcstType" from "dwml" to "json" and there you go.. you got the logic for a simple API call, and simply add it to a script to replace the latitude and longitudes.
# Some Simple Python Code from requests import get from datetime import datetime def get_forecast(lat, lon): base_url, type = 'forecast.weather.gov', 'json' return get(f'{base_url}/MapClick.php?lat={lat}&lon={lon}&FcstType={type}').json() print(get_forecast('41.6741', '-83.5067'))
Bit late, but W coords need to be negative
for the longitude you need the minus sign
I hope this might help someone, but I find NOAA to have poor API documentation, and I just found something interesting. I wanted some data from their forecast weather page and noticed below the map itself, there's a link to "XML". Click on it and change the "FcstType" from "dwml" to "json" and there you go.. you got the logic for a simple API call, and simply add it to a script to replace the latitude and longitudes.
# Some Simple Python Code
from requests import get
from datetime import datetime
def get_forecast(lat, lon):
base_url, type = 'forecast.weather.gov', 'json'
return get(f'{base_url}/MapClick.php?lat={lat}&lon={lon}&FcstType={type}').json()
print(get_forecast('41.6741', '-83.5067'))
Did you ever identify an API for your use? I wanted to use their radar api... but it looks like it is still not supported.
I haven't moved forward with any, but I was looking at www.climacell.co/pricing/ and openweathermap.org/price. Both seem to have decent free tiers.
close lol WFO is weather forecast office
Wasted my time, don't watch