MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. DarrenHill
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    D
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 85
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-News and BBC

      @MMRIZE said in MMM-News and BBC:

      https://newsapi.org/v2/top-headlines?sources=bbc-news&pageSize=100&apiKey=YOUR_KEY

      I get this, which looks slightly different to yours? :

      {"status":"ok","totalResults":10,"articles":[{"title":"Vaping: Juul to pay $438.5 m in youth marketing probe","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T19:52:21.045172Z","url":"http://www.bbc.co.uk/news/business-62813896"},{"title":"Eliza Fletcher: Police identify body found in search for heiress","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T16:52:18.6995928Z","url":"http://www.bbc.co.uk/news/world-us-canada-62811661"},{"title":"Ukraine war: Russians to pay €45 more to enter EU under new rules","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T16:37:23.3671715Z","url":"http://www.bbc.co.uk/news/world-europe-62811675"},{"title":"Fat Leonard: Malaysian businessman linked to US Navy scandal escapes","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T16:22:22.2671956Z","url":"http://www.bbc.co.uk/news/world-us-canada-62764226"},{"title":"Canada stabbings: Police hunt remaining suspect after Saskatchewan attacks","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T15:22:24.1190163Z","url":"http://www.bbc.co.uk/news/live/world-us-canada-62811629"},{"title":"Ukraine: Ben Stiller and Sean Penn latest Americans banned from Russia","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T12:52:14.8462267Z","url":"http://www.bbc.co.uk/news/world-europe-62806655"},{"title":"Canada stabbings: Relatives identify 'random' victims of Saskatchewan attack","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T11:07:21.1055569Z","url":"http://www.bbc.co.uk/news/world-us-canada-62804826"},{"title":"Liz Truss: Boris Johnson to give farewell speech before new PM takes office","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-06T04:37:21.3806544Z","url":"http://www.bbc.co.uk/news/live/uk-politics-62802807"},{"title":"Keith Davis: He was protecting the oceans - then he disappeared","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-05T20:52:23.0241991Z","url":"http://www.bbc.co.uk/news/world-us-canada-62603911"},{"title":"Timed Teaser: How did Putin mark Gorbachev's death?","author":"BBC News","source":{"Id":"bbc-news","Name":"BBC News"},"publishedAt":"2022-09-05T20:37:23.1798468Z","url":"http://www.bbc.co.uk/news/world-us-canada-62763889"}]}
      

      @sdetweil I’ll do your test now…

      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-News and BBC

      @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?

      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-News and BBC

      @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.

      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-News and BBC

      @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.

      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-News and BBC

      @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.

      posted in Troubleshooting
      D
      DarrenHill
    • RE: MMM-News and BBC

      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?

      posted in Troubleshooting
      D
      DarrenHill
    • MMM-News and BBC

      I’ve had MMM-News running on my mirror for a while, displaying headlines from the BBC.

      Unfortunately in the last few weeks it’s stopped working, so I was wondering if anyone else has seen this and/or got it working again?

      My config.js section for the module is this:

              {
                  module: "MMM-News",
                  position: "bottom_center",
                  config: {
                      apiKey : "<redacted>",
                      type: "vertical",
                      touchable: false,
                      items: 100,
                      drawInterval: 1000*15,
                      query: [ { sources: "bbc-news" } ],
                      templateFile: "template.html"
                      }
              },
      
      

      Looking on NewsAPI it’s still I think the correct setting, and it shows there that things are still being downloaded via my API key.

      Anyone have any ideas, as this module for me looks nicer than the default newsfeed one as I want the images and short text rather than the single text line that the default module shows.

      I know MMM-News hasn’t been updated for a while on GH, but is it now defunct?

      posted in Troubleshooting
      D
      DarrenHill
    • RE: New Weather Module - Migration

      For reference, this is one of the entries in my config.js (I use the module twice, once for now and once for forecast):

              {
                  module: "weather",
                  position: "top_left",
                  config: {
                      type: "current",
                      location: "Manchester",
                      locationID: "", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
                      apiKey: "#####f59935f34cea0bf3c1aa82#####",
                      units: "metric",
                      degreeLabel: true,
                      showHumidity: true,
                      tableClass: "medium"
                      }
              },
      
      

      Where the #'s in the apiKey are actually other letters and numbers (full key redacted).

      posted in Forum
      D
      DarrenHill
    • RE: New Weather Module - Migration

      @Canguingo said in New Weather Module - Migration:

      apiKey: “abcde12345abcde12345abcde12345ab” //this is the old appi that i had

      Is that really your actual key, or did you just put that as a redaction of your actual key?

      Just to ask a basic question, as that doesn’t look like a valid key to me.

      As the others have noted, all you should need to do is change the module name and swap the key label from appid: to apiKey: , The key value itself is valid for both.

      posted in Forum
      D
      DarrenHill
    • RE: New Weather Module - Migration

      @Canguingo Nothing needs to be done in the module, it should already have been there in parallel to the old ones for the last few versions of MM.

      All you need to do is make the changes in config.js as detailed on the migration/depreciation part of the documentation. That will switch you over from the old modules to the new one.

      What has happened with the 2.19 update is the old modules have basically been removed and just replaced with the notification that you see on the mirror screen now (and that will also presumably be removed going forward).

      The config.js entry should look something like the template version you posted originally, except of course you will need to use your own specific API key rather than the abcde12345 placeholder and your specific location (unless you happen to be in Amsterdam).

      posted in Forum
      D
      DarrenHill
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 4 / 9