Read the statement by Michael Teeuw here.
MMM-News and BBC
-
@DarrenHill what is your address: in mm config.js?
have u changed it recently?
does this module report errors in the console?
might be a CORS error… -
Thanks gents. Nice to know support is still there.
It was working a while back (several weeks) then it started showing images with #null and no other text, and now it doesn’t show anything in the area assigned to it.
In mm-error.log after a reboot, all I see is this:
[06.09.2022 20:13.58.974] [ERROR] Whoops! There was an uncaught exception... [06.09.2022 20:13.58.990] [ERROR] Error: listen EADDRINUSE: address already in use 0.0.0.0:8080 at Server.setupListenHandle [as _listen2] (node:net:1330:16) at listenInCluster (node:net:1378:12) at doListen (node:net:1516:7) at process.processTicksAndRejections (node:internal/process/task_queues:84:21) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '0.0.0.0', port: 8080 } [06.09.2022 20:13.58.992] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? [06.09.2022 20:13.58.993] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues [29786:0906/201403.366075:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [29882:0906/201403.754866:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported. [29803:0906/201403.845480:ERROR:command_buffer_proxy_impl.cc(126)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
(I renamed the log file and started a fresh log file with a reboot, as the old one is large and full of stuff).
The mirror has a static IP address which hasn’t changed, and I haven’t knowingly changed anything in the config, at least since the problem arose.
Can you remind me how to access the console?
-
@DarrenHill alt-spacebar, n
MagicMirror is the app created by my install
mm is the one created by following the manual instructions.
pm2 stop all
will stop everythingpm2 info 0 (or name) will dump out the info about what is to be run…
for MagicMirror it is /home/pi/MagicMirror/I stallers/mm.shto delete an entry
pm2 delete 0( or 1 or a name)
then pm2 save to update the pm2 startup cachepm2 --help, like most Linux commands will tell you all the things it can do
-
@sdetweil Thanks - I just found the wiki page about auto starting and saw I had somehow got it running twice.
That’s now fixed, but after a reboot the module issue still remains.
I’ll go check logs and console now.
-
@sdetweil OK I’ve found a News module error in the MagicMirror-out.log:
[06.09.2022 20:26.46.502] [LOG] [NEWS] Error : https://newsapi.org/v2/top-headlines?sources=bbc-news&pageSize=100&apiKey=<redacted> TypeError: Cannot read properties of undefined (reading 'toString') at slugify (/home/pi/MagicMirror/modules/MMM-News/node_helper.js:24:17) at cb (/home/pi/MagicMirror/modules/MMM-News/node_helper.js:89:33) at getArticles (/home/pi/MagicMirror/modules/MMM-News/node_helper.js:135:22) at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
I’ve removed my API key string, but the rest is copy/paste.
I tried a git pull on the module the other day before my first post here, and it’s up to date.
-
@DarrenHill that error means the content back from the API is not as expected. either nothing there or the format changed.
-
@sdetweil OK, although from what @mumblebaj posted above it still works for him with my config?
I’ll try removing it and reinstalling it and see if that helps.
-
@DarrenHill not a reinstall thing
-
@sdetweil OK.
So I guess I’m stuck for now unless you or the others have any suggestions.
I was wondering as you say if the incoming info format had changed when it started throwing the #null text, but it’s weird that it works for others?
-
@DarrenHill
Well, I also tried your config with my apiKey and it worked.Try this in your browser and let’s see what happens.
https://newsapi.org/v2/top-headlines?sources=bbc-news&pageSize=100&apiKey=YOUR_KEY