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.

    NOAA v3 using too many requests?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    28 Posts 4 Posters 13.2k Views 4 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.
    • S Do not disturb
      sdetweil @Mykle1
      last edited by

      @Mykle1 are some people sharing keys?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @sdetweil
        last edited by Mykle1

        @sdetweil

        I don’t know. That is certainly possible and it would definitely account for issue in this topic. I use my key in both modules and as you can see I don’t have such a problem.

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • M Offline
          motdog
          last edited by

          I’m not sharing a key as far as I know. My usage just skyrocketed which was surprising. I switched from dark sky to another provider & all is well. Tomorrow I’ll get a new key from darksky and see what happens. Just seemed weird to me

          Mykle1M 1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @motdog
            last edited by

            @motdog

            Yeah, that’s a good idea. Let us know the result with the new key.

            Create a working config
            How to add modules

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              motdog @Mykle1
              last edited by

              So the weather with weather underground hasn’t updated since yesterday. I looked at my stats and they were super high for yesterday. Seems the same as what happened before. Weird that random days trigger high requests.0_1552586737919_weather.PNG

              Any thoughts? I’m going to switch back to darksky api to see what happens.

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

                @motdog weather underground has been shutting down keys for over a year now. No new free keys are available. Time to switch to another weather solution.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                M 1 Reply Last reply Reply Quote 0
                • M Offline
                  motdog @sdetweil
                  last edited by

                  @sdetweil Thanks for the heads up. Still curious about the spike in requests. Had that with darksky too which is why I switched to weather underground.

                  D 1 Reply Last reply Reply Quote 0
                  • D Offline
                    dazza120 @motdog
                    last edited by

                    @motdog I had the same! Have you got a raspberry Pi? And is it locking up? I had this on mine it just kept dailing every second it was mad! Took off my Overclock that I had on the Pi and it’s working V well at the mo.

                    M 1 Reply Last reply Reply Quote 0
                    • Mykle1M Offline
                      Mykle1 Project Sponsor Module Developer @motdog
                      last edited by

                      @motdog

                      I’m just curious (and I may have missed this) but have you changed the updateInterval: 30 * 60 * 1000, This is designed to constrain the module to 48 calls per day. Also, as a long shot, are you running more than one weather module using the same API key? I do.

                      Create a working config
                      How to add modules

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        motdog @Mykle1
                        last edited by motdog

                        @Mykle1 I have not changed the update interval Is that in the css? I only have the one module running. What seems weird is that it runs fine then all of the sudden spikes.

                        Mykle1M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          motdog @dazza120
                          last edited by

                          @dazza120 I am running a Pi 3B the Pi doesn’t lock up. Occasionally if I try to do something a bit funky with a gif in the eye candy module it has but as soon as I use a different gif I am ok.

                          D 1 Reply Last reply Reply Quote 0
                          • D Offline
                            dazza120 @motdog
                            last edited by

                            @motdog not overclocked? My Pi would still work just ment that it was working overtime doing the weather connection every second.

                            M 2 Replies Last reply Reply Quote 0
                            • Mykle1M Offline
                              Mykle1 Project Sponsor Module Developer @motdog
                              last edited by

                              @motdog said in NOAA v3 using too many requests?:

                              I have not changed the update interval Is that in the css?

                              It is in the MMM-NOAA3.js file. Please verify the value. It can also be placed in the config entry which would override the module.js value.

                              Have you gotten a new API key?
                              Have your deleted you NOAA install and re-installed?
                              Have you tried NOAA by itself? No other modules running, or at most just the defaults of MM?

                              Create a working config
                              How to add modules

                              M 1 Reply Last reply Reply Quote 0
                              • M Offline
                                motdog @dazza120
                                last edited by

                                @dazza120 no clue.

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  motdog @Mykle1
                                  last edited by

                                  @Mykle1 I haven’t modified the js file. I did get a new key. One thing I changed at darksky was to limit the number of requests. The default had me at 1000. I lowered it to 750 so I shouldn’t hit the maximum. I’ll give it a few days to monitor. The number of requests stays low most of the time but occasionally spikes up

                                  Mykle1M 1 Reply Last reply Reply Quote 0
                                  • Mykle1M Offline
                                    Mykle1 Project Sponsor Module Developer @motdog
                                    last edited by

                                    @motdog said in NOAA v3 using too many requests?:

                                    The number of requests stays low most of the time but occasionally spikes up

                                    Well, something is causing the module to fetch the data. I do not believe it’s the module itself based on your answers

                                    Create a working config
                                    How to add modules

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      motdog @Mykle1
                                      last edited by

                                      @Mykle1 what should I look for? I had 475 requests today.

                                      Mykle1M 1 Reply Last reply Reply Quote 0
                                      • Mykle1M Offline
                                        Mykle1 Project Sponsor Module Developer @motdog
                                        last edited by

                                        @motdog

                                        Are you absolutely sure that this is your setting in the config entry?

                                        updateInterval: 30 * 60 * 1000,

                                        Create a working config
                                        How to add modules

                                        Mykle1M M 2 Replies Last reply Reply Quote 0
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @Mykle1
                                          last edited by Mykle1

                                          @motdog

                                          Post your NOAA config entry in a code block please. It should look like this.

                                          {
                                                    disabled: false,
                                                    module: 'MMM-NOAA3',
                                                    position: 'top_right',
                                                    config: {
                                                        provider: "darksky",
                                                        apiKey: "YOUR API KEY",
                                                        airKey: "YOUR AIR KEY", // IF you want Air Quality Index
                                                        css: "NOAA4",
                                                        userlat: "40.123456",
                                                        userlon: "-74.123456",
                                                        updateInterval: 30 * 60 * 1000,  // VERY IMPORTANT!
                                                    }
                                                },

                                          Create a working config
                                          How to add modules

                                          M 1 Reply Last reply Reply Quote 0
                                          • M Offline
                                            motdog @Mykle1
                                            last edited by

                                            @Mykle1 from the NOAA3.js

                                            Module.register("MMM-NOAA3", {
                                                defaults: {
                                                    animationSpeed: 0,
                                                    initialLoadDelay: 8000,
                                                    rotateInterval: 60 * 1000, 
                                            	updateInterval: 30 * 60 * 1000,
                                                    apiKey: "",
                                                    airKey: "",
                                                    pws: "",
                                                    css: "",
                                                    frow: true,
                                            		nupdate: false,
                                            		userlat: "",
                                            		userlon: "",
                                            
                                            
                                            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
                                            • 2
                                            • 1 / 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