Skip to content

yoonsikp/weather-display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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" />

About

Display Yahoo weather data as an image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published