*Το WeatherIcon όχι μόνο σας δείχνει την τρέχουσα θερμοκρασία αλλά το εικονίδιο του αλλάζει ανάλογα με τον καιρό (!!).
Το Weather Icon.theme το οποίο διατίθεται με το extension, περιλαμβάνει τα παρακάτω configuration files:
1) /Library/Themes/Weather Icon.theme/Bundles/com.apple.springboard/com.ashman.WeatherIcon.plist όπου ρυθμίζετε το εικονίδιο [image rendering + text style]
2) /User/Library/Preferences/com.ashman.WeatherIcon.plist όπου ρυθμίζετε το location (Συμβουλευτείτε το Yahoo! Weather)
Configuration
There are two configuration files for this extension: one for themes and one for preferences. 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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>OverrideLocation</key>
<false/>
<key>Location</key>
<string>20852</string>
<key>Celsius</key>
<false/>
<key>RefreshInterval</key>
<integer>15</integer>
<key>WeatherBundleIdentifier</key>
<string>com.apple.weather</string>
</dict>
</plist>
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 http://developer.yahoo.com/weather/ 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, com.apple.weather.
The theme configuration is located at /Library/Themes/Weather Icon.theme/Bundles/com.apple.springboard/com.ashman.WeatherIcon.plist. 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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ImageScale</key>
<real>0.3</real>
<key>ImageMarginTop</key>
<integer>3</integer>
<key>TempStyle</key>
<string>color: black; text-align: left</string>
</dict>
</plist>
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. Make sure you 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
1.4
- 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.
1.3
- 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.
1.2.1
- Fixed unlock and application close lag.
1.2
- 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.
1.1.1
- 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.
1.1
- 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]