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 4.6k 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.
    • 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
                        • 1
                        • 2
                        • 3
                        • 2 / 3
                        • 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