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

Update sensor.yaml - Correcting for partlyclouded and night #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chunkysteveo
Copy link
Contributor

Updates to condition value for 'partlycloudy' to be set to 'partly-cloudy' for MDI icons to work, and the new met.no integration checks for night time clear weather now using sun.down, so need to check 'clear-night' to 'night', as MDI does not have clear-night icon.

Updates to condition value for 'partlycloudy' to be set to 'partly-cloudy' for MDI icons to work, and the new met.no integration checks for night time clear weather now using sun.down, so need to check 'clear-night' to 'night', as MDI does not have clear-night icon.
@DanielHabenicht
Copy link

You could just update the map instead:

lambda: |-
      // Map weather states to MDI characters.
      std::map<std::string, std::string> weather_icon_map
        {
...
          {"partly-cloudy", "\U000F0595"},
          {"clear-night", "\U000F0594"},
        };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants