• 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.

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

Scheduled Pinned Locked Moved Solved Troubleshooting
25 Posts 5 Posters 2.4k 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.
  • R Offline
    reilley
    last edited by Oct 2, 2024, 12:52 AM

    Updated MM2 today to v2.29.0. Learned quickly that the api change forces you subscribe to the One Call v3.0 and provide a payment method but no big deal as long as you stay under 1000 calls per day.

    It took some configuration editing to get the current and forecast sections working, specifically adding the apiVersion parameter and of course the new api key. It still didn’t work, so I added weatherEndpoint ‘/onecall’ and this resolved the problem, but now the location header reads “America/New York”. If you use One Call , the location and locationId parameters are ignored. Just not sure why the first shows incorrectly.

    Anyone else having this issue?

    D S 2 Replies Last reply Oct 2, 2024, 10:32 AM Reply Quote 0
    • R Offline
      reilley
      last edited by Oct 2, 2024, 8:14 PM

      OK, it would appear when /onecall is used, the OpenWeatherMap.js script controls the header and you’re either going to get:

      ${data.timezone}

      or

      ${data.city.name},${data.city.country}

      I’m see the first option, timezone. It’s correct, but I don’t want timezone. I want city/country. Booooo!!!

      P 1 Reply Last reply Oct 8, 2024, 7:11 PM Reply Quote 0
      • D Offline
        dawookie1979 @reilley
        last edited by Oct 2, 2024, 10:32 AM

        @reilley Hi, i cant get mine to load!!

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @reilley
          last edited by Oct 2, 2024, 10:44 AM

          @reilley for the doc

          note MagicMirror is case sensitive

          locationId is incorrect

          IMG_0363.png

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          R 2 Replies Last reply Oct 2, 2024, 7:44 PM Reply Quote 0
          • R Offline
            reilley @sdetweil
            last edited by Oct 2, 2024, 7:44 PM

            @sdetweil - Hi Sam! I’m not even calling locationID in my script.

            Here’s what I have:

            module: “weather”,
            position: “top_center”,
            config: {
            weatherProvider: “openweathermap”,
            type: “current:,
            weatherEndpoint: ‘/onecall’,
            lat: ‘34.17188’.
            lon: ‘-84.57056’,
            apiVersion: ‘3.0’,
            apiKey: 'nunya”

            1 Reply Last reply Reply Quote 0
            • R Offline
              reilley @sdetweil
              last edited by Oct 2, 2024, 7:46 PM

              @sdetweil - Oh okay - I was wondering why you mentioned case. That was just a typo here on my part. When I was using it, it was “locationID”.

              1 Reply Last reply Reply Quote 0
              • H Offline
                HeikoGr
                last edited by HeikoGr Oct 2, 2024, 8:09 PM Oct 2, 2024, 7:47 PM

                forecast need lot / lan set. locationID as in api 2.5 isn’t working anymore (with api 3.0) sorry, didn’t read your post properly…

                openweather doesn’t add geoname in response. so i guess it’s the timezone.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  reilley
                  last edited by Oct 2, 2024, 8:14 PM

                  OK, it would appear when /onecall is used, the OpenWeatherMap.js script controls the header and you’re either going to get:

                  ${data.timezone}

                  or

                  ${data.city.name},${data.city.country}

                  I’m see the first option, timezone. It’s correct, but I don’t want timezone. I want city/country. Booooo!!!

                  P 1 Reply Last reply Oct 8, 2024, 7:11 PM Reply Quote 0
                  • S sdetweil has marked this topic as solved on Oct 5, 2024, 11:27 AM
                  • P Offline
                    Peter @reilley
                    last edited by Oct 8, 2024, 7:11 PM

                    @reilley did you get it working with city, country?
                    Peter

                    R 1 Reply Last reply Oct 8, 2024, 7:13 PM Reply Quote 0
                    • R Offline
                      reilley @Peter
                      last edited by Oct 8, 2024, 7:13 PM

                      @Peter - Unfortunately, not yet. I’m wondering if anyone has been able to using the 3.0 API!

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        HeikoGr
                        last edited by Oct 8, 2024, 7:34 PM

                        I got it working and think there are a few tricky typos in your config.

                        module: “weather”,
                        position: “top_center”,
                        config: {
                        weatherProvider: “openweathermap”,
                        type: “current:,
                        weatherEndpoint: ‘/onecall’,
                        lat: ‘34.17188’.
                        lon: ‘-84.57056’,
                        apiVersion: ‘3.0’,
                        apiKey: 'nunya”
                        

                        Line 5: closing quotation marks are missing
                        Line 7: point as line ending instead of comma
                        Line 10: wrong quotation mark

                        Your config entry type is from line 5 - 10.

                        P R 2 Replies Last reply Oct 8, 2024, 8:14 PM Reply Quote 1
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        1 / 3
                        • First post
                          2/25
                          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