feh
feh copied to clipboard
Display slideshow fetched from RSS sources?
I am setting on a small Raspberry Pi with a large HDMI screen as a digital photo frame, fetching images from a RSS feed and showing a random image using "feh -Y -z -D 10 -F --auto-rotate". But I have to manually fetch the images from the RSS feed and store them locally to get this to work. It would be a lot better if I could just point feh to the RSS feed and get it to fetch and show the images directly.
It could even show the RSS entry title and description with each image, for an even better user exerience.
Here is an examle rss XML feed:
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xml:base="http://www.nasa.gov/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Selected images</title>
<description>Selected for youth and prosperity.</description>
<link>https://www.example.com/</link>
<atom:link rel="self" href="https://www.example.com/photobook/index.rss" />
<language>nb-no</language>
<item>
<title>Hvor stor var den?</title>
<link>https://www.example.com/photobook/photos/woods.jpeg</link>
<description>Someone playing in the woods..
2018-08-04T10:37:03</description>
<enclosure url="https://www.example.com/photobook/photos/woods.jpeg" type="image/jpeg" />
<guid isPermaLink="false">https://www.example.com/photobook/photos/woods.jpeg</guid>
<pubDate>Sat, 04 Aug 2018 10:37:03 +0000</pubDate>
<source url="http://www.examples.com/index.rss">Selected images</source>
</item>
</channel>
</rss>
As you can see, the task at hand is parsing the XML, fetching the files refered in the