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

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

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 2.8k 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.
  • M Offline
    meneldour
    last edited by meneldour Jan 15, 2017, 8:59 PM Jan 15, 2017, 8:57 PM

    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?

    B 1 Reply Last reply Jan 16, 2017, 3:25 PM Reply Quote 0
    • B Offline
      bhepler Module Developer @meneldour
      last edited by Jan 16, 2017, 3:25 PM

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

      M 1 Reply Last reply Jan 16, 2017, 4:42 PM Reply Quote 0
      • M Offline
        meneldour @bhepler
        last edited by Jan 16, 2017, 4:42 PM

        @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
        1 / 1
        • First post
          1/3
          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