Read the statement by Michael Teeuw here.
Get Images and text from an xml
-
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? -
@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. -
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.
-
@Ybbet
Here is a simple Proof of concept of your request. -
@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 -
Thank you @MMRIZE for this POC. I will test it tonight. :-)