Bug 514053 - Environment Canada (envcan) weather provider broken. API structure changed!
Summary: Environment Canada (envcan) weather provider broken. API structure changed!
Status: RESOLVED NOT A BUG
Alias: None
Product: plasmashell
Classification: Plasma
Component: Weather widget (other bugs)
Version First Reported In: master
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-01 19:09 UTC by kde
Modified: 2026-01-04 15:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2026-01-01 19:09:36 UTC
The Environment Canada weather data provider has stopped working. Investigation shows Environment Canada restructured their data distribution server (dd.weather.gc.ca).

Old URL format (no longer works, returns 404):
https://dd.weather.gc.ca/citypage_weather/xml/ON/s0000458_e.xml

New URL format (works, confirmed):
https://dd.weather.gc.ca/today/citypage_weather/ON/{HH}/YYYYMMDDTHHMMSS.xxxZ_MSC_CitypageWeather_s0000458_en.xml

Key changes:
1. Added /today/ prefix
2. Removed /xml/ subdirectory
3. Added hourly subdirectories (/00/ through /23/)
4. Filename changed from {stationId}_e.xml to timestamped {timestamp}_MSC_CitypageWeather_{stationId}_en.xml

The envcan ion at /usr/lib64/qt6/plugins/plasma/weather_ions/envcan.so needs to be updated to use the new API structure.

Steps to reproduce:
1. Add Weather Report widget
2. Configure with Environment Canada provider and any Canadian location (I've used Toronto)
3. Widget fails to fetch data
Comment 2 cwo 2026-01-02 07:41:39 UTC
Which version of Plasma are you using?
Comment 3 kde 2026-01-03 09:50:26 UTC
(In reply to kde from comment #1)
> Here's an example link for Toronto -
> https://dd.weather.gc.ca/today/citypage_weather/ON/14/20260101T140113.
> 665Z_MSC_CitypageWeather_s0000458_en.xml

Operating System: Fedora Linux 43
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Comment 4 kde 2026-01-03 09:52:35 UTC
> Operating System: Fedora Linux 43
> KDE Plasma Version: 6.5.4
> KDE Frameworks Version: 6.21.0

Qt Version: 6.10.1
Comment 5 cwo 2026-01-03 10:06:33 UTC
FWIW, I can't reproduce this on master, and don't see anything relevant since then. I remember the Env Can provider being changed to a new api for 6.4 or 6.5 though.
Comment 6 Ismael Asensio 2026-01-03 12:56:14 UTC
This is weird. The API change of the envcan URLs was addressed back in Plasma 6.4 and 6.5: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5591, so it shouldn't affect recent versions. 

This might be an issue older add-on library lingering on.
Comment 7 kde 2026-01-03 23:56:45 UTC
Update... I've checked my laptop, and you guys are right:  it's an issue with my system.  I'm using the same service (EnvCan) and it works on the laptop!

A workaround for this (as mentioned elsewhere, by another contributor) was to switch over to BBC weather. This has been working for me so far.

I appreciate your time, effort, and happy new year!
Cheers!

PS: I'm not sure if I mark it as resolved (or not), but please close this ticket. No further action necessary.
Comment 8 cwo 2026-01-04 15:34:18 UTC
Closing as requested.