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.

    MMM-OpenWeatherForecast

    Scheduled Pinned Locked Moved Solved Troubleshooting
    92 Posts 14 Posters 49.9k Views 14 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 Offline
      sdetweil @wishmaster270
      last edited by sdetweil

      @wishmaster270 thanks. i knew i could go look, asking poster to do the same.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • R Offline
        Ray @wishmaster270
        last edited by

        @wishmaster270 yes I have mine set for 15
        but that doesn’t explain why when I turn it on for the first time in the morning they already have 20 calls I don’t get that

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

          @sdetweil I have it set for 15 minutes

          1 Reply Last reply Reply Quote 0
          • M Offline
            MarcLandis Module Developer @Ray
            last edited by

            @Ray said in MMM-OpenWeatherForecast:

            @wishmaster270 yes I have mine set for 15
            but that doesn’t explain why when I turn it on for the first time in the morning they already have 20 calls I don’t get that

            What means “turn it on”? Boot up the Pi or turn on the screen?

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              Ray @MarcLandis
              last edited by

              @MarcLandis sorry for the misunderstanding there
              when I activate my mirror and it checks the weather

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                MarcLandis Module Developer @Ray
                last edited by

                @Ray updates are still done even the screen is off.

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  Ray @MarcLandis
                  last edited by

                  @MarcLandis yes I get that and I totally understand that

                  but that’s not my question maybe it can’t be answered
                  my magic mirror is on a computer when I boot the computer up in the morning it will automatically start magic mirror usually the first thing it checks is the weather
                  if I turn the computer off there should be no more calls to the weather app

                  so my original question would be if I turn my computer on first thing in the morning and I go to the weather app why does it say I already have 20 calls that’s my real question

                  wishmaster270W 1 Reply Last reply Reply Quote 0
                  • wishmaster270W Online
                    wishmaster270 Module Developer @Ray
                    last edited by wishmaster270

                    @Ray
                    Hi, I do not know your set up nor do I know when the “in one day” changes to the next day at OpenWeaterMap.
                    I use the API Key exactly in this module and only have one instance of the mirror running…
                    I just checked my statistics at OpenWeaterMap and I do have at about 112 calls a day. Which is correct as my mirror is shutdown between 11:30pm and 5am.

                    Maybe it is a matter of your timezone and calls of the last day are counted in the current one.

                    What does your statistic look like

                    https://home.openweathermap.org/statistics/onecall_30

                    Edit:
                    And one small side note. Even if you use different keys the calls a summarized per account

                    R 2 Replies Last reply Reply Quote 0
                    • R Offline
                      Ray @wishmaster270
                      last edited by Ray

                      @wishmaster270
                      I totally agree with everything you said I do have two keys but I only use one
                      the only thing I can think of is maybe the 20 calls are a carryover from the previous day that’s the only thing I can think of
                      I shut down my mirror around 7 o’clock at night

                      and when I started up in the morning around 8 o’clock in the morning I would think there would only be one call
                      but when I looked it said there were 20
                      so like I said maybe it’s a carryover from the previous day

                      so tomorrow morning I’m going to conduct a test
                      I will check the website first to see if there any calls there before I start my mirror

                      if you want I will let you know

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        Ray @wishmaster270
                        last edited by

                        @wishmaster270
                        so I found out what was going on with the calls being counted when my magic mirror wasn’t even up and running

                        so here’s what I found out
                        I have MMM-OpenWeatherForecast checking the temperature in two time zones
                        and one of the time zone I have set requestDelay: 250
                        this was done before the upgrade to 3.0 call abb
                        since then I have deleted one of the time zones
                        but forgot to delete requestDelay: 250 an error in my part

                        it turns out that the One Call API 3.0 was counting all the calls in that 250
                        in version 2.5 we didn’t have to worry about that

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          sdetweil @Ray
                          last edited by

                          @Ray yes, a call is a call. 250 is WAY TOO OFTEN for weather that doesn’t changed but every 10-15 minutes

                          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
                            Ray @sdetweil
                            last edited by

                            @sdetweil
                            I just thought I’d throw it out there in case someone else runs into the same problem

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              JohnGalt @Ray
                              last edited by

                              @Ray – Just for the sake of completeness for you or others I will mention here that the provider will count ALL calls, from ALL modules.

                              As an example I can have this module running for a comprehensive look at my local weather, plus an instance of the default weather module telling me what’s happening with a friend or relatives, plus I’m running MMM-DynamicWeather.

                              The API will count all the calls from all sources. It would be great if the MM system could pull the data and broadcast it to modules as needed, but that’s not how it works.

                              S butchkemperB 2 Replies Last reply Reply Quote 0
                              • S Offline
                                sdetweil @JohnGalt
                                last edited by

                                @JohnGalt the default weather broadcasts it’s data just like calendar does

                                So the othermodules could use it

                                IMG_0375.png

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                wishmaster270W 1 Reply Last reply Reply Quote 0
                                • wishmaster270W Online
                                  wishmaster270 Module Developer @sdetweil
                                  last edited by

                                  Just to make clear.
                                  The requestDelay is only used for the time between the start of the mirror and the first fetch of the data.
                                  For all following the updateInterval in seconds is used.

                                  The module sends is weather info, too. But I think both modules are not capable of use the info provided by notification at the moment

                                  1 Reply Last reply Reply Quote 0
                                  • butchkemperB Offline
                                    butchkemper @JohnGalt
                                    last edited by

                                    @JohnGalt

                                    The api call daily threshold for billing is 1,000. The default setting is to update every 10 minutes and that equals to 144 daily calls.

                                    Butch

                                    Resistance is not Futile!
                                    It is voltage divided by current.

                                    1 Reply Last reply Reply Quote 0
                                    • S sdetweil has marked this topic as solved on
                                    • H Offline
                                      hrjmsh @OldGuyBerlin
                                      last edited by

                                      @OldGuyBerlin Worked for me, thanks.

                                      C 1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        chris1971 @hrjmsh
                                        last edited by chris1971

                                        I had the same problem with my weather forecast. I made a subscription for an API 3.0 key and modified the config in this way:

                                        {
                                        		module: "MMM-OpenWeatherForecast",
                                        		position: "top_right",
                                        		header: "Wetter in Mülheim",
                                        		config: {
                                                apiBaseURL: "https://api.openweathermap.org/data/3.0/onecall?",
                                                apikey: "xxxxxxxxxxxxxxxxxxxxxxxx", //only string here
                                              latitude: 51.xxxxxxxx,            //number works here
                                              longitude: 6.9xxxxxxxx,          //so does a string
                                              updateInterval: 45,
                                        	iconset: "3c",
                                        	maxDailiesToShow: 4,
                                        	maxHourliesToShow: 4,
                                        	label_hourlyTimeFormat: "k[ Uhr]",
                                        	label_sunriseTimeFormat: "k:mm",  // change the format for this one 
                                        	label_days: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"]
                                        

                                        In addition I added “https://api.openweathermap.org/data/3.0/onecall?” as mentioned by @Ray in the node_helper.js in the weather module. The update intervall is 45 minutes - which means below 1000 calls per month
                                        The module is running again!!!

                                        Thx to this community and forum,
                                        Chris

                                        htilburgsH 1 Reply Last reply Reply Quote 0
                                        • htilburgsH Offline
                                          htilburgs @chris1971
                                          last edited by

                                          What if you don’t have a creditcard like me??

                                          (still trying to learn JS, but not afraid to ask and AI is my best friend) ☺

                                          S 1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @htilburgs
                                            last edited by

                                            @htilburgs use pirateweather provider, on the default weather

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            htilburgsH 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
                                            • 3
                                            • 4
                                            • 5
                                            • 1 / 5
                                            • 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