Read the statement by Michael Teeuw here.
MMM-OpenWeatherMapForecast stuck on Loading....
-
-
@sdetweil I ran the logs for 80 under the main MagicMirror directory. Hope that is correct way to do it.
Below is a sample of the log as I get a spam message when I add it all.
home/pi/.pm2/logs/MagicMirror-error.log last 80 lines: 0|MagicMir | MESA-LOADER: failed to retrieve device information 0|MagicMir | MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) 0|MagicMir | failed to load driver: kms_swrast 0|MagicMir | MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) 0|MagicMir | failed to load swrast driver 0|MagicMir | [25.08.2022 17:08.13.800] [ERROR] (node:14604) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 0|MagicMir | (Use `electron --trace-deprecation ...` to show where the warning was created) 0|MagicMir | [14638:0825/172135.978897:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! 0|MagicMir | X connection to :0 broken (explicit kill or server shutdown). 0|MagicMir | [14647:0825/172136.082204:ERROR:command_buffer_proxy_impl.cc(329)] GPU state invalid after WaitForGetOffsetInRange. 0|MagicMir | [14604:0825/172136.087957:ERROR:command_buffer_proxy_impl.cc(329)] GPU state invalid after WaitForGetOffsetInRange. 0|MagicMir | [25.08.2022 17:22.56.641] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | MESA-LOADER: failed to retrieve device information 0|MagicMir | MESA-LOADER: failed to retrieve device information 0|MagicMir | MESA-LOADER: failed to retrieve device information 0|MagicMir | MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) 0|MagicMir | failed to load driver: kms_swrast 0|MagicMir | MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:\$${ORIGIN}/dri:/usr/lib/dri) 0|MagicMir | failed to load swrast driver 0|MagicMir | [25.08.2022 17:23.04.450] [ERROR] (node:982) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. 0|MagicMir | (Use `electron --trace-deprecation ...` to show where the warning was created) 0|MagicMir | [1398:0825/172406.366943:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! 0|MagicMir | [1398:0825/172406.367670:ERROR:connection.cc(46)] X connection error received. 0|MagicMir | XIO: fatal IO error 104 (Connection reset by peer) on X server ":0" 0|MagicMir | after 11236 requests (11236 known processed) with 0 events remaining. 0|MagicMir | [1412:0825/172413.116477:ERROR:command_buffer_proxy_impl.cc(329)] GPU state invalid after WaitForGetOffsetInRange. 0|MagicMir | [982:0825/172413.118265:ERROR:command_buffer_proxy_impl.cc(329)] GPU state invalid after WaitForGetOffsetInRange. 0|MagicMir | [25.08.2022 17:25.34.170] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | MESA-LOADER: failed to retrieve device information 0|MagicMir | MESA-LOADER: failed to retrieve device information 0|MagicMir | MESA-LOADER: failed to retrieve device information /home/pi/.pm2/logs/MagicMirror-out.log last 80 lines: 0|MagicMir | [26.08.2022 12:20.42.648] [INFO] Calendar-Fetcher: Broadcasting 6 events. 0|MagicMir | [26.08.2022 12:24.33.069] [LOG] [MMM-OpenWeatherMapForecast] 26-Aug-22 12:24 ** ERROR ** null 0|MagicMir | [26.08.2022 12:24.47.138] [INFO] Newsfeed-Fetcher: Broadcasting 35 items. 0|MagicMir | [26.08.2022 12:25.43.849] [INFO] Calendar-Fetcher: Broadcasting 6 events. 0|MagicMir | [26.08.2022 12:29.47.307] [INFO] Newsfeed-Fetcher: Broadcasting 35 items. 0|MagicMir | [26.08.2022 12:30.45.025] [INFO] Calendar-Fetcher: Broadcasting 6 events.
Ally
-
@ally said in MMM-OpenWeatherMapForecast stuck on Loading....:
0|MagicMir | [26.08.2022 12:24.33.069] [LOG] [MMM-OpenWeatherMapForecast] 26-Aug-22 12:24 ** ERROR ** null
isn’t that helpful!..
-
@ally i used your config from
with my openweather apikey and it worked without issue.
-
-
@ally edit the node_helper.js of the module and change this
} else { console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** ERROR ** " + error); }
to this
} else { if(response.statusCode != 200) console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** bad status ** " + response.statusCode); else console.log("[MMM-OpenWeatherMapForecast] " + moment().format("D-MMM-YY HH:mm") + " ** ERROR ** " + error); }
-
@sdetweil any thoughts on why this is occurring on a fresh install of MM and this module? I also just checked the MM change logs and i am definitely running the latest version (## [2.20.0] - 2022-07-02).
Ally
-
@ally no idea. but without the code change, we won’t know what the error is…
only thing I can think of is the apikey has a leading or trailing space, making it bad
-
@sdetweil yeah, I was worried that might be the case as well, which is why I went to a fresh install and left the original weather module using the same key.
Same key, same quotes, no spaces, default settings and this is the result.
Config is setup for default weather module current, then forecast and then MMM-OpenWeatherMapForecast, which is stuck on Loading.
-
@ally again need the startup messages w the new code
I copy/pasted the config u supplied exactly and change to my API key and it worked as expected. so it’s not a config problem.
it’s an apikey problem
-
@sdetweil I deleted the old api key and made a new one, same result. The default weather modules load and this one doesn’t.