Comments (13)
I was about to open a bug for Home Assistant for this very issue... I'll add my comment here instead.
It looks like a lot of stations do not take observations at all... including the one closest to me.
Markham, Ontario (i.e. https://weather.gc.ca/city/pages/on-85_metric_e.html)
My suggestion is if possible, when "Condition not observed" is the data, it might be nicer to use the value from the hourly forecast instead -- i.e. https://weather.gc.ca/forecast/hourly/on-85_metric_e.html
from env_canada.
Do you know what station you're using? This value is returned if the station hasn't reported a condition, e.g. https://weather.gc.ca/city/pages/nu-24_metric_e.html.
It could be that the default closest station doesn't report full data. You can override the automatic selection using the station
configuration parameter with a station ID from this CSV file.
from env_canada.
I'm using custom defined station as per your instructions. However, does it make sense to remove "Not observed" as that has no value whatsoever? Could be a simple enough rule to filter that out?
from env_canada.
I suppose I could just set it as null
, though I’m not sure what that will show up as in the UI.
If you’re using a station with no observations, are you using the weather component only for the forecast aspect?
from env_canada.
Weather component for the forecast and Sensor for details of the current conditions.
And no, seems that my station doesn't support "conditions". So, if there is a way to not display that label - that'd be one way to go.
from env_canada.
That's a great idea, I should be able to work that in without too much trouble. Thanks!
from env_canada.
Here's the Xpath query to get the first hourlyForecast element:
//hourlyForecastGroup/hourlyForecast[1]
And for the condition we care about:
//hourlyForecastGroup/hourlyForecast[1]/condition
from env_canada.
Thanks, but it's even easier; the env_canada
library already returns a dict
with the forecast icon codes and temperatures. I just need to use them if the data is missing.
from env_canada.
Fixed!
from env_canada.
Eh? Did you push the commit? I don't see it in the repo.
from env_canada.
Commit: michaeldavie/home-assistant@93f9be3
To be merged as part of this PR: home-assistant/core#24884
from env_canada.
I'm not sure this is working quite right.
According to HA, the weather hasn't updated in Markham in 5 days.
However, it's quite not rainy atm, not was it during the daytime yesterday...
The component itself is working, as I also have a weather condition for Charlottetown which it shows updated to Cloudy 9 hours ago, which matches with the observed conditions there.
Markham (Buttonville) doesn't support observed conditions (always n/a), Charlottetown does.
from env_canada.
Thanks, I noticed this issue as well. The forecasts weren't being updated correctly, so I've fixed this in 0.0.25. I just opened a PR to merge this change into Home Assistant, and hopefully it'll make it into 0.99.
from env_canada.
Related Issues (20)
- Feature Request - Add Yesterday's High/Low Temperature HOT 2
- Historical hourly data HOT 3
- issue on running examples HOT 4
- Support hourly wind forecast HOT 3
- Precipitation format has changed in source XML. HOT 1
- Connection failed to dd.meteo.gc.ca HOT 3
- Sunrise / sunset data HOT 3
- 'cannot identify image file' error while creating radar loop HOT 4
- error fetching environment_canada AQHI data HOT 1
- error fetching environment_canada weather data HOT 4
- Unable to get the get_historical_stations HOT 2
- 2023.4.0b6 Weather bulletins not showing up for Ottawa ( Kanata - Orleans) HOT 4
- Unssuported String : "calme" HOT 1
- Interger and Float Parsing is broken for ECWeather in 0.5.32 HOT 1
- Jupyter Notebook Error HOT 3
- Wrong output cardinality HOT 1
- Trying to reconcile hourly forecast with Env. Canada website data HOT 2
- EC Radar Test fails HOT 1
- ECWeather Type Error HOT 2
- Timestamp meta data HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from env_canada.