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 stuck on Loading....

    Scheduled Pinned Locked Moved Utilities
    63 Posts 16 Posters 38.3k Views 18 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.
    • A Offline
      ally @sdetweil
      last edited by

      @sdetweil I deleted the old api key and made a new one, same result. The default weather modules load and this one doesn’t.

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

        @ally what is the message from the terminal window w the new code?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        A 1 Reply Last reply Reply Quote 0
        • S Offline
          stevengill @ally
          last edited by

          @ally I removed the location name (e.g. New York) and just used the locationID number and it started to work

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

            @stevengill he doesn’t have location specified with the weathermap module

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil sorry, I must have misread this and thought this was their code
              3B26C8F7-2775-416E-9A4F-E7F1024C9CAF.jpeg

              1 Reply Last reply Reply Quote 0
              • A Offline
                ally @sdetweil
                last edited by

                @sdetweil This is new.

                oad stylesheet: modules/MMM-OpenWeatherMapForecast/MMM-OpenWeatherMapForecast.css
                loader.js:162 Styles loaded for: MMM-OpenWeatherMapForecast
                loader.js:164 Translations loaded for: MMM-OpenWeatherMapForecast
                loader.js:184 Load script: modules/default/newsfeed/newsfeed.js
                module.js:509 Module registered: newsfeed
                loader.js:155 Bootstrapping module: newsfeed
                loader.js:244 File already loaded: moment.js
                loader.js:160 Scripts loaded for: newsfeed
                loader.js:203 Load stylesheet: modules/default/newsfeed/newsfeed.css
                loader.js:162 Styles loaded for: newsfeed
                loader.js:164 Translations loaded for: newsfeed
                loader.js:203 Load stylesheet: css/custom.css
                alert.js:47 Starting module: alert
                updatenotification.js:18 Starting module: updatenotification
                clock.js:48 Starting module: clock
                calendar.js:87 Starting module: calendar
                compliments.js:38 Starting module: compliments
                weatherprovider.js:35 Weather provider: OpenWeatherMap initialized.
                weatherprovider.js:46 Weather provider: OpenWeatherMap started.
                weatherprovider.js:35 Weather provider: OpenWeatherMap initialized.
                weatherprovider.js:46 Weather provider: OpenWeatherMap started.
                MMM-OpenWeatherMapForecast.js:145 Starting module: MMM-OpenWeatherMapForecast
                newsfeed.js:65 Starting module: newsfeed
                main.js:501 All modules started!
                openweathermap.js:63 Could not load data ...  XMLHttpRequest
                (anonymous) @ openweathermap.js:63
                weather.js:150 New weather information available.
                openweathermap.js:43 Could not load data ...  XMLHttpRequest
                (anonymous) @ openweathermap.js:43
                weather.js:150 New weather information available.
                openweathermap.js:63 Could not load data ...  XMLHttpRequest
                (anonymous) @ openweathermap.js:63
                weather.js:150 New weather information available.
                openweathermap.js:43 Could not load data ...  XMLHttpRequest
                (anonymous) @ openweathermap.js:43
                59weather.js:150 New weather information available.
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @ally
                  last edited by

                  @ally those errors are from the default weather module…

                  i think you should disable them while we work this

                  add
                  disabled: true,

                  after the module:“weather”,
                  lines

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    ally @sdetweil
                    last edited by ally

                    @sdetweil No errors being reported, but no change in the modules behavior.

                    MM_002.jpg

                    {
                    			module: "weather",
                    			disabled: true,
                    			position: "top_right",
                    			config: {
                    				weatherProvider: "openweathermap",
                    				type: "current",
                    				location: "New York",
                    				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                    				apiKey: "XXXXXXXXXXX"
                    			}
                    		},
                    		{
                    			module: "weather",
                    			disabled: true,
                    			position: "top_right",
                    			header: "Weather Forecast",
                    			config: {
                    				weatherProvider: "openweathermap",
                    				type: "forecast",
                    				location: "New York",
                    				locationID: "5128581", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                    				apiKey: "XXXXXXXXXXX"
                    			}
                    		}, 
                    		
                    		{
                    			module: "MMM-OpenWeatherMapForecast",
                    			header: "Weather",
                    			position: "top_right",
                    			classes: "default everyone",
                    			disabled: false,
                    			config: {
                    				apikey: "XXXXXXXXXXX",
                    				latitude: "51.506130",
                    				longitude: "-0.090270",      
                    
                    			}
                    		},	
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @ally
                      last edited by

                      @ally I need the messages from the terminal window or pm2 logs

                      do
                      pm2 flush
                      pm2 restart 0
                      wait
                      pm2 logs --lines=80 >somefile.txt 2>&1
                      ctrl-c

                      then examine somefile.txt

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        ally @sdetweil
                        last edited by

                        @sdetweil unfortunately the same useful answer

                        /home/pi/.pm2/logs/MagicMirror-out.log last 80 lines:
                        0|MagicMir | 
                        0|MagicMir | > magicmirror@2.20.0 start
                        0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                        0|MagicMir | 
                        0|MagicMir | [28.08.2022 20:52.28.785] [LOG]   Starting MagicMirror: v2.20.0
                        0|MagicMir | [28.08.2022 20:52.28.793] [LOG]   Loading config ...
                        0|MagicMir | [28.08.2022 20:52.28.800] [LOG]   Loading module helpers ...
                        0|MagicMir | [28.08.2022 20:52.28.803] [LOG]   No helper found for module: alert.
                        0|MagicMir | [28.08.2022 20:52.28.823] [LOG]   Initializing new module helper ...
                        0|MagicMir | [28.08.2022 20:52.28.825] [LOG]   Module helper loaded: updatenotification
                        0|MagicMir | [28.08.2022 20:52.28.826] [LOG]   No helper found for module: clock.
                        0|MagicMir | [28.08.2022 20:52.29.043] [LOG]   Initializing new module helper ...
                        0|MagicMir | [28.08.2022 20:52.29.044] [LOG]   Module helper loaded: calendar
                        0|MagicMir | [28.08.2022 20:52.29.046] [LOG]   No helper found for module: compliments.
                        0|MagicMir | [28.08.2022 20:52.29.097] [LOG]   Initializing new module helper ...
                        0|MagicMir | [28.08.2022 20:52.29.098] [LOG]   Module helper loaded: MMM-OpenWeatherMapForecast
                        0|MagicMir | [28.08.2022 20:52.29.129] [LOG]   Initializing new module helper ...
                        0|MagicMir | [28.08.2022 20:52.29.131] [LOG]   Module helper loaded: newsfeed
                        0|MagicMir | [28.08.2022 20:52.29.132] [LOG]   All module helpers loaded.
                        0|MagicMir | [28.08.2022 20:52.29.246] [LOG]   Starting server on port 8080 ... 
                        0|MagicMir | [28.08.2022 20:52.29.264] [LOG]   Server started ...
                        0|MagicMir | [28.08.2022 20:52.29.265] [LOG]   Connecting socket for: updatenotification
                        0|MagicMir | [28.08.2022 20:52.29.267] [LOG]   Starting module helper: updatenotification
                        0|MagicMir | [28.08.2022 20:52.29.268] [LOG]   Connecting socket for: calendar
                        0|MagicMir | [28.08.2022 20:52.29.268] [LOG]   Starting node helper for: calendar
                        0|MagicMir | [28.08.2022 20:52.29.269] [LOG]   Connecting socket for: MMM-OpenWeatherMapForecast
                        0|MagicMir | [28.08.2022 20:52.29.270] [LOG]   ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast]
                        0|MagicMir | [28.08.2022 20:52.29.271] [LOG]   Connecting socket for: newsfeed
                        0|MagicMir | [28.08.2022 20:52.29.271] [LOG]   Starting node helper for: newsfeed
                        0|MagicMir | [28.08.2022 20:52.29.272] [LOG]   Sockets connected & modules started ...
                        0|MagicMir | [28.08.2022 20:52.29.554] [LOG]   Launching application.
                        0|MagicMir | [28.08.2022 20:52.32.673] [LOG]   Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
                        0|MagicMir | [28.08.2022 20:52.33.281] [LOG]   Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
                        0|MagicMir | [28.08.2022 20:52.33.308] [INFO]  Checking git for module: MMM-OpenWeatherMapForecast
                        0|MagicMir | [28.08.2022 20:52.33.374] [INFO]  Checking git for module: default
                        0|MagicMir | [28.08.2022 20:52.33.661] [INFO]  Newsfeed-Fetcher: Broadcasting 32 items.
                        0|MagicMir | [28.08.2022 20:52.33.981] [INFO]  Calendar-Fetcher: Broadcasting 6 events.
                        0|MagicMir | [28.08.2022 20:52.34.387] [LOG]   [MMM-OpenWeatherMapForecast] 28-Aug-22 20:52 ** ERROR ** null
                        
                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 2 / 7
                        • 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