Skip to content

Instantly share code, notes, and snippets.

Created July 4, 2014 15:35
Show Gist options
  • Save anonymous/986af8d75f8b4058cce6 to your computer and use it in GitHub Desktop.
Save anonymous/986af8d75f8b4058cce6 to your computer and use it in GitHub Desktop.
Cron tasks for XBMC #Fourtwenty ticker https://diasp.de/posts/1510246
  • Run these cron lines on a machine that serves static pages at /PATH/TO/STATIC/WEB/FOLDER/ (you can even do this on the xbmc machine itself).
  • add the url of 420.rss as an RSS source. Update every minute (it's a cheap operation).

You should see a ticker like this:

screenshot

5 * * * * curl https://www.zzzen.com/420/420.rss > /PATH/TO/STATIC/WEB/FOLDER/420.rss
21 * * * * cd /PATH/TO/STATIC/WEB/FOLDER; mv 420.rss was-420.rss; sed "s/Get ready for/Thank you for celebrating/" < was-420.rss > 420.rss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment