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.

    Get Images and text from an xml

    Scheduled Pinned Locked Moved Unsolved Requests
    6 Posts 2 Posters 612 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.
    • Y Offline
      Ybbet
      last edited by

      Hi,

      For specific display needs in the premises of a small association, I would like to be able to display an image, a title and a description that I will retrieve from an xml (from an external URL https://mydomain.tld/digitalsignage. xml)
      I know of the existence of the MMM-News, MMM-NewsAPI or even MMM-PNews modules. But none meet my expectations.
      The xml file structure would be like this:

      <root>
      <item>
      <title>MyTitle</title>
      <image>https://mydomain.tld/media/beautifulpicture.jpg</image>
      <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dignissim mollis odio sed vestibulum. Etiam molestie mi tellus, sed pellentesque enim sagittis vitae. In hac habitasse platea dictumst. Nulla semper fermentum accumsan. Phasellus vitae massa sodales, tincidunt urna ut, vulputate risus.</description>
      </item>
      <item>
      <title>MyTitle</title>
      <image>https://mydomain.tld/media/beautifulpicture.jpg</image>
      <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dignissim mollis odio sed vestibulum. Etiam molestie mi tellus, sed pellentesque enim sagittis vitae. In hac habitasse platea dictumst. Nulla semper fermentum accumsan. Phasellus vitae massa sodales, tincidunt urna ut, vulputate risus.</description>
      </item>
      <item>
      <title>MyTitle</title>
      <image>https://mydomain.tld/media/beautifulpicture.jpg</image>
      <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam dignissim mollis odio sed vestibulum. Etiam molestie mi tellus, sed pellentesque enim sagittis vitae. In hac habitasse platea dictumst. Nulla semper fermentum accumsan. Phasellus vitae massa sodales, tincidunt urna ut, vulputate risus.</description>
      </item>
      </root>
      

      For configuration, we could indicate the value of animationSpeed. We display one item at a time.
      Do you have any idea how to achieve this please?

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MMRIZE @Ybbet
        last edited by

        @Ybbet
        You may build a dedicated module for your needs. Fortunately it seems not too difficult, But the only issue is, just you need that module, it will not be the general purpose. So you should find a KIND volunteer or HIRE one.

        Y 1 Reply Last reply Reply Quote 0
        • Y Offline
          Ybbet @MMRIZE
          last edited by

          Hi @MMRIZE

          Thank you for your answer. Yes, I understand it’s not generic. The MMM-News and other modules do not display images of the article. This is certainly due to the standard of the rss feed. The NewsAPI site does not necessarily reference what I need (about a dedicate rss feed).
          I thought about using MagicMirror for this display need because the calendar function works very well for me (at least 85%-90%). All I’m missing is displaying a visual with text.

          I’m going to look at how to create a slide with MagicMirror. I have not yet developed on this platform.

          M 2 Replies Last reply Reply Quote 0
          • M Offline
            MMRIZE @Ybbet
            last edited by

            @Ybbet
            Here is a simple Proof of concept of your request.

            https://github.com/MMRIZE/MMM-XMLViewYbbet

            1 Reply Last reply Reply Quote 0
            • M Offline
              MMRIZE @Ybbet
              last edited by MMRIZE

              @Ybbet
              What you need is get the image from rss, read this threads. It may help.
              https://forum.magicmirror.builders/topic/16933/developer-wanted-to-modify-default-newsfeed-module

              1 Reply Last reply Reply Quote 0
              • Y Offline
                Ybbet
                last edited by

                Thank you @MMRIZE for this POC. I will test it tonight. :-)

                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