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.

    Newsfeed is not loading

    Scheduled Pinned Locked Moved Troubleshooting
    2 Posts 2 Posters 3.3k Views 2 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.
    • H Offline
      Himbeerkuchen
      last edited by

      Hello!

      I’m doing my first steps on the Magic Mirror project and I was able to get run everything but not the newsfeed.

      I changed the script like this:

      {
      module: ‘newsfeed’,
      position: ‘bottom_bar’,
      config: {
      feeds: [
      {
      title: “news.orf.at”,
      url: “http://rss.orf.at/news.xml”
      }
      ],
      showSourceTitle: true,
      showPublishDate: true
      }
      },

      The newsfeed ist not loading anything and in the terminal I get following:

      pi@raspberrypi:~/MagicMirror $ DISPLAY=:0 npm start

      magicmirror@2.0.0 start /home/pi/MagicMirror
      electron js/electron.js

      Loading config …
      Loading module helpers …
      No helper found for module: alert.
      No helper found for module: clock.
      Initializing new module helper …
      No helper found for module: compliments.
      No helper found for module: currentweather.
      No helper found for module: weatherforecast.
      Initializing new module helper …
      All module helpers loaded.
      Starting server op port 8080 …
      Server started …
      Connecting socket for: calendar
      Starting node helper for: calendar
      Connecting socket for: newsfeed
      Starting module: newsfeed
      Sockets connected & modules started …
      Launching application.
      Create new calendar fetcher for url: http://www.calendarlabs.com/templates/ical/US-Holidays.ics - Interval: 300000
      Create new news fetcher for url: http://rss.orf.at/news.xml - Interval: 300000
      Whoops! There was an uncaught exception…
      TypeError: parser.close is not a function
      at SAXStream.openf1 (/home/pi/MagicMirror/node_modules/feedme/lib/xmlfeedparser.js:107:14)
      at emitOne (events.js:96:13)
      at SAXStream.emit (events.js:188:7)
      at Object.me._parser.(anonymous function) [as onopentag] (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:258:17)
      at emit (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:640:35)
      at emitNode (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:645:5)
      at openTag (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:841:5)
      at Object.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:1318:13)
      at SAXStream.write (/home/pi/MagicMirror/node_modules/sax/lib/sax.js:239:18)
      at yoshi.write (/home/pi/MagicMirror/node_modules/feedme/lib/feedme.js:41:14)
      MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

      Can anybody pleayse tell me why it is not working?

      Thank you very much for your help!

      1 Reply Last reply Reply Quote 0
      • bheplerB Offline
        bhepler Module Developer
        last edited by

        I copied your module configuration and found a couple things. It looks like you may be having a character set issue. It may just be an artifact of the copy & paste. But here’s what I found:

        1. You need to use the single quote character around your text values. module: 'newsfeed. I’m not sure what character is in there, but my system didn’t like it.
        2. The showSourceTitle and showPublishDate variables are not part of the config: {...} section, so the closed curly brace (}) needs to be moved up 2 lines to just after the closed bracket (]).
        3. I think that once you make these changes, you’ll have to bounce the magic mirror process to get the content to show up. I was able to see the module, and received no errors, but the content didn’t load.
        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          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