Read the statement by Michael Teeuw here.
MMM-OpenWeatherMapForecast stuck on Loading....
-
@ally I removed the location name (e.g. New York) and just used the locationID number and it started to work
-
@stevengill he doesn’t have location specified with the weathermap module
-
@sdetweil sorry, I must have misread this and thought this was their code

-
@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. -
@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 -
@sdetweil No errors being reported, but no change in the modules behavior.

{ 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", } }, -
@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-cthen examine somefile.txt
-
@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 -
@ally there is another section of the output…where the error was reported last time
home/pi/.pm2/logs/MagicMirror-error.log
-
@sdetweil same error
28.08.2022 21:10.34.377] [LOG] Starting MagicMirror: v2.20.0 [28.08.2022 21:10.34.385] [LOG] Loading config ... [28.08.2022 21:10.34.394] [LOG] Loading module helpers ... [28.08.2022 21:10.34.399] [LOG] No helper found for module: alert. [28.08.2022 21:10.34.419] [LOG] Initializing new module helper ... [28.08.2022 21:10.34.420] [LOG] Module helper loaded: updatenotification [28.08.2022 21:10.34.422] [LOG] No helper found for module: clock. [28.08.2022 21:10.34.635] [LOG] Initializing new module helper ... [28.08.2022 21:10.34.638] [LOG] Module helper loaded: calendar [28.08.2022 21:10.34.640] [LOG] No helper found for module: compliments. [28.08.2022 21:10.34.689] [LOG] Initializing new module helper ... [28.08.2022 21:10.34.692] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast [28.08.2022 21:10.34.720] [LOG] Initializing new module helper ... [28.08.2022 21:10.34.723] [LOG] Module helper loaded: newsfeed [28.08.2022 21:10.34.724] [LOG] All module helpers loaded. [28.08.2022 21:10.34.833] [LOG] Starting server on port 8080 ... [28.08.2022 21:10.34.850] [LOG] Server started ... [28.08.2022 21:10.34.853] [LOG] Connecting socket for: updatenotification [28.08.2022 21:10.34.855] [LOG] Starting module helper: updatenotification [28.08.2022 21:10.34.857] [LOG] Connecting socket for: calendar [28.08.2022 21:10.34.859] [LOG] Starting node helper for: calendar [28.08.2022 21:10.34.861] [LOG] Connecting socket for: MMM-OpenWeatherMapForecast [28.08.2022 21:10.34.863] [LOG] ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast] [28.08.2022 21:10.34.865] [LOG] Connecting socket for: newsfeed [28.08.2022 21:10.34.867] [LOG] Starting node helper for: newsfeed [28.08.2022 21:10.34.868] [LOG] Sockets connected & modules started ... [28.08.2022 21:10.35.212] [LOG] Launching application. [28.08.2022 21:10.38.502] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [28.08.2022 21:10.38.552] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [28.08.2022 21:10.38.603] [INFO] Checking git for module: MMM-OpenWeatherMapForecast [28.08.2022 21:10.38.642] [INFO] Checking git for module: default [28.08.2022 21:10.38.927] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:10.39.643] [LOG] [MMM-OpenWeatherMapForecast] 28-Aug-22 21:10 ** ERROR ** null [28.08.2022 21:10.39.896] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:15.39.424] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:15.41.132] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:20.39.237] [LOG] [MMM-OpenWeatherMapForecast] 28-Aug-22 21:20 ** ERROR ** null [28.08.2022 21:20.40.820] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:20.42.343] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:25.41.189] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:25.43.553] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:30.39.346] [LOG] [MMM-OpenWeatherMapForecast] 28-Aug-22 21:30 ** ERROR ** null [28.08.2022 21:30.41.369] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:30.44.877] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:35.41.533] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:35.46.150] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:40.39.257] [LOG] [MMM-OpenWeatherMapForecast] 28-Aug-22 21:40 ** ERROR ** null [28.08.2022 21:40.41.736] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:40.47.660] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:45.41.947] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:45.48.861] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:50.39.355] [LOG] [MMM-OpenWeatherMapForecast] 28-Aug-22 21:50 ** ERROR ** null [28.08.2022 21:50.42.128] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:50.50.284] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 21:55.42.480] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 21:55.51.610] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 22:00.39.318] [LOG] [MMM-OpenWeatherMapForecast] 28-Aug-22 22:00 ** ERROR ** null [28.08.2022 22:00.42.644] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 22:00.52.840] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 22:05.42.822] [INFO] Newsfeed-Fetcher: Broadcasting 32 items. [28.08.2022 22:05.54.216] [INFO] Calendar-Fetcher: Broadcasting 6 events. [28.08.2022 22:10.39.243] [LOG] [MMM-OpenWeatherMapForecast] 28-Aug-22 22:10 ** ERROR ** null -
@ally did u add my new code?
-
I’m having some hard time too, I cannot get it to work and get this error, I’m using the same key for the default weather module
[LOG] [MMM-OpenWeatherForecast] 29-Aug-22 07:50 ** ERROR ** Error: Request failed with status code 401
Not sure what I’m doing wrong.
{
module: “weather”,
position: “top_right”,
header: “Weather Forecast”,
config: {
weatherProvider: “openweathermap”,
type: “forecast”,
location: “Suwanee”,
locationID: “4225309”,
apiKey: “working key”
}
},{
module: “MMM-OpenWeatherForecast”,
position: “top_right”,
header: “Wettervorschau Schama”,
config: {
apikey: “same key as above”, //SUPER SECRET
latitude: 49.039349,
longitude: 11.847070,
units: “metric”,
iconset: “4c”,
colored: true,
concise: true
}
},
-
@bassin12 said in MMM-OpenWeatherMapForecast stuck on Loading....:
401
well, that is
http error 401 unauthorizedso, that looks like there is some error in your apiKey
-
@bassin12 said in MMM-OpenWeatherMapForecast stuck on Loading....:
module: “MMM-OpenWeatherForecast”,
also, this is a different module than we are discussing
MMM-OpenWeatherMapForecast
-
@bassin12 your config works perfectly with my apikey
-
@bassin12 also, please enclose all config and code sections in a code block
copy paste the text into the new message
select the text
and the hit the button </> above the editor -
This is really funny, I downloaded the right module now, tested with my key, and now it is saying the key is invalid, this is the code I’m using
{ module: "weather", position: "top_right", header: "Weather Forecast", config: { weatherProvider: "openweathermap", type: "forecast", location: "Suwanee", locationID: "4225309", apiKey: "Mykey" } }, { module: "MMM-OpenWeatherMapForecast", header: "Weather", position: "top_right", classes: "default everyone", disabled: false, config: { apiKey: "Mykey", latitude: 51.506130, longitude: -0.090270, iconset: "4c", concise: false, forecastLayout: "table" } },This is the error I get
[29.08.2022 09:07.47.834] [LOG] [MMM-OpenWeatherMapForecast] 29-Aug-22 09:07 ** ERROR ** No API key configured. Get an API key at https://openweathermap.org/api/one-call-api
I tried the Latitude and Longitude with and without quotes.
-
@bassin12 this module uses all lowercase for the key name field
apikey:
this system is case sensitive
-
I did the code change in node_helpe.js, and the system now reports this error
[29.08.2022 10:34.06.199] [LOG] [MMM-OpenWeatherMapForecast] 29-Aug-22 10:34 ** bad status ** 401
my full config.js is this:
/* MagicMirror² Config Sample * * By Michael Teeuw https://michaelteeuw.nl * MIT Licensed. * * For more information on how you can configure this file * see https://docs.magicmirror.builders/configuration/introduction.html * and https://docs.magicmirror.builders/modules/configuration.html */ let config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "0.0.0.0", "::" to listen on any interface // Default, when address config is left out or empty, is "localhost" port: 8080, basePath: "/", // The URL path where MagicMirror² is hosted. If you are using a Reverse proxy // you must set the sub path here. basePath must end with a / ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses // or add a specific IPv4 of 192.168.1.5 : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"], // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format : // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"], useHttps: false, // Support HTTPS or not, default "false" will use HTTP httpsPrivateKey: "", // HTTPS private key path, only require when useHttps is true httpsCertificate: "", // HTTPS Certificate path, only require when useHttps is true language: "en", locale: "en-US", logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging timeFormat: 24, units: "metric", // serverOnly: true/false/"local" , // local for armv6l processors, default // starts serveronly and then starts chrome browser // false, default for all NON-armv6l devices // true, force serveronly mode, because you want to.. no UI on this device modules: [ { module: "weather", position: "top_right", header: "Weather Forecast", config: { weatherProvider: "openweathermap", type: "forecast", location: "Suwanee", locationID: "4225309", apiKey: "45fe452eea1fcfe3589cd5e8aa3f3f93" } }, { module: "MMM-OpenWeatherMapForecast", header: "Weather", position: "top_left", classes: "default everyone", disabled: false, config: { apikey: "45fe452eea1fcfe3589cd5e8aa3f3f93", latitude: "51.506130", longitude: "-0.090270", iconset: "4c", concise: false, forecastLayout: "table" } }, ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;} -
@bassin12 yep… something…
both work for me…
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