• 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.0m 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.
  • S Offline
    sdetweil @Manu85
    last edited by Jan 28, 2024, 9:15 PM

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

        MMM-OneCallWeather.js
    

    because you changed it.

    git checkout MMM-OneCallWeather.js
    

    remember, never change module code, all config goes in config.js

    tempUnits: "metric"
    

    NOT “C”

    package-lock.json, erase it then git pull

    Sam

    How to add modules

    learning how to use browser developers window for css changes

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

      @sdetweil If I understood correctly it is that I changed something in ```
      MMM-OneCallWeather.js

      I understand that you are saying that I changed the value from ```
      tempUnits: "metric"
      ``` to ```
      tempUnits: "c" 
      ```? I didn't touch it, it's like that in the file (I gave you a screenshot from github) and I promise you that I understand that nothing should be changed in these folders.
      so now I have to pass the line: ```
      git checkout MMM-OneCallWeather.js 
      ```?
      and then I delete: package-lock.json and then I do git pull, should I put: ```
      tempUnits: "metric"
      ``` so different from what is in the ```
      MMM-OneCallWeather.js
      ```?
      1 Reply Last reply Reply Quote 0
      • M Offline
        Manu85 @sdetweil
        last edited by Jan 28, 2024, 11:22 PM

        @sdetweil
        724ce607-3dbe-4fed-b4e0-58e3fc812b3e-image.png

        S 1 Reply Last reply Jan 28, 2024, 11:34 PM Reply Quote 0
        • S Offline
          sdetweil @Manu85
          last edited by Jan 28, 2024, 11:34 PM

          @Manu85 ok, got confused with default weather module using same property

          “C” is correct

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 2 Replies Last reply Jan 29, 2024, 8:43 AM Reply Quote 0
          • M Offline
            Manu85 @sdetweil
            last edited by Jan 29, 2024, 8:43 AM

            @sdetweil it’s ok, I did as you told me and everything is in order, when you have a moment can you answer my previous question about updates if you can like it?

            S 1 Reply Last reply Jan 29, 2024, 1:40 PM Reply Quote 0
            • M Offline
              Manu85 @sdetweil
              last edited by Jan 29, 2024, 10:42 AM

              @sdetweil I have AGAIN one question I would like to change the size of the weather forecat icons, by opening the console (crtl+shift+i) I see that if I change the number (highlighted in yellow) it changes the size of the icon, for example against I don’t know how to put this in the custom css

              07e91502-39cc-4a04-9636-4d580638a42b-image.png

              S 1 Reply Last reply Jan 29, 2024, 1:45 PM Reply Quote 0
              • S Offline
                sdetweil @Manu85
                last edited by Jan 29, 2024, 1:40 PM

                @Manu85 yes, I think you correct.on updated. I see he fixed the colored property and you updated the module.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @Manu85 icon size swipe to mark that stuff in the upper right box, ctrl-c to copy

                  in your editor open on

                  custom.css at the bottom

                  paste it in

                  and put the proper selector around it

                  maybe

                  .weather .icon { 
                  }
                  

                  what was the stuff on the line you selected. hard to see here on my phone (img?)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

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

                    @sdetweil the selected content is as follows, if I put for example 64 instead of 44 the icon is enlarged

                    a523f746-221f-4700-a08a-67b05bb71544-image.png

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

                      @Manu85 i meant the html view item

                      we need to make a selector clause in the custom.css to select JUST the icon images, right

                      .weather img ???? {
                      the stuff from the tip right box, pasted in here
                      }
                      

                      you don’t want EVERY img in weather…

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 1 Reply Last reply Jan 29, 2024, 3:53 PM Reply Quote 0
                      • 1
                      • 2
                      • 25
                      • 26
                      • 27
                      • 28
                      • 29
                      • 30
                      • 31
                      • 27 / 31
                      27 / 31
                      • First post
                        270/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