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.

    How to resize Icon and Change Day language in WunderGround

    Scheduled Pinned Locked Moved General Discussion
    18 Posts 4 Posters 11.7k Views 4 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.
    • N Offline
      nobita
      last edited by

      Re: WunderGround Icon name?
      0_1488354937056_1479296936852-img_4554.jpg
      as photo above ,How can I resize Icon symbol (as thermometer and Umbrella) and Change Day language

      Thanks for helps

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @nobita
        last edited by

        @nobita

        .MMM-WunderGround table.small .wi {
            font-size: 10px;
        }
        
        .MMM-WunderGround table.small .forecastWeatherIcon {
            height: 10px;
            width: 10px;
        }
        

        Please create a github issue if you need help, so I can keep track

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          nobita @strawberry 3.141
          last edited by

          @strawberry-3.141 Thanks,I will Try later

          1 Reply Last reply Reply Quote 0
          • W Offline
            wizz
            last edited by

            I wounder as i tried to set the lang tosv as it is for Sweden and still it display English? any solution for that?

            Mykle1M 1 Reply Last reply Reply Quote 0
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @wizz
              last edited by Mykle1

              @wizz

              The language of the days. Goes in your config.js for WunderGround

              lang: ‘en’, Change this to your language, or change language: 'en', at the top of your config.js, unless you want everything else in English.

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • W Offline
                wizz
                last edited by

                @Mykle1 i got this in my config.js
                At the top language: ‘sv’, as i want it in Swedish.
                Also i have the WunderGround lang: ‘sv’,

                But it still shows in English and not in Swedish?

                Mykle1M strawberry 3.141S 3 Replies Last reply Reply Quote 0
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer @wizz
                  last edited by

                  @wizz said in How to resize Icon and Change Day language in WunderGround:

                  But it still shows in English and not in Swedish?

                  Yes, that’s odd. You could try removing lang: ‘sv’, from the WunderGround portion of your config.js.

                  Also, are you sure you’re using the most recent version of WunderGround?
                  In your terminal, go to ~/MagicMirror/modules/MMM-WunderGround $
                  and type git pull, then restart your mirror

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @wizz
                    last edited by

                    @wizz said in How to resize Icon and Change Day language in WunderGround:

                    But it still shows in English and not in Swedish?

                    I just checked my translations folder in the MMM-WunderGround folder. I only have de, en, fr, nl and pl. This may be where your problem is.

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 0
                    • strawberry 3.141S Offline
                      strawberry 3.141 Project Sponsor Module Developer @wizz
                      last edited by strawberry 3.141

                      @wizz the module uses momentjs to create those day abbrevations. maybe you’re missing the moment locales for swedish.

                      also the config option lang has no effect at all as it is not used anywhere in the code, maybe it is from an old version. The language which is used for moment js is the global config language.

                      Please create a github issue if you need help, so I can keep track

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        wizz
                        last edited by

                        @strawberry-3-141 the moment locales how do i add that? if it is missing?

                        strawberry 3.141S 1 Reply Last reply Reply Quote 0
                        • strawberry 3.141S Offline
                          strawberry 3.141 Project Sponsor Module Developer @wizz
                          last edited by strawberry 3.141

                          @wizz The module dependency moment.js gets mapped in the vendor directory to the file moment-with-locales.js and in there is the locale sv. Do the other modules work with swedish language? Is only a part working in swedish? Can you make a screenshot?

                          Please create a github issue if you need help, so I can keep track

                          1 Reply Last reply Reply Quote 0
                          • W Offline
                            wizz
                            last edited by

                            @strawberry-3-141 Later on tonight i will try to make a screenshot of that. and hope to get that right :)

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              wizz
                              last edited by

                              @strawberry-3-141 All Modules work with Swedish but not WunderGround and also the Traffic Module is only in English but the rest works with Swedish?

                              1 Reply Last reply Reply Quote 0
                              • W Offline
                                wizz
                                last edited by wizz

                                @strawberry-3-141 The default Weather module display in Swedish but not the Wunderground module ?
                                This means that the moment locales works.

                                strawberry 3.141S 2 Replies Last reply Reply Quote 0
                                • strawberry 3.141S Offline
                                  strawberry 3.141 Project Sponsor Module Developer @wizz
                                  last edited by

                                  @wizz I’ll have a look

                                  Please create a github issue if you need help, so I can keep track

                                  1 Reply Last reply Reply Quote 0
                                  • strawberry 3.141S Offline
                                    strawberry 3.141 Project Sponsor Module Developer @wizz
                                    last edited by

                                    @wizz Ok I digged a little bit deeper than last time. As it points out the config option in MMM-Wunderground has an usage in the node_helper I didn’t check before. The problem is that Wunderground uses for some languages some uncommon language codes

                                    {
                                      module: "MMM-WunderGround",
                                      position: "top_left",
                                      config: {
                                        lang: "sw"
                                      }
                                    }
                                    

                                    the full list can be found here https://www.wunderground.com/weather/api/d/docs?d=language-support

                                    Please create a github issue if you need help, so I can keep track

                                    N 1 Reply Last reply Reply Quote 1
                                    • N Offline
                                      nobita @strawberry 3.141
                                      last edited by

                                      @strawberry-3.141 's not work

                                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                      • strawberry 3.141S Offline
                                        strawberry 3.141 Project Sponsor Module Developer @nobita
                                        last edited by

                                        @nobita I get the changed language 0_1489758158504_swedish.PNG

                                        Please create a github issue if you need help, so I can keep track

                                        1 Reply Last reply Reply Quote 1

                                        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 / 1
                                        • 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