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

Open weather Api 3.0

Scheduled Pinned Locked Moved Utilities
16 Posts 4 Posters 4.7k 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 @sdetweil
    last edited by May 4, 2024, 5:27 PM

    @sdetweil ok, I did the same, so I removed apiVersion:‘3.0’, now it works.
    But how can I see if it works on version 2.5 or version 3.0?
    And how do I recognise a version 3.0 Api key?
    On the site of Openweather I have several Api keys, but how to recognise a version 3.0?
    Peter

    S 1 Reply Last reply May 4, 2024, 5:38 PM Reply Quote 0
    • S Offline
      sdetweil @Peter
      last edited by sdetweil May 4, 2024, 5:39 PM May 4, 2024, 5:38 PM

      @Peter they don’t tell you. I have many as well.

      they will tell you to try it… not much use

      version 3 is only one endpoint, onecall
      I don’t know how to force the module like that, it changes the endpoint based on the type (current, forecast…)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      P 1 Reply Last reply May 4, 2024, 5:41 PM Reply Quote 0
      • P Offline
        Peter @sdetweil
        last edited by May 4, 2024, 5:41 PM

        @sdetweil ok, I will see what happens when 2.5 stops working.
        Have a nice day.
        Peter

        N 1 Reply Last reply May 6, 2024, 12:29 AM Reply Quote 0
        • N Offline
          nkc @Peter
          last edited by May 6, 2024, 12:29 AM

          Hi Just to clarify - I just need to change the api version number from 2.5 to 3.0 or Do I need to subscribe again for api version 3.0. ?
          Thanks,
          Neel.

          S 1 Reply Last reply May 6, 2024, 2:14 AM Reply Quote 0
          • S Offline
            sdetweil @nkc
            last edited by May 6, 2024, 2:14 AM

            @nkc as I understand it yes. 3.0 requires a payment if you exceed the free limit so you must provide a credit card up front.

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • A Offline
              aaronaxvig
              last edited by Oct 18, 2024, 7:27 PM

              I found this thread when my usage of the openweathermap.org API stopped working a few days ago. I guess they actually did cut off the API 2.5 users now? Anyways, I have it working using the 3.0 API now. A few comments to help anyone:

              • I did add my credit card info on my account but I am not 100% sure this was necessary.
              • I am using the same API key as before.
              • The locationID value does not appear to work any more. So I have replaced the locationID config lines with lat and lon lines.
              • The timezone was getting appended to the header so I had to start setting appendLocationNameToHeader to false.

              Before example:

              {
                  module: "weather",
                  position: "top_right",
                  header: "Hollywood, FL",
                  config: {
                      weatherProvider: "openweathermap",
                      type: "current",
                      location: "Hollywood, FL",
                      locationID: "4158928",
                      apiKey: "xxxxxxxxxxxxxxxxxxxxxx",
                      roundTemp: true
                  }
              },
              

              After example:

              {
                  module: "weather",
                  position: "top_left",
                  header: "Mandan, ND",
                  config: {
                      weatherProvider: "openweathermap",
                      type: "current",
                      lat: "46.8258",
                      lon: "-100.88875",
                      apiKey: "xxxxxxxxxxxxxxxxxxxxxx",
                      apiVersion: "3.0",
                      appendLocationNameToHeader: false,
                      weatherEndpoint: "/onecall",
                      roundTemp: true
                  }
              },
              
              S 1 Reply Last reply Oct 18, 2024, 7:48 PM Reply Quote 1
              • S Offline
                sdetweil @aaronaxvig
                last edited by Oct 18, 2024, 7:48 PM

                @aaronaxvig yes, thanks for articulating that all in one post.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                A 1 Reply Last reply Oct 21, 2024, 8:08 PM Reply Quote 0
                • A Offline
                  aaronaxvig @sdetweil
                  last edited by Oct 21, 2024, 8:08 PM

                  @sdetweil You’re welcome! I saw afterwards that there is another thread with similar info but this is the one the search engine led me to.

                  After a few days of use I can see on the OpenWeatherMap.org website Billing section that I am running somewhere around 600 API calls per day. This is with four weather modules in place (for four different locations). So about 150 calls per day per module. The default updateInterval value is 10 minutes which would be 144 per day in theory. I’m going to bump my non-local ones to a 30 minute setting (careful to specify milliseconds i.e. 1,800,000 but without commas of course).

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