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.

    Too many API calls in default weather module after update

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 3 Posters 28 Views 3 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 Online
      Perilax
      last edited by

      Hello together,

      Since the April update, I have an issue where the default weather module sends too many requests to the OpenWeathermap API. I reach the free limit of 1,000 requests after just a few hours.

      Here’s an extract from my config.js:

       {
                              module: "weather",
                              position: "top_right",
                              config: {
                                      weatherProvider: "openweathermap",
                                      apiVersion: "3.0",
                                      weatherEndpoint: "/onecall",
                                      lat: "XXXXXX",
                                      lon: "XXXXXX",
                                      location: "XXXXXX",
                                      showSun: true,
                                      type: "current",
                                      appendLocationNameToHeader: false,
                                      apiKey: "XXXXXXX",
                                      updateInterval: 10*60*1000, // Update every 10 minutes
                              }
                      },
                      {
                              module: "weather",
                              position: "top_right",
                              header: "Wetter Vorschau",
                              config: {
                                      weatherProvider: "openweathermap",
                                      type: "forecast",
                                      location: "XXXXXX",
                                      apiVersion: "3.0",
                                      weatherEndpoint: "/onecall",
                                      lat: "XXXXXX",
                                      lon: "XXXXX",
                                      appendLocationNameToHeader: false,
                                      apiKey: "XXXXX",
                                      updateInterval: 10*60*1000, // Update every 10 minutes
                                      fade: false,
                                      roundTemp: true,
                                      ignoreToday: true,
                              }
                      },
      

      Has anyone a solution to solve this problem ?

      S S 2 Replies Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @Perilax
        last edited by

        @Perilax @kristjanesperanto will have to answer, there was a big rewrite of the data collector side of weather.

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 1
        • S Offline
          stephanvdplas @Perilax
          last edited by

          @Perilax

          I think you need these parameters:

          			updateInterval: 60 * 60 * 1000,
          			retryDelay: 60 * 60 * 1000,          // retry only once per hour
          
          P 1 Reply Last reply Reply Quote 0
          • P Online
            Perilax @stephanvdplas
            last edited by

            @stephanvdplas

            Is „retryDelay“ really working ? I can‘t find it in the documentation.

            I have two modules where I request the API every 10 minutes. So it should be around 300 requests per day.
            By far less than 1000.

            1 Reply Last reply Reply Quote 0

            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