Hi, There will be a change in early 2024 to get the forecasts. Weather.xxxx entities will no longer provide forecasts automatically, you must request them. Here’s how I do it.
Tried to extract the hourly weather forecast with your code above @ValMarDav. I could not make it work. I believe there is a difference in the data contained depending on the weather station I use (Sherbrooke).
Here is what I believe is the entity from Environment Canada that contains the best forecast information.
Hi, What I published 6 days ago, no longer works because they have again changed the response of the service in the publication of core 2023.12. Now the result contains the name of the Weather entity because you can specify several in the same query. So to read the forecasts, you must specify which weather entity you want to read from. Here is the new way to create the template.
I don’t mind polling the data manually/externally and create a sensor but just want to check if someone figured out a way to achieve this before reinventing the wheel.
I don’t think this is built in. I did notice that there was an RSS feed link provide by environment Canada on the bottom of the warning (not shown in your picture). I am not sure if the HA RSS feed reader would create a sensor for this. I will try at my next opportunity.
The integration used to pull the full alert data from the ECCC website using HTML scraping, since it’s not included in the XML data. However, HA took a hard stance against HTML scraping so I had to remove this functionality. I haven’t looked at this in a while, so if anyone has any suggestions I’m all ears!
I appreciate that scraping is no longer a part of the integration, but scraping is still an available option with HA. I am aware that EC could change their website at any time and thus break this scraping…But do you have any details on how we could scrape the website ourselves based on the Scrape integration that exists? No warranty is expected or implied by anything you can provide.
I cannot figure out how to turn on hourly forecasts again, I just had a SD card die and I am rebuilding. Hourly forecasts, were those lost when scraping was banned?
Is it possible to put the full version of Environment Canada addon into HACS with all it’s webscraping glory?
@michaeldavie, I may have mentioned this before but would it be possible to have the summary added to an attribute so that it is not truncated by the 255 character limit?