MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    parsing RSS description (newsfeed or MMM-RSS-FEED)

    Troubleshooting
    2
    3
    2466
    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.
    • meneldour
      meneldour last edited by meneldour

      hi,

      I’m trying to get an RSS feed going that would show more than just the RSS title, unfortunately I’m not sure on what to change (and where) to get more lines in the feed (not just title)

      I’ve tried MMM-RSS-FEED and adjusting the default newsfeed module, but am still struggling

      Example:
      http://feeds.feedblitz.com/german-word-of-the-day

      content of the feed:

      vulgäre Ausdrücke: profanity
       2017-01-15 00:00 UTC
      
      Part of speech:	noun
      Example sentence:	Man sollte hier keine vulgären Ausdrücke benutzen.
      Sentence meaning:	One shouldn't use profanity here.
      

      What MMM-RSS-FEED module shows:

      vulgäre Ausdrücke: profanity
      

      What newsfeed module shows:
      alt text

      relevant config.js part:

      {
      module: 'newsfeed',
      position: 'top_right',
      config: {
      feeds: [
      {
      title: "German word of the day:",
      url: "http://feeds.feedblitz.com/german-word-of-the-day&x=1"
      }
      ],
      showSourceTitle: true,
      showPublishDate: true,
      showDescription: true
      }
      },
      

      Is there a way to force either of the modules to display the RSS body (description) formatting properly? Respect new lines and tabs?

      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Module Developer @meneldour last edited by

        @meneldour For something that will contain multiple fields in a feed that you wish displayed on multiple lines, it’s probably easier to make a Word of the Day module. Use the RSS feed as a basis and modify the getDOM function to format your feed as you wish.

        Perhaps there’s already a word of the day module that can just be switched over to the one you like?

        meneldour 1 Reply Last reply Reply Quote 0
        • meneldour
          meneldour @bhepler last edited by

          @bhepler That’s what I had concluded as well.

          There’s already the wordnik module , I’ve looked into its code, couldn’t find out how to edit it for my usage though, since my coding knowledge is very limited.

          Maybe the bible verse module? I’ll give it a go.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy