Kindle/Weather Display: Difference between revisions
< Kindle
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
/mnt/us/scripts/init-weather.sh | * /mnt/us/scripts/init-weather.sh | ||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
Line 12: | Line 12: | ||
initctl stop powerd | initctl stop powerd | ||
sleep 20 | |||
/mnt/us/scripts/display-weather.sh | /mnt/us/scripts/display-weather.sh | ||
</pre> | </pre> | ||
Line 17: | Line 18: | ||
/mnt/us/scripts/display-weather.sh | * /mnt/us/scripts/display-weather.sh | ||
<blockquote> | <blockquote> | ||
<pre> | <pre> | ||
Line 33: | Line 34: | ||
eips -g weather-image-error.png | eips -g weather-image-error.png | ||
fi | fi | ||
</pre> | |||
</blockquote> | |||
* /etc/upstart/autostart.conf | |||
<blockquote> | |||
<pre> | |||
# generic autostart | |||
start on started framework | |||
stop on stopping framework | |||
export LANG LC_ALL | |||
respawn | |||
exec sh /etc/scripts/autostart.sh | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> |
Revision as of 16:00, 27 October 2012
Based on http://www.mpetroff.net/archives/2012/09/14/kindle-weather-display/
modified for Kindle Touch 5.1.2
- /mnt/us/scripts/init-weather.sh
#!/bin/sh initctl stop framework initctl stop powerd sleep 20 /mnt/us/scripts/display-weather.sh
- /mnt/us/scripts/display-weather.sh
#!/bin/sh cd "$(dirname "$0")" rm weather-script-output.png eips -c eips -c if wget http://server/path/to/weather-script-output.png; then eips -g weather-script-output.png else eips -g weather-image-error.png fi
- /etc/upstart/autostart.conf
# generic autostart start on started framework stop on stopping framework export LANG LC_ALL respawn exec sh /etc/scripts/autostart.sh