Skip to content

Instantly share code, notes, and snippets.

@hdo
Created November 5, 2013 12:14
Show Gist options
  • Save hdo/7318183 to your computer and use it in GitHub Desktop.
Save hdo/7318183 to your computer and use it in GitHub Desktop.
Script for displaying PNG on Kindle 4 NT
#!/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