This is a quickly hacked together thingy to make a digital picture frame out of a soup.io account's images. Actually it does two things that are very much generic and would work with all kinds of sources:
- A downloader script for images referenced as enclosure in a given RSS feed
- A JavaScript/HTML site that displays these images in random order full screen
- Clone the or download the repository somewhere in your webserver root
- Install composer
curl -sS https://getcomposer.org/installer | php
- Download the libraries
php composer.phar update
Because it was the easiest and fastest way for me to hack this together. The downloader would be better fitted for Python I guess and maybe I'll redo it some time. For now: deal with it!
Also I did not add any cool HTTP client library, so you need to make sure your PHP can access URLs via file_get_contents.
You first want to start with everything you ever had in your soup. You need an Export RSS feed for that:
- Go to your soup at http://.soup.io
- Open the options
- Go to the privacy tab
- Download the Export RSS URL (this takes ages to generate, so maybe do it on command line)
- Run it through the downloader script
php download.php <yourexport>.rss
You want to have this update regularly from your "normal" feed. To do so set up a cronjob to run
php downloader.php http://<yourusername>.soup.io/rss
as often as needed. The downloader should skip images
it already knows. Be sure not to pull the export feed everytime!
Open the index.html on your device's browser. It should start to cycle through the images. Click the image once to switch to full screen mode.