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-OpenWeatherMapForecast 3.0 API calls and freeze issue

    Scheduled Pinned Locked Moved Solved Troubleshooting
    21 Posts 5 Posters 3.8k 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.
    • J Offline
      jfields @sdetweil
      last edited by

      @sdetweil
      origin https://github.com/MarcLandis/MMM-OpenWeatherMapForecast.git (fetch)
      origin https://github.com/MarcLandis/MMM-OpenWeatherMapForecast.git (push)

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @jfields
        last edited by

        @jfields that one is quite old

        I’d try this one, as the author is active
        https://github.com/Tom-Hirschberger/MMM-OpenWeatherForecast

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          jfields @sdetweil
          last edited by

          @sdetweil Thanks. I haven’t tried that one. I honestly only thought there were two, one that was way old and the one I’m using (MarcLandis). The one I’m using did get a recent update so it is somewhat supported, although I cannot open an Issue on it.

          From where I’m at now, I have a good working solution but using the MarcLandis version on one side and the built-in for everything else. If I do change, I will look at the Tom-Hirschberger version. It’s getting updates and has a tab to open Issues.

          1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @jfields
            last edited by

            @jfields good debug on the multiple problem

            lets try this temp fix

            in the MM/js folder do

            curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror/fixloading/js/app.js >app.js
            

            stop and restart MM

            this adds a hash to check for loading or already loading the node_helper for this module

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S J 2 Replies Last reply Reply Quote 0
            • S Offline
              Socrates @sdetweil
              last edited by

              Sorry to hijack this post. I can create a new one if needed. I’ve been using the “MMM-OpenWeatherMapForecast” module for a while, but for the past few weeks, it hasn’t been showing up on my MM. I’ve rebooted MM several times and made sure the module is up to date, but no luck.

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @Socrates
                last edited by sdetweil

                @Socrates
                yes openweather changed their api
                module needs update

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • J Offline
                  jfields @sdetweil
                  last edited by

                  @sdetweil Hello, been away for a bit. I ran the curl and added a couple of the OpenWeatherMapForecast calls back in. They’re showing nominally, time is updating regularly. No issues right now. I opened the browser developer window and it’s showing 3 errors and the count is not incrementing. Does this fixloading script stop errant calls? I’m not sure where to look for the logs. I’m using pm2 to start/stop/restart.

                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @jfields
                    last edited by

                    @jfields logs are captured by pm2

                    pm2 logs --lines=xxxx

                    xxxx is the number of lines to show

                    the curl loads a version of the MagicMirror file that now only loads the node helper once per module.

                    nothing else is changed

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    J 1 Reply Last reply Reply Quote 0
                    • R Offline
                      Rags @sdetweil
                      last edited by

                      @sdetweil said in MMM-OpenWeatherMapForecast 3.0 API calls and freeze issue:

                      @Socrates
                      yes openweather changed their api
                      module needs update

                      Greetings fellow MagicMirror fans, I also noticed that the weather is not updating since a few days. I ran a git pull to update the module , it says already updated, but the module is not displaying the weather. DId i miss doing something . I have a free account and an api key. Need help to resolve this, Thanks.

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @Rags
                        last edited by

                        @Rags open the developers window, curl-shift-I, select the console tab, and put wea in the filter field to see messages just from the weather module

                        You should see some error, maybe 401
                        They have dropped support for the older 2.5 spikes, you need a 3.0 key which requires a credit card

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

                          @sdetweil
                          YIKES !
                          I had changed the helper module to
                          “var url = “https://api.openweathermap.org/data/3.0/onecall?” +” as suggested in an earlier post. I also changed the config.js with weatherEndpoint: “forecast/daily”. It still did not work.
                          So i am not comfortable to use a credit card for the website. So does it mean curtains for this module as far as “Free” is concerned.?

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @Rags
                            last edited by sdetweil

                            @Rags you didn’t need to edit the file

                            my erased comments were for the default weather module

                            yes, they give you 1000 api calls per day, no charge, but you must register a card

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              jfields @sdetweil
                              last edited by

                              @sdetweil
                              I turned two more MMM-OpenWeatherMapForecast sections for a couple days and left it running. No issues that I could see. Your script seems to have fixed it. I’ll probably go back to 4 standard weather sections and one MMM-OpenWeatherMapForecast. Thank you for your help though.
                              Here are the logs.

                              d39d1a38-1b43-4005-b081-ad66cb32cddb-image.png 0|mm | > magicmirror@2.28.0 start
                              0|mm |
                              0|mm | [2024-08-01 21:20:05.292] [LOG] Loading config …
                              0|mm | [2024-08-01 21:20:05.299] [LOG] Loading module helpers …
                              0|mm | [2024-08-01 21:20:05.301] [LOG] No helper found for module: alert.
                              0|mm | [2024-08-01 21:20:05.310] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.312] [LOG] No helper found for module: clock.
                              0|mm | [2024-08-01 21:20:05.445] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.445] [LOG] Module helper loaded: calendar
                              0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
                              0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
                              0|mm | [2024-08-01 21:20:05.479] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.771] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.772] [LOG] All module helpers loaded.
                              0|mm | [2024-08-01 21:20:05.782] [LOG] Starting server on port 8080 …
                              0|mm | [2024-08-01 21:20:06.923] [LOG] Server started …
                              0|mm | [2024-08-01 21:20:06.929] [LOG] Connecting socket for: calendar
                              0|mm | [2024-08-01 21:20:06.930] [LOG] Starting node helper for: calendar
                              0|mm | [2024-08-01 21:20:06.936] [LOG] Sockets connected & modules started …
                              0|mm | [2024-08-01 21:20:07.302] [LOG] Launching application.
                              0|mm | [2024-08-01 21:20:08.895] [INFO] System information:
                              0|mm | ### SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false
                              0|mm | [2024-08-01 21:20:11.736] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-01 21:20:13.338] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.

                              0|mm | > magicmirror@2.28.0 start
                              0|mm | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
                              0|mm |
                              0|mm | [2024-08-01 21:20:05.264] [LOG] Starting MagicMirror: v2.28.0
                              0|mm | [2024-08-01 21:20:05.292] [LOG] Loading config …
                              0|mm | [2024-08-01 21:20:05.295] [LOG] config template file not exists, no envsubst
                              0|mm | [2024-08-01 21:20:05.299] [LOG] Loading module helpers …
                              0|mm | [2024-08-01 21:20:05.301] [LOG] No helper found for module: alert.
                              0|mm | [2024-08-01 21:20:05.310] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.311] [LOG] Module helper loaded: updatenotification
                              0|mm | [2024-08-01 21:20:05.312] [LOG] No helper found for module: clock.
                              0|mm | [2024-08-01 21:20:05.445] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.445] [LOG] Module helper loaded: calendar
                              0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
                              0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
                              0|mm | [2024-08-01 21:20:05.479] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.479] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
                              0|mm | [2024-08-01 21:20:05.771] [LOG] Initializing new module helper …
                              0|mm | [2024-08-01 21:20:05.772] [LOG] Module helper loaded: MMM-SunRiseSet
                              0|mm | [2024-08-01 21:20:05.772] [LOG] All module helpers loaded.
                              0|mm | [2024-08-01 21:20:05.782] [LOG] Starting server on port 8080 …
                              0|mm | [2024-08-01 21:20:06.923] [LOG] Server started …
                              0|mm | [2024-08-01 21:20:06.926] [LOG] Connecting socket for: updatenotification
                              0|mm | [2024-08-01 21:20:06.927] [LOG] Starting module helper: updatenotification
                              0|mm | [2024-08-01 21:20:06.929] [LOG] Connecting socket for: calendar
                              0|mm | [2024-08-01 21:20:06.930] [LOG] Starting node helper for: calendar
                              0|mm | [2024-08-01 21:20:06.930] [LOG] Connecting socket for: MMM-OpenWeatherMapForecast
                              0|mm | [2024-08-01 21:20:06.931] [LOG] ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast]
                              0|mm | [2024-08-01 21:20:06.932] [LOG] Connecting socket for: MMM-SunRiseSet
                              0|mm | [2024-08-01 21:20:06.933] [LOG] Starting node_helper for: MMM-SunRiseSet
                              0|mm | [2024-08-01 21:20:06.936] [LOG] Sockets connected & modules started …
                              0|mm | [2024-08-01 21:20:07.302] [LOG] Launching application.
                              0|mm | [2024-08-01 21:20:08.895] [INFO] System information:
                              0|mm | ### SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false
                              0|mm | ### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.31+rpt-rpi-v8
                              0|mm | ### VERSIONS: electron: 31.1.0; used node: 20.14.0; installed node: 20.15.0; npm: 10.7.0; pm2: 5.4.1
                              0|mm | ### OTHER: timeZone: America/Los_Angeles; ELECTRON_ENABLE_GPU: undefined
                              0|mm | [2024-08-01 21:20:10.636] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics - Interval: 7200000
                              0|mm | [2024-08-01 21:20:10.779] [LOG] Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 7200000
                              0|mm | [2024-08-01 21:20:10.802] [INFO] updatenotification: Updater Class Loaded!
                              0|mm | [2024-08-01 21:20:10.803] [INFO] updatenotification: Checking PM2 using…
                              0|mm | [2024-08-01 21:20:10.981] [INFO] Checking git for module: MMM-OpenWeatherMapForecast
                              0|mm | [2024-08-01 21:20:11.025] [INFO] Checking git for module: MMM-SunRiseSet
                              0|mm | [2024-08-01 21:20:11.046] [INFO] Checking git for module: MagicMirror
                              0|mm | [2024-08-01 21:20:11.104] [INFO] updatenotification: [PM2] You are not using pm2
                              0|mm | [2024-08-01 21:20:11.736] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-01 21:20:13.338] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-01 23:20:12.320] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-01 23:20:15.036] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 01:20:12.733] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 01:20:16.007] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 03:20:13.161] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 03:20:16.894] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 05:20:13.547] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 05:20:17.909] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 07:20:13.922] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 07:20:18.813] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 09:20:14.301] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 09:20:19.727] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 11:20:14.714] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 11:20:20.683] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 13:20:15.100] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 13:20:21.534] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 15:20:15.498] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 15:20:22.471] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 17:20:15.885] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 17:20:23.362] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 19:20:16.281] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 19:20:24.207] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 21:20:16.685] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 21:20:25.164] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-02 23:20:17.133] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-02 23:20:26.039] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-03 01:20:17.538] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-03 01:20:26.948] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-03 03:20:17.938] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-03 03:20:27.814] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-03 05:20:18.339] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-03 05:20:28.745] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
                              0|mm | [2024-08-03 07:20:18.699] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
                              0|mm | [2024-08-03 07:20:29.567] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.

                              S 1 Reply Last reply Reply Quote 0
                              • J jfields has marked this topic as solved on
                              • S Do not disturb
                                sdetweil @jfields
                                last edited by sdetweil

                                @jfields cool, thanks for the feedback. . I’ll submit a pull request to fix the base

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jfields @sdetweil
                                  last edited by

                                  @sdetweil and @Rags

                                  You can limit your calls as well. For example, I have mine set to 2,000. I get the 1,000 for free, and allow for another 1,000. This happened once while I was troubleshooting my issue here. I got to just over 1,900 calls total and the charge was $1.35 USD. You can set the max call limit to whatever you want.

                                  980bbd1d-e740-474b-8471-ca7d74990c3a-image.png

                                  d122d114-92ea-4212-8228-82f3ac317be9-image.png

                                  S 1 Reply Last reply Reply Quote 1
                                  • S Do not disturb
                                    sdetweil @jfields
                                    last edited by

                                    @jfields very helpful, thanks

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    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