matthewwall / weewx-forecast

forecasting extension for weewx
GNU General Public License v3.0
4 stars 18 forks source link

Add Canadian "Environment Canada" hourly forecast source #11

Open brentfraser opened 4 years ago

brentfraser commented 4 years ago

I'm interested is showing the Hourly Forecast information in weewx. The data for a particular city in Canada is presented in HTML (there may be an API available but that will take some research). For example: https://weather.gc.ca/forecast/hourly/ab-52_metric_e.html

ab = Province of Alberta 52 = city code?, 52 is Calgary metric = units e =language (e=english, f=french)

brentfraser commented 4 years ago

Environment Canada also has an XML feed: https://eccc-msc.github.io/open-data/msc-data/citypage-weather/readme_citypageweather-datamart_en/

So the XML version of the HTML page for Calgary given above would be: https://dd.weather.gc.ca/citypage_weather/xml/AB/s0000047_e.xml