Μετάβαση στο περιεχόμενο


Φωτογραφία
- - - - -

WeatherIcon: Live weather.app


  • Παρακαλούμε συνδεθείτε για να απαντήσετε
20 μηνύματα σε αυτό το θέμα

#1   iPhoneHellas

iPhoneHellas

    iPH Admin

  • 640.961 μηνύματα
  • Twitter:@iphonehellas
  • Φύλο: Άντρας
  • Κινητό: iPhone 6 Plus
  • Tablet:iPad 3 +4G
  • GameCenter:iPhoneHellas

Δημοσίευση 22/01/2009 - 18:34

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

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

Posted Image


Το 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]

Ad

Ad

Team
iPhoneHellas
3,1416 μηνύματα
Twitter: @android
Φύλο: Όπως το δει κανείς
Κινητό: Android
Tablet: Για τα κουνούπια

Γιατί να γίνετε μέλη;

#2   hassman

hassman

    iPH newbie

  • 3 μηνύματα
  • Φύλο: Δ/Α

Δημοσίευση 23/01/2009 - 00:46

Πως ακριβώς το εγκαθιστούμε αυτό; (sorry...noob)

Edit: Greeklish to Greek

#3   nikolis9

nikolis9

    iPH Addict

  • 653 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 11:33

Δεν χρειαζετε να επεμβουμε σε αρχεια απλα καντε το update και μετα το διαλεγετε απο τον winterboard

#4   poulis84

poulis84

    iPH Member

  • 290 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 14:17

Που το βρίσκω αυτό???γτ ψάχνω στο cydia αλλά δεν μπορώ να βρω κάτι...

#5   dpap

dpap

    iPH User

  • 156 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 14:20

Εγώ παντως δεν το βλέπω στο cydia  :P

Ουτε στο changes, ουτε στο search μου το δείχνει. Ψάχνω για 'WeatherIcon'.

Μηπως το δίνει κάποιο rep που δεν το έχω περασμένο?



#6   poulis84

poulis84

    iPH Member

  • 290 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 14:22

Quote

Εγώ παντως δεν το βλέπω στο cydia  :P

Ουτε στο changes, ουτε στο search μου το δείχνει. Ψάχνω για 'WeatherIcon'.

Μηπως το δίνει κάποιο rep που δεν το έχω περασμένο?


και γω ακριβώς σε αυτή τη φάση είμαι... :(

#7   nikolis9

nikolis9

    iPH Addict

  • 653 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 14:22

Quote

Εγώ παντως δεν το βλέπω στο cydia  :P

Ουτε στο changes, ουτε στο search μου το δείχνει. Ψάχνω για 'WeatherIcon'.

Μηπως το δίνει κάποιο rep που δεν το έχω περασμένο?


βαλε αυτο: http://david.ashman.com/apt/



#8   dpap

dpap

    iPH User

  • 156 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 15:16

Thanx, εβαλα το source του david ashman και το βρήκε ...

Quote

Το Weather Icon.theme το οποίο διατίθεται με το extension, περιλαμβάνει το configuration file (Bundles/com.apple.springboard/com.ashman.WeatherIcon.plist) μέσω του οποίου μπορείτε να ρυθμίσετε παραμέτρους όπως:


Για να μην μπερδευτει ο κοσμος, στο /Library/Themes/Weather Icon.theme/Bundles/com.apple.springboard/com.ashman.WeatherIcon.plist ρυθμίζεις το εικονίδιο [image rendering + text style] ενώ στο  /User/Library/Preferences/com.ashman.WeatherIcon.plist ρυθμίζεις location.

Οπως γράφει, αν δεν αλλαξεις το αρχείο, χρησιμοποιει για default location το πρώτο location που έχεις βάλει στο weather app της apple.



#9   iPhoneHellas

iPhoneHellas

    iPH Admin

  • 640.961 μηνύματα
  • Twitter:@iphonehellas
  • Φύλο: Άντρας
  • Κινητό: iPhone 6 Plus
  • Tablet:iPad 3 +4G
  • GameCenter:iPhoneHellas

Δημοσίευση 23/01/2009 - 15:29

Quote

Για να μην μπερδευτει ο κοσμος, στο /Library/Themes/Weather Icon.theme/Bundles/com.apple.springboard/com.ashman.WeatherIcon.plist ρυθμίζεις το εικονίδιο [image rendering + text style] ενώ στο  /User/Library/Preferences/com.ashman.WeatherIcon.plist ρυθμίζεις location.


Thanks dpap, προστέθηκε στο αρχικό post ;-)

#10   dpap

dpap

    iPH User

  • 156 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 15:34

Quote

Thanx, εβαλα το source του david ashman και το βρήκε ...


Offtopic με το θεμα αλλα στο ιδιο source βρηκα και το 'reflectivedock' το οποιο βρήκα πολυ cool  ;D

Στην εικονα που εχει το πρώτο ποστ φαινεται το reflection των docked icons.



#11   iason1907

iason1907

    Advanced Member

  • 180 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 23/01/2009 - 18:55

ξέρει κανείς ποιο είναι αυτό το θέμα? Ωραίο αυτό το κολπάκι με το εικονίδιο του weather... μου δημιουργήθηκε η εντύπωση όμως πως για να κάνει update πρέπει να είναι στο springboard το iphone και όχι locked... ελπίζω απλά να μου φάνημε  :P

#12   astalavista_thes

astalavista_thes

    Newbie

  • 38 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 24/01/2009 - 13:59

Καλησπέρα παιδιά,

έχω πρόβλημα με την εφαρμογή. Την εγκαθιστώ αλλά στο εικονίδιο φαίνεται και το defualt και το καινούργιο εικονίδιο, το ένα πάνω στο άλλο. Δηλαδή έχει τον ήλι και απο κάτω έχει ένα 23 και ένα 11 (που είναι η  live θερμοκρασία). Γιατι συμβαίνει αυτό?

Ευχαριστώ

#13   astalavista_thes

astalavista_thes

    Newbie

  • 38 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 24/01/2009 - 14:10

Quote

Καλησπέρα παιδιά,



έχω πρόβλημα με την εφαρμογή. Την εγκαθιστώ αλλά στο εικονίδιο φαίνεται και το defualt και το καινούργιο εικονίδιο, το ένα πάνω στο άλλο. Δηλαδή έχει τον ήλι και απο κάτω έχει ένα 23 και ένα 11 (που είναι η  live θερμοκρασία). Γιατι συμβαίνει αυτό?



Ευχαριστώ


Το έλυσα το πρόβλημα. Έλειπε το winterboard...

#14   koumpou

koumpou

    iPH newbie

  • 42 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 07/02/2009 - 02:27

σε εμενα οσο και αν προσπαθω μου βγαζει το ενα εικονιδιο πανω στο αλλο...τι να κανω;( το εχω ενεργοποιησει και απο το winterboard αλλα τιποτα παλι το ιδιο )... :(

#15   dpap

dpap

    iPH User

  • 156 μηνύματα
  • Φύλο: Άντρας

Δημοσίευση 09/02/2009 - 12:35

Στο winterboard, άλλαξε την σειρα με την οποια κανει apply τα themes [κανε tap τερμα δεξια και 'συρε' τις γραμμες πανω-κατω].

Και εμενα με εχει μπερδέψει ομολογώ, στην αρχη εκανε και μενα overlap τα δυο εικονίδια αλλα οταν τα εβαλα με τη σωστή σειρα εφτιαξε. Ποια πρεπει να ειναι η σωστή σειρα ακομα δεν εχω καταλάβει, οστόσο, η σειρα που χρησιμοποιώ τωρα και παιζει ειναι η εξής: (απο πανω προς τα κατω) Klear Weather icon -> Smoog weather BG -> Weather icon.

Το klear weather και το smoog weather ειναι δυο διαφορετικά set εικονιδίων για το weather icon, διαλεξε οποιο σου αρεσει και χρησιμοποιήσε το.

Αν δεν βλέπεις τα weather icon themes στο winterboard, βαλε στο cydia το source του david ashman (http://david.ashman.com/apt).



Ad

Ad

Team
iPhoneHellas
3,1416 μηνύματα
Twitter: @android
Φύλο: Όπως το δει κανείς
Κινητό: Android
Tablet: Για τα κουνούπια

Γιατί να γίνετε μέλη;



Χρήστες που διαβάζουν αυτό το θέμα: 1

0 μέλη, 1 επισκέπτες, 0 ανώνυμοι χρήστες