Skip to content

Instantly share code, notes, and snippets.

Created February 19, 2013 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4988815 to your computer and use it in GitHub Desktop.
Save anonymous/4988815 to your computer and use it in GitHub Desktop.
Slideshow program for Raspberry Pi (Raspbian). Make your TV-set a digital photo frame. http://svar42.wordpress.com/2013/02/19/hallonpajen-gor-teven-till-fotoram-2/ By Urban Anjar
(...)
1:23:respawn:/usr/local/bin/slideshow tty1
#1:2345:respawn:/sbin/getty --noclear 38400 tty1
(...)
#!/bin/bash
# remotecontrol
# By Urban Anjar
# Version 0.1 20130218
# Copyleft, all rights reversed
PHOTODIR=/home/urban/slideshow/pics
LOGFILE=/home/urban/slideshow/log
inotifywait -q -e move -e create -e delete $PHOTODIR >> $LOGFILE
sudo killall -HUP fbi
date >> $LOGFILE
#!/bin/bash
# slideshow
# By Urban Anjar
# Version 0.1 20130218
# Copyleft, all rights reversed
PHOTODIR=/home/urban/slideshow/pics
LOGFILE=/home/urban/slideshow/log
INTERVAL=2
echo "slideshow started" >> $LOGFILE
sudo chmod a+rwx /dev/fb0
/usr/local/bin/remotecontrol &
fbi -noverbose -a -t $INTERVAL -u $(find $PHOTODIR -iname "*.jpg")
echo "slideshow killed" >> $LOGFILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment