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

openweathermap icons matching + can't format header text size + moon text and icon sizes #112

Open
polonezkombi opened this issue Oct 20, 2024 · 0 comments

Comments

@polonezkombi
Copy link

polonezkombi commented Oct 20, 2024

Hi,

I installed basic ha-card-weather-conditions.js from HACS. After configuring, most looks good, except I have some issues with weather states (openweathermap), like

  • openweathermap condition: clear-night
  • openweathermap weather: clear sky
    image
    (this is the same timepoint state for 2 sensors, both are unrecognizable by ha-card-weather-conditions).

are not showing any icon. No state also for fog.

I saw in the GitHub /src/ path ha-cwc-openweathermap.ts, added this to my HA and resources in my dashboard, but it didn't change anything.

My questions are:

  1. How to implement ha-cwc-openweathermap.ts (or do something else) to make openweathermap icons be qualified properly regarding to ha-card-weather-conditions.js script written?
    I tried to solve it by adding this (.ts to JavaScript environment) at the last point of ha-card-weather-conditions.js, didn't work
    `const cwcOpenWeatherMapDayIcons = {
    "clear sky": "day",
    "few clouds": "cloudy-day-1",
    "scattered clouds": "cloudy-day-2",
    "broken clouds": "cloudy-day-3",
    "shower rain": "rainy-3",
    "rain": "rainy-2",
    "thunderstorm": "tropical-storm",
    "snow": "snowy-2",
    "mist": "fog",
    };

    const cwcOpenWeatherMapNightIcons = {
    ...cwcOpenWeatherMapDayIcons,
    "clear sky": "night",
    "few clouds": "cloudy-night-1",
    "scattered clouds": "cloudy-night-2",
    "broken clouds": "cloudy-night-3",
    };`

  2. How to change header (I mean the name field over moon) and moon text sizes?
    Changing their code in ha-card-weather-conditions.js didn't work, as well as after installation of card-mod and addressing .title, .name and .moon

Thanks!

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

No branches or pull requests

1 participant