Newsfeed is not loading

  • 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: “”,
    url: “
    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: - Interval: 300000
    Create new news fetcher for url: - 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 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:

    Can anybody pleayse tell me why it is not working?

    Thank you very much for your help!

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

Log in to reply

Looks like your connection to MagicMirror Forum was lost, please wait while we try to reconnect.