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.

    2.29.0 Weather Module w/api v3.0 works, sort of…

    Scheduled Pinned Locked Moved Solved Troubleshooting
    25 Posts 5 Posters 7.0k Views 5 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.
    • H Offline
      HeikoGr @Peter
      last edited by

      @Peter no, unfortunately not

      P 1 Reply Last reply Reply Quote 0
      • P Offline
        Peter @HeikoGr
        last edited by

        @HeikoGr what does it show in the header?
        And do you see the right weather for your location?
        Peter

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          HeikoGr @Peter
          last edited by

          @Peter it shows the timezone „EUROPE/BERLIN“, but the weather is correct.

          P R 2 Replies Last reply Reply Quote 0
          • P Offline
            Peter @HeikoGr
            last edited by

            @HeikoGr can you share your config?
            Without the key and only the weatherpart.
            Thanks!
            Peter

            H 1 Reply Last reply Reply Quote 0
            • H Offline
              HeikoGr @Peter
              last edited by

              @Peter of course

              
                    {
                          disabled: false,
                          module: "weather",
                          position: "top_right",
                          config:
                          {
                              // See 'Configuration options' for more information.
                              weatherProvider: 'openweathermap',
                              weatherEndpoint: '/onecall',
                              apiKey: 'apikey',
                              apiVersion: '3.0',
                              lat: '50.465',
                              lon: '9.481',
                              type: 'forecast',
                              colored: true,
                              fade: false,
                              maxNumberOfDays: 3,
                              degreeLabel: 'true',
                              showWindDirectionAsArrow: 'true',
                              decimalSymbol: ','
                          }
                      },
              
              
              P 1 Reply Last reply Reply Quote 0
              • P Offline
                Peter @HeikoGr
                last edited by

                @HeikoGr thanks.
                I will try tomorrow.
                I will let you know!
                Peter

                1 Reply Last reply Reply Quote 0
                • R Offline
                  reilley @HeikoGr
                  last edited by

                  @HeikoGr - so as it was said before, we’re not going to see our city the way we did under v2.5 of the API. That’s going to likely need a response from the MM2 dev team because if /open call is used, it’s timezone/city only. It seems api 3.0 broke the location/locationID functionality when using “current” or “forecast”. Or did someone else get it to work?

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

                    @reilley that’s open weather 3.0 is /onecall only

                    nothing we can do but force you to specify the header yourself
                    does that work or get overridden by the weather data?

                    i am not where i can test

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      reilley @sdetweil
                      last edited by

                      @sdetweil - sure, I’d be happy to force my header if that’s possible. So for example, with forecast I would want it to say:

                      Forecast - Canton, GA

                      Or similar, of course. I could test it if you could let me know where to insert that line of code.

                      S 1 Reply Last reply Reply Quote 0
                      • R Offline
                        reilley @HeikoGr
                        last edited by

                        @HeikoGr - sorry, I didn’t copy/paste from the actual editor. I typed all that in and made a few errors! Sorry for the goose chase!

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

                          @reilley header is a property beside module
                          IMG_0382.png

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          1 Reply Last reply Reply Quote 0
                          • H Offline
                            HeikoGr
                            last edited by

                            I just tested it. You can pass a header by yourself but need to add

                            appendLocationNameToHeader: false,
                            

                            Otherwise it will add the timezone again.

                            
                             
                                    {
                                        disabled: false,
                                        module: "weather",
                                        header: "YOURCITY",
                                        position: "top_right",
                                        config:
                                        {
                                            // See 'Configuration options' for more information.
                                            weatherProvider: 'openweathermap',
                                            appendLocationNameToHeader: false,
                                            weatherEndpoint: '/onecall',
                                            apiKey: 'API',
                                            apiVersion: '3.0',
                                            lat: '51.5',
                                            lon: '9.52',
                                            type: 'forecast',
                                            colored: true,
                                            fade: false,
                                            maxNumberOfDays: 3,
                                            degreeLabel: 'true',
                                            showWindDirectionAsArrow: 'true',
                                            decimalSymbol: ','
                                        }
                                    },
                            
                            
                            R 1 Reply Last reply Reply Quote 1
                            • R Offline
                              reilley @HeikoGr
                              last edited by

                              @HeikoGr - lol, adjusted my headers and saw that the timezone was concatenated to the header. Snapped a photo to post and saw your comment. That fixed it!!! Thank you and Sam both!!!

                              P 1 Reply Last reply Reply Quote 1
                              • P Offline
                                Peter @reilley
                                last edited by Peter

                                @reilley here it works also!
                                Thank you, everyone who helped.
                                My MM is up and running great!
                                Peter

                                1 Reply Last reply Reply Quote 1
                                • 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
                                • 2 / 2
                                • 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