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.6m 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

      @sdetweil I added in js.config

      classes:"forecast",
      

      after the line:

      module: "MMM-OneCallWeather",
      

      then in custom css:

      .forecast .weather-icon {
           font-size: 125%;
      }
      

      I refreshed but it doesn’t change anything…

      S 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Manu85
        last edited by sdetweil

        @Manu85 sorry, darn using the default calendar again… hang on
        this TOPIC is about default calendar and weather

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Do not disturb
          sdetweil @Manu85
          last edited by sdetweil

          @Manu85 in custom.css

          .MMM-OneCallWeather .weather-icon  img {
              max-width: 64px !important;    
          }
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 2 Replies Last reply Reply Quote 0
          • M Offline
            Manu85 @sdetweil
            last edited by

            @sdetweil I’m sorry, it’s my fault, I mixed up the topics…but I didn’t know how to make another topic and let it be you who answers me!
            I modified the custom and it works, thanks again for that

            S 1 Reply Last reply Reply Quote 0
            • M Offline
              Manu85 @sdetweil
              last edited by

              @sdetweil I still need you, in the weather module there are “bubbles” with the wind speed inside, but the numbers are not centered, I made screenshots of the console and I saw where I can change the position however I am unable to put this in my custom css, can you help me please?

              3db6d3af-8390-4972-830a-1fde9be27cca-image.png

              78d73559-8422-4d49-a321-97630215656c-image.png

              d5c9e8aa-0945-4570-a26e-5afabc684d99-image.png

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Manu85
                last edited by sdetweil

                @Manu85 so, you need to make the selector clause

                all the stuff before the {

                you know it starts w the module name class (with a leading dot)

                the bottom of the html pane has a list of the elements tree. the rightmost is the thing u are selected on

                for your prior post (on my phone again)
                1706543513190-eccf1f82-12aa-4411-ae1c-611152e9678a-image.png

                so you need to find the smallest unique list that makes it work. start from the right
                and you may have to use !important to force
                it. css always uses the most specific attributes

                drawing w my thumb…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • S Do not disturb
                  sdetweil @Manu85
                  last edited by

                  @Manu85 topic.

                  you should have been able to create a new topic

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    Manu85 @sdetweil
                    last edited by

                    @sdetweil thanks to you I succeeded, I hope I understood the logic well, I will try on other icons to be sure I understand, you are the best

                    56c1d9eb-7e75-4786-a23e-346ecd8d35c1-image.png

                    S 1 Reply Last reply Reply Quote 1
                    • M Offline
                      Manu85 @sdetweil
                      last edited by

                      @sdetweil I put that in my css…

                      .MMM-OneCallWeather .weather-icon  p {
                          top: -65px !important;    
                          left: 16px  !important;  
                      }
                      
                      S 1 Reply Last reply Reply Quote 1
                      • S Do not disturb
                        sdetweil @Manu85
                        last edited by

                        @Manu85 awesome!!!

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • S Do not disturb
                          sdetweil @Manu85
                          last edited by

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

                          I will try on other icons

                          it’s the same process icons or text…

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            Manu85
                            last edited by

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

                            @sdetweil I thought it was going to be simple…but no… I would like to enlarge the wind speed “bubble” because at the moment there is one number but when there are two for example 35 then it will exceed
                            I selected this part, is it correct?

                            cc5eaf4e-5689-4b3d-9046-0a20229972bc-image.png
                            then in the table I have this, with “img” at the bottom like for the weather icons and I don’t know what to put in css.custom to choose only this part, I tried many things but without success before giving you ask for help again

                            8d2c6a90-b18d-4669-b689-73a8a8b2405f-image.png
                            on the right I have this

                            be911347-82f0-46e5-bac7-900886c7878e-image.png

                            S 1 Reply Last reply Reply Quote 0
                            • S Do not disturb
                              sdetweil @Manu85
                              last edited by

                              @Manu85 sorry I do not know.

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              M 3 Replies Last reply Reply Quote 0
                              • M Offline
                                Manu85 @sdetweil
                                last edited by

                                @sdetweil ok, thanks again for all your help, I’ll try again

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  Manu85 @sdetweil
                                  last edited by

                                  @sdetweil It’s good I found it, thank you again for your help

                                  0cb45243-26f6-4bf6-85ae-12d67cdd84c2-image.png

                                  1 Reply Last reply Reply Quote 1
                                  • M Offline
                                    Manu85 @sdetweil
                                    last edited by

                                    @sdetweil for information and for other people I put in my custom.css, thank you for your help

                                    .weather-icon > span > img {
                                          height: 72px; /* to adjust the size of the "wind bubble*/
                                    }
                                    
                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      Manu85 @Manu85
                                      last edited by

                                      thanks to @KristjanESPERANTO for his help

                                      1 Reply Last reply Reply Quote 0
                                      • S svenpisa referenced this topic on
                                      • S sdetweil referenced this topic on

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • 1
                                      • 2
                                      • 12
                                      • 13
                                      • 14
                                      • 15
                                      • 16
                                      • 15 / 16
                                      • First post
                                        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