Weatherpanel#375
Conversation
add templow and condition support to the chart
|
@fanthos, thanks for your PR! By analyzing the history of the files in this pull request, we identified @Tommatheussen, @armills and @andrey-git to be potential reviewers. |
|
Can you include a screenshot? |
|
Travis also reported some lint errors that need to be fixed (the final test run will fail, that one can be ignored) |
|
What is the policy for UI elements like these, last release it changed from graph to a table, now someone suggests to change it back to a (more extensive) graph, and the release after back to a table? The weather card is the one I like least of all cards, main reason I want #365 to do this, so I don't mind a few changes, but just wondering if there is a policy. |
|
Personally I like the table more because I can see more detailed information. @bramkragten @mjj4791 |
|
The weather component should be more standardized anyway, like the attribute for wind bearing, the one element uses windBearing the other wind_bearing. Besides that the UI doesn't check if the attribute excists and then faulty displays North. That's just one example, for the standard attributes, that we will show in the UI, we should have standards. |
|
Agree. |
|
All the property names are standardized in the Weather entity abstract base class: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/weather/__init__.py#L48-L169 There has been no policy on the weather card and I should probably not have merged the previous PR because it was such a major change. We do have guide lines for things in the frontend in general:
For the weather card, I wouldn't mind being inspired by the Google weather card (note that this screenshot is not their original card, I deleted some parts): And actually, that is already what we get after this PR, so that's good 👍 |
| @@ -194,6 +187,52 @@ | |||
| this.windBearing = this.windBearingToText(this.stateObj.attributes.windBearing); | |||
There was a problem hiding this comment.
There is no windBearing attribute. It should be wind_bearing.
There was a problem hiding this comment.
We should also always assume that certain attributes might not be available.
|
When implementing the above mentioned change regarding wind_bearing, I would also revise this: into something similar to this: This changes the following:
|
|
Document for I replaced the |
|
Looks better in my opinion! Just make sure the icon, temperature and the 3 attributes are all aligned. And I think mdi icons would make it look even better, and more consistent. It is easy to implement, just replace the |
|
+1 for using mdi icons! Consistency pleases my OCD 😛 |
|
Replace the current condition with mdi icons is not hard, but seems Google Charts does not support HTML annotation. |
|
Let's leave MDI icons for a next PR and let's get this merged. |
* Update siri-shortcuts.md Corrections and clarifications in steps 2-4, renumbered * Update docs/integrations/siri-shortcuts.md * Update docs/integrations/siri-shortcuts.md * Update docs/integrations/siri-shortcuts.md * Update docs/integrations/siri-shortcuts.md Co-authored-by: Tom Brien <TomBrien@users.noreply.github.com>











Replace table with Google Charts having templow and condition support.
#373