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 in config.js

      symbol: 'trash-can',
      
      

      in custom css

      .fas.fa-trash-can
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Manu85
        last edited by

        @Manu85 thanks. might help others

        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 do you thank me? I dream it’s you who teaches me hundreds of things…
          on the other hand I can’t understand the temperature in config.js I added

          tempUnits: "C",
          

          but that doesn’t change anything it’s still 282°

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

            @Manu85 I think that is supposed to be

             "metric"
            

            this is the doc for the default settings

            Screenshot_20240127_153619_Chrome.jpg

            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 my config.js is already like this!

              language: "fr",
              	timeFormat: 24,
              	units: "metric",
              	units: "kmh",
              	tempUnit: "C",
              
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Manu85
                last edited by

                @Manu85 the doc says

                tempUnits What units to use for temperature. If not specified, the module uses the units value from config.js.

                Possible values: config.units = Specified by config.js, metric = Celsius, imperial = Fahrenheit
                Default value: config.units

                same choices… metric or imperial (not C)

                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 @sdetweil
                  last edited by sdetweil

                  @sdetweil
                  you are right (as usual) I put units:

                  "metric",
                  

                  in config.js of the module and it works, you are the best

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

                    @Manu85 if you don’t specify in the module config it uses the settings at the top of config.js

                    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 I still have some advice to ask you but I’m going to bed, because in France it’s already Sunday and it’s 00:03 AM ;-)
                      thank you again for your help

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

                        @Manu85 ok, good night. I am driving til after 3 pm us mountain time. I think your time +8

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

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

                          @sdetweil good luck and thank you for your help

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

                            @sdetweil yes indeed, we do not have the same night area…

                            56763866-eb8c-433c-81dd-9f5238770d7a-image.png

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

                              @sdetweil Hello, I didn’t succeed in feeling like, but it doesn’t matter, I’ll leave it like that…
                              if I understood correctly I need to keep my MM up to date, do I need to run your script every 3 months or is there a solution to do it automatically and is it also possible for the mirror modules?

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

                                @sdetweil I got a weather module update alert, I tried to update, but I got this error message, did I do something wrong?

                                pi@MagicMirror:~/MagicMirror/modules/MMM-OneCallWeather $ git pull
                                Depuis https://github.com/KristjanESPERANTO/MMM-OneCallWeather
                                   f7f964d..0069540  main       -> origin/main
                                Mise ▒ jour f7f964d..0069540
                                error: Vos modifications locales aux fichiers suivants seraient ▒cras▒es par la fusion▒:
                                        MMM-OneCallWeather.js
                                        package-lock.json
                                Veuillez valider ou remiser vos modifications avant la fusion.
                                Abandon
                                pi@MagicMirror:~/MagicMirror/modules/MMM-OneCallWeather $
                                
                                S 1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @Manu85
                                  last edited by

                                  @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 Reply Quote 0
                                  • M Offline
                                    Manu85 @sdetweil
                                    last edited by

                                    @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

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

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

                                        @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 Reply Quote 0
                                        • M Offline
                                          Manu85 @sdetweil
                                          last edited by

                                          @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 Reply Quote 0
                                          • M Offline
                                            Manu85 @sdetweil
                                            last edited by

                                            @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 Reply Quote 0

                                            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
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 15
                                            • 16
                                            • 13 / 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