Skip to content
Display Yahoo weather data as an image
Branch: master
Clone or download
Latest commit 93ee99d Feb 26, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
server Rename parse_weather2.py to parse_weather_old.py Nov 23, 2017
.gitignore .DS_Store banished! Dec 19, 2016
LICENSE Initial commit Dec 19, 2016
README.md Update README.md Feb 27, 2018
kindleweatherfiles.zip Add files via upload Oct 31, 2017
weather-script-output.png Add files via upload Nov 2, 2017

README.md

weather-display

A customizable script to display Yahoo weather data as a portable image. alt text

Server Installation

First, install DejaVu Fonts.

Next install imagemagick and pngcrush.

apt-get install imagemagick pngcrush

Configure imagemagick so that it can find the DejaVu fonts.

Then use pip to install the required dependencies.

pip install myql dom

Insert the script launch.sh into your crontab.

Finally, install the web server of your choice and allow the port through your firewall.

Client Installation

Unzip the contents of kindleweatherfiles.zip into the root directory of your Kindle. Install the jailbreak, and USBNetworking.

Finally, add /mnt/us/weather/display-weather.sh to the cron file on the Kindle.

Troubleshooting

if imagemagick can't find your fonts: Copy fonts to a directory of your choice

Determine the directory of your imagemagick configuration type.xml

In my case, it was /usr/local/Cellar/imagemagick/6.9.7-0/etc/ImageMagick-6

cd /usr/local/Cellar/imagemagick/6.9.7-0/etc/ImageMagick-6

wget http://www.imagemagick.org/Usage/scripts/imagick_type_gen -O script.pl

find /Users/username/your_font_directory -name '*Deja*' |./script.pl -f - > ./type-morefonts.xml

Finally edit type.xml

nano type.xml

Near the end of the file between <typemap> and </typemap>, add <include file="type-morefonts.xml" />

You can’t perform that action at this time.