• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Error in DNews (copy of PNews)

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 557 Views 3 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.
  • J Offline
    Johans
    last edited by Dec 5, 2021, 10:51 AM

    Re: MMM-Pnews

    Hi, long time ago you made this DNews module so I could see some local news. (it was copy from your PNews module.
    Now I re-installed the mirror after upgraded to an RPI4-4GB and this module gives me an error.
    Would you mind have a look at this.

    I would like to see this RSS feed on my mirror again :
    http://www.nieuwsblad.be/rss/section/c1e533dc-ff1c-40fc-b48c-77ee686d54d4?intro=1",

    I installed the PNews but unfortunately it works with an API key (which I have) but my news source isn’t available.
    I have the MMM-NewsFeed to display the regular new but this module can not have 2 instances. So I would like to continue using the DNews module next to it (as it was in the past)
    Hope you can help.

    this is the error:

    [04.12.2021 10:42.09.832] [ERROR] Whoops! There was an uncaught exception...
    [04.12.2021 10:42.09.837] [ERROR] Error: Cannot find module 'xml2js'
    Require stack:
    
    /home/pi/MagicMirror/modules/MMM-DNews/node_helper.js
    /home/pi/MagicMirror/js/app.js
    /home/pi/MagicMirror/js/electron.js
    /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
    at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
    at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
    at Module._load (internal/modules/cjs/loader.js:732:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object. (/home/pi/MagicMirror/modules/MMM-DNews/node_helper.js:9:16)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at loadModule (/home/pi/MagicMirror/js/app.js:127:19)
    at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
    at /home/pi/MagicMirror/js/app.js:167:6
    at loadModule (/home/pi/MagicMirror/js/app.js:146:4)
    at loadNextModule (/home/pi/MagicMirror/js/app.js:165:5)
    at /home/pi/MagicMirror/js/app.js:167:6
    at loadModule (/home/pi/MagicMirror/js/app.js:146:4) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/pi/MagicMirror/modules/MMM-DNews/node_helper.js',
    '/home/pi/MagicMirror/js/app.js',
    '/home/pi/MagicMirror/js/electron.js',
    '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
    undefined
    ]
    }
    [04.12.2021 10:42.09.839] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    
    
    M C 2 Replies Last reply Dec 5, 2021, 10:57 AM Reply Quote 0
    • M Offline
      mumblebaj Module Developer @Johans
      last edited by mumblebaj Dec 5, 2021, 10:58 AM Dec 5, 2021, 10:57 AM

      @johans Have a look at this thread.
      https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/11

      Your error Error: Cannot find module 'xml2js'

      Check out my modules at: https://github.com/mumblebaj?tab=repositories

      J 1 Reply Last reply Dec 5, 2021, 1:35 PM Reply Quote 1
      • J Offline
        Johans @mumblebaj
        last edited by Dec 5, 2021, 1:35 PM

        @mumblebaj said in Error in DNews (copy of PNews):

        @johans Have a look at this thread.
        https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later/11

        Your error Error: Cannot find module 'xml2js'

        Thank you - now it’s working again.

        1 Reply Last reply Reply Quote 0
        • C Offline
          cowboysdude Module Developer @Johans
          last edited by Dec 7, 2021, 1:28 AM

          @johans yes… npm install…very important. I’ll have to look at the repository to make sure I put that in the instructions. If I didn’t I apologize :)

          J 1 Reply Last reply Dec 9, 2021, 2:17 PM Reply Quote 0
          • J Offline
            Johans @cowboysdude
            last edited by Dec 9, 2021, 2:17 PM

            @cowboysdude - thanks

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            1 / 1
            • First post
              5/5
              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