Created
November 5, 2013 12:14
-
-
Save hdo/7318183 to your computer and use it in GitHub Desktop.
Script for displaying PNG on Kindle 4 NT
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/sh | |
while true | |
do | |
echo "clear display" | |
eips -c | |
eips -c | |
for i in 1 2 3 4 5 6 7 8 9 10 11 12 | |
do | |
for i in 1 2 3 4 5 6 7 8 9 10 11 12 | |
do | |
rm output.png | |
# NOTE: busybox wget does not support -t and -T | |
#if wget -t1 -T 5 -q "http://192.168.2.10:8080/kindle.png" -O output.png> /dev/null; | |
if wget -q "http://192.168.2.10:8080/kindle.png" -O output.png> /dev/null; | |
then | |
echo "set new png" | |
eips -g output.png | |
else | |
echo "failed ... sleeping 30 seconds" | |
sleep 30 | |
fi | |
sleep 5 | |
done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment