Created
February 19, 2013 19:02
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(...) | |
1:23:respawn:/usr/local/bin/slideshow tty1 | |
#1:2345:respawn:/sbin/getty --noclear 38400 tty1 | |
(...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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