Environment Canada Integration: Add link to the station web page or xml

The environment canada weather service doesn’t have all their stations in the database that can be downloaded. For example this station:

Be nice if we could paste this into the integration configuration, and have that weather retrieved.

It is tricky to locate the XML data related to this, since the station id is not encoded in the web page anywhere.

I have asked Environment Canada to add the Victoria BC Airport location into their cities database. Who knows if they will do anything.

Here is an XML file for that weather station, you can see the station id is 0000775.

https://dd.weather.gc.ca/20250508/WXO-DD/citypage_weather/BC/00/20250508T000123.893Z_MSC_CitypageWeather_s0000775_en.xml

Have you tried just using your latitude/longitude which the integration also supports as input?

Environment Canada forwarded your question along to me. I looked into it a bit, and I’m not sure if the data is available. They seem to have switched to providing pages for every city in Canada, using current conditions from the closest station. However, I’m not sure where the forecast data is coming from; it’s not included in the data at:

Index of /citypage_weather/xml.

To your suggestion of getting the data from the city pages directly, Home Assistant does not permit integrations to rely on web scraping: