-
-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[environment canada] Weather update failed; no timestamp found #101533
Comments
Hey there @gwww, @michaeldavie, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) environment_canada documentation |
It appears to be related to my weather station id. Using the env_canada python module I was able to re-create the error using code:
outpout:
code:
outpout:
|
Observed the same for a nearby site. There appears to be a data outage for Perhaps instead of error'ing out at the first data pull fail, we could continue attempting to pull subsequent data (e.g. from Side note: this data outage might be related to outage at the Buttonville station, which is down since yesterday morning (maybe permanently? - the site is closing). EC website does seem to have a fallback and references another station now, but the XML datamart does not appear to do so. |
@jj-csg good observation about Buttonville being shutdown. I tried the next closest ones in Markham |
Same issue here, Can't get any of the Markham or Richmond Hill ones working.. What I did was take my own coordinates of my personal location.. and then take every station available in the list, put them in chatGPT, and told it to give me a list of stations that are closest to me.. found the Markham one was actually further, but the Vaughan s0000584 is also having issues.. Whitby s0000708 seems to be fine. |
This seems like a problem with the data source rather than the integration. |
@home-assistant close |
@michaeldavie while this does appear to be a data issue with Env Canada, it would be nice if the integration was able to work with incomplete data. Right now it completely fails due to the missing Using |
Agreed, as yes it's most definitely an issue with the source. The plugin
doesn't have good error handling and could be improved. It would be greatly
appreciated.
…On Mon, Oct 9, 2023, 12:56 Steve M ***@***.***> wrote:
@michaeldavie <https://github.com/michaeldavie> while this does appear to
be a data issue with Env Canada, it would be nice if the integration was
able to work with incomplete data. Right now it completely fails due to the
missing currentConditions in the XML, but the rest of the data is there.
Using s0000773 as example, CBC is surfacing the rest of the data just
fine on their weather page <https://www.cbc.ca/weather/s0000773.html>
even though the Current Conditions data is not being updated.
—
Reply to this email directly, view it on GitHub
<#101533 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG7T7YOAQUEYX77OIR7XJH3X6QUEPAVCNFSM6AAAAAA5VX2QCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJTGM2TIOJZGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@home-assistant reopen |
Thanks for the suggestion! This fix should be included in the next release. |
Looks great, @michaeldavie! Thanks again for your work on this, it's appreciated. |
Thanks, @michaeldavie for the fix! For all others interested, I wrote to EC regarding the data outage and received a response. As suspected, NAVCAN's YKZ Buttonville weather station is confirmed to be permanently closed (with the airport closing end of Nov). EC's website and app do use YTZ as backup, but the Datamart (used for this integration) does not. Their next relevant update is scheduled for March 2024, so no |
This fix has been included in version 2023.10.2. |
The problem
All Environment Canada sensors other than AQHI and the radar map are not updating
Wasn't sure if this started in 2023.10.0 so I reverted to 2023.9.3 and it's still a problem.
What version of Home Assistant Core has the issue?
2023.10.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
environment canada
Link to integration documentation on our website
https://www.home-assistant.io/integrations/environment_canada/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2023-10-06 08:18:55.398 ERROR (MainThread) [homeassistant.components.environment_canada] Unexpected error fetching environment_canada weather data: Weather update failed; no timestamp found Traceback (most recent call last): File "/lsiopy/lib/python3.11/site-packages/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/lsiopy/lib/python3.11/site-packages/homeassistant/components/environment_canada/__init__.py", line 116, in _async_update_data await self.ec_data.update() File "/lsiopy/lib/python3.11/site-packages/env_canada/ec_weather.py", line 378, in update raise ECWeatherUpdateFailed("Weather update failed; no timestamp found") env_canada.ec_weather.ECWeatherUpdateFailed: Weather update failed; no timestamp found 2023-10-06 08:18:55.409 WARNING (MainThread) [homeassistant.components.environment_canada] Unable to retrieve Environment Canada weather
Additional information
I tried to remove and re-add my location but that also doesn't work and I get the following error
No response
The text was updated successfully, but these errors were encountered: