• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Changing icons of the modules Current Weather and Weather Forecast

Scheduled Pinned Locked Moved Development
301 Posts 30 Posters 1.1m Views 33 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    Manu85 @sdetweil
    last edited by Jan 16, 2024, 2:22 PM

    @sdetweil dans mon custom css j’ai fait ces entrées par exemple (je ne sais pas si c’est ce que vous voulez…):

    /*
     * SONDE DHT 22 temperature interieur
    */
    #dht_temp {
      font-size: 40px;
    
    /*
     * TEMPERATURE CPU
    */
    }
    #pi_temp {
      font-size: 30px;
    }
    
    /*
     * CALENDRIER ICONES AGENDA
    */
    .fa.fa-male {
      color: #2B60DE; /* Dodger Blue */
    }
    .fa.fa-birthday-cake {
      color: #ff0000; /* Red */
    }
     
    .fa.fa-trash-o {
      color: #00FF00; /* Green */
    }
    
    .fa.fa-calendar {
      color: #F660AB; /* Hot Pink */
    
    S 1 Reply Last reply Jan 16, 2024, 2:23 PM Reply Quote 0
    • S Offline
      sdetweil @Manu85
      last edited by Jan 16, 2024, 2:23 PM

      @Manu85 well, I meant the css info for the icons for weather

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      M 1 Reply Last reply Jan 16, 2024, 2:28 PM Reply Quote 0
      • M Offline
        Manu85 @sdetweil
        last edited by Jan 16, 2024, 2:28 PM

        @sdetweil ah ok here are the entries in my custom css file for the weather, is this what you want?

        .weather .wi-day-sunny {
        content: url(“/css/icons/day.svg”);
        }
        
        .weather .wi-day-cloudy {
        content: url(“/css/icons/cloudy-day-1.svg”);
        }
        
        .weather .wi-rain {
        content: url(“/css/icons/rainy-6.svg”);
        }
        
        .weather .wi-night-clear {
        content: url(“/css/icons/night.svg”);
        }
        
        .weather .wi-night-cloudy {
        content: url(“/css/icons/cloudy-night-2.svg”);
        padding-right: 15px;
        padding-top: 10px;
        }
        
        .weather .wi-cloudy {
        content: url(“/css/icons/cloudy.svg”);
        }
        
        .weather .wi-showers {
        content: url(“/css/icons/rainy-7.svg”);
        }
        
        .weather .wi-thunderstorm {
        content: url(“/css/icons/thunder.svg”);
        }
        
        .weather .wi-snow {
        content: url(“/css/icons/snowy-6.svg”);
        }
        
        .weather .wi-cloudy-windy {
        content: url(“/css/icons/cloudy-day-3.svg”);
        }
        
        .weather .wi-night-rain {
        content: url(“/css/icons/rainy-6.svg”);
        }
        
        .weather .wi-night-snow {
        content: url(“/css/icons/snowy-6.svg”);
        }
        
        .weather .wi-night-thunderstorm {
        content: url(“/css/icons/thunder.svg”);
        }
        
        .weather .wi-night-showers {
        content: url(“/css/icons/rainy-7.svg”);
        }
        
        .weather .wi-fog {
        content: url(“/css/icons/cloudy.svg”);
        }
        
        .weather .wi-night-alt-cloudy-windy {
        content: url(“/css/icons/cloudy-night-1.svg”);
        }
        
        /* Aenderungen Wettervorhersage */
        
        .weather .weathericon {
        position: absolute;
        left: 35px;
        z-index: 1;
        margin-top: -30px;
        height: 60px;
        }
        
        .weather .wi-day-sunny {
        content: url(“/css/icons/day.svg”);
        padding-left: 6px;
        padding-top: 5px;
        height: 50px;
        }
        
        .weather .wi-day-cloudy {
        content: url(“/css/icons/cloudy-day-1.svg”);
        }
        
        .weather .wi-rain {
        content: url(“/css/icons/rainy-6.svg”);
        padding-left: 8px;
        padding-top: 5px;
        height: 45px;
        }
        
        .weather .wi-night-clear {
        content: url(“/css/icons/night.svg”);
        }
        
        .weather .wi-night-cloudy {
        content: url(“/css/icons/cloudy-night-2.svg”);
        height: 50px;
        padding-left: 5px;
        padding-top: 7px;
        }
        
        .weather .wi-cloudy {
        content: url(“/css/icons/cloudy.svg”);
        }
        
        .weather .wi-showers {
        content: url(“/css/icons/rainy-7.svg”);
        }
        
        .weather .wi-thunderstorm {
        content: url(“/css/icons/thunder.svg”);
        }
        
        .weather .wi-snow {
        content: url(“/css/icons/snowy-6.svg”);
        }
        
        .weather .wi-cloudy-windy {
        content: url(“/css/icons/cloudy-day-3.svg”);
        height: 45px;
        padding-left: 8px;
        padding-top: 7px;
        }
        
        .weather .wi-night-rain {
        content: url(“/css/icons/rainy-6.svg”);
        padding-left: 8px;
        padding-top: 5px;
        height: 45px;
        }
        
        .weather .wi-night-snow {
        content: url(“/css/icons/snowy-6.svg”);
        }
        
        .weather .wi-night-thunderstorm {
        content: url(“/css/icons/thunder.svg”);
        }
        
        .weather .wi-night-showers {
        content: url(“/css/icons/rainy-7.svg”);
        }
        
        .weather .wi-fog {
        content: url(“/css/icons/cloudy.svg”);
        }
        
        .weather .wi-night-alt-cloudy-windy {
        content: url(“/css/icons/cloudy-night-1.svg”);
        height: 50px;
        padding-left: 5px;
        padding-top: 7px;
        }
        
        S 1 Reply Last reply Jan 16, 2024, 2:30 PM Reply Quote 0
        • S Offline
          sdetweil @Manu85
          last edited by Jan 16, 2024, 2:30 PM

          @Manu85 said in Changing icons of the modules Current Weather and Weather Forecast:

          > content: url(“/css/icons/rainy-6.svg”);
          

          note that the quotes are leaning, not straight up and down

          change like this

          content: url("/css/icons/rainy-6.svg");
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Jan 16, 2024, 2:40 PM Reply Quote 0
          • M Offline
            Manu85 @sdetweil
            last edited by Jan 16, 2024, 2:40 PM

            @sdetweil do they have to be like that? because that’s how they were before I modified them with </>
            }

            .currentweather .wi-day-sunny {
            content: url(“/css/icons/day.svg”);
            }

            .currentweather .wi-day-cloudy {
            content: url(“/css/icons/cloudy-day-1.svg”);
            }

            .currentweather .wi-rain {
            content: url(“/css/icons/rainy-6.svg”);

            S 1 Reply Last reply Jan 16, 2024, 2:41 PM Reply Quote 0
            • S Offline
              sdetweil @Manu85
              last edited by Jan 16, 2024, 2:41 PM

              @Manu85 they ALL must be straight up and down…

              I was warning you that the copy you did originally had the wrong quote marks

              they ALL MUST BE ONLY

              "
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              M 1 Reply Last reply Jan 16, 2024, 2:53 PM Reply Quote 0
              • M Offline
                Manu85 @sdetweil
                last edited by sdetweil Jan 16, 2024, 2:54 PM Jan 16, 2024, 2:53 PM

                @sdetweil like that ?

                .currentweather .wi-night-clear {
                content: url("/css/icons/night.svg");
                }
                
                S 1 Reply Last reply Jan 16, 2024, 2:54 PM Reply Quote 0
                • S Offline
                  sdetweil @Manu85
                  last edited by Jan 16, 2024, 2:54 PM

                  @Manu85 yes

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 3 Replies Last reply Jan 16, 2024, 2:56 PM Reply Quote 0
                  • M Offline
                    Manu85 @sdetweil
                    last edited by Jan 16, 2024, 2:56 PM

                    @sdetweil excuse me, I’ll do it right away

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Manu85 @sdetweil
                      last edited by Jan 16, 2024, 3:05 PM

                      @sdetweil by putting them straight up and down my weather has the original icons

                      avec guillemets droit.JPG

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 7
                      • 8
                      • 9
                      • 10
                      • 11
                      • 30
                      • 31
                      • 9 / 31
                      9 / 31
                      • First post
                        82/301
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy