Skip to content
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

[weather] add humidity to hourly view, fix spacing error when using UV Index, add config option to hide precipitation entries that are zero #3526

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Remove Spacer
  • Loading branch information
OWL4C authored Sep 10, 2024
commit 1a1cd2d13fa7bc8d423aae9502d14e6c4d39cf9f
3 changes: 0 additions & 3 deletions modules/default/weather/hourly.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
<span class="wi weathericon wi-hot"></span>
{% endif %}
</td>
<td class="align-left bright spacer">
    <!-- 4 em spaces --->
</td>
{% endif %}
{% if config.showHumidity %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the new config options to the defaults object at the top of the file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean the defaults in the weather.js?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it is a new config property, so it needs to havea default value set, and the defaults:{} object contains those
as documented in the developers guide for modules

<td class="align-left bright humidity-hourly">
Expand Down