WeatherIcon: Live weather information on your

Posted on Thursday January 22nd, 2009 / 18:52

Το WeatherIcon είναι ένα νέο MobileSubstrate extension  (διαθέσιμο μέσω Cydia) το οποίο σας δίνει  live weather information*  στην θέση του!

*Το WeatherIcon όχι μόνο σας δείχνει την τρέχουσα θερμοκρασία αλλά το εικονίδιο του αλλάζει ανάλογα με τον καιρό (!!).


Το Weather Icon.theme το οποίο διατίθεται με το extension, περιλαμβάνει τα παρακάτω configuration files:

1) /Library/Themes/Weather Icon.theme/Bundles/ όπου ρυθμίζετε το εικονίδιο [image rendering + text style]

2) /User/Library/Preferences/com.ashman.WeatherIcon.plist όπου ρυθμίζετε το location (Συμβουλευτείτε το Yahoo! Weather)


There are two configuration files for this extension: one for themes and one for preferences.

1) The preferences are located at /User/Library/Preferences/com.ashman.WeatherIcon.plist.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

OverrideLocation – Boolean setting for whether to use the Apple weather application settings or the settings in this file.  Defaults to false, meaning use the Apple weather application.  The first location from the Apple weather application will be used.
Location - Zip code or location code for your location.  This is the code that is used by Yahoo! Weather to find your location.  Look at for pointers on finding your code.
Celsius - Boolean setting for whether to show Celsius temperature.  Defaults to false.
RefreshInterval – Number of MINUTES between update.  Defaults to 15 minutes.
WeatherBundleIdentifier - The bundle identifier of the application you use for weather.  Defaults to the standard iPhone weather app,

2) The theme configuration is located at /Library/Themes/Weather Icon.theme/Bundles/ This is theme specific and controls how the images and text are rendered.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
        <string>color: black; text-align: left</string>

ImageScale - This float is multiplied by each weather image to scale the image down to the right size for the icon.
ImageMarginTop - Defines the number of pixels from the top of the icon the image should be rendered.
TempStyle - CSS style for the temp text.  There is a default style but you can override it with this setting. Do NOT put a semicolon at
the end of the style.  It will cause a Safe Mode crash (not sure why).

The icons are named “weather??.png” where the ?? is replaced the the code that Yahoo returns.
Change Log

– Fixed conflict with reflectivedock where a reflection of a dock icon was rendered on the weather icon instead of the weather image.
– Split the configuration file into two: One for themes and one for preferences.  This way updates won’t keep killing your settings. wink
– Added theme preferences for more control over image scaling and placement.

– Supports loading location and Celsius settings from default Apple weather app.  This is now the default but can be overridden.  It will use the first location in the weather app.
– Supports custom text styles by configuration.
– If the weather images are the same size as the weather icon, it will not scale them.  This adds flexibility in the types of weather images you can use.
– I tried to integrate location services but couldn’t get it working.  If anyone has experience with Core Location in MobileSubstrate, let me know.

– Fixed unlock and application close lag.

– Much more stable implementation of weather updates.  Updates will occur when you unlock and quit applications, so no background thread to eat battery life! big_smile
– Added configuration for refresh interval.  Defaults to 15 minutes.
– Added configuration for which application to apply the weather info to.  Defaults to the iphone Weather app, but you can use any bundle identifier you want.

– Changed the images to use the HTC image set.
– Added a blank icon to the default theme (though it’s the blank I use for Smoog).  If someone has a blank default-looking icon, let me know.

– Fixed initial crash due to WinterBoard theme not being turned on.  Woops.  CS101 mistake.

Known Issues
– Temperature isn’t exactly centered.
– Temperature is too low for some themes (Tenuis).

Planned Enhancements:
– Use the configuration from the default weather application.
– Custom styles for the temperature information
– Weather alerts?  Maybe?
– Add weather information to the status bar also.
– More customizable images for the weather icon (right now it’s limited to a 35x35px overlay).
– Automatically determine your location and show weather information for that place.

[Via MacThemes]

Συζήτηση στο forum: WeatherIcon: Live

About Vasilis Ananiadis

Ο ζωντανός θρύλος της Ελληνικής blogόσφαιρας, ο αβυσσαλέος master του SEO, o πρίγκηπας των Social Media, ο τυφώνας των Web Startups, ο οργασμός της ιντερνετικής επιτυχίας. Τώρα και στο twitter: @vananiadis

Tags: ,

Comments are closed.