1. bjbinc's Avatar



    An HTC Widget for the iPhone 4 / 3GS and optimized for the retina display.

    To change your location, edit the Private\WeatherWidget\WeatherWidget.html file in notepad. About half way down the file you'll find the locale variable. Change it to your zip code.

    To place on the lockscreen instead of the springboard, simply rename Wallpaper.html to LockBackground.html

    I've included a .psd to create your own digits.

    I used the template from here

    UPDATE
    Fixed bug with displaying temp in Celsius

    UPDATE 2
    Added version without forecast
    Added 24hr clock option (half-way down Wallpaper.html file, change TwentyFourHourClock variable to true)

    UPDATE 3
    Fixed bug preventing weather from updating reliably (Hopefully)
    Attempt at fixing a bug causing springboard to crash

    UPDATE 4
    Added option to translate weather descriptions. Currently, it only has Italian and English, but you can add your own. Open the translation.js file and make a copy of the Italian translation code. Then replace the descriptions with your own translations and rename the language array from "Italian" to whatever your language is. Finally, open the WeatherWidget.html file and change the LangTranslate variable to your new language.
    If people submit their translations to me, I'll add them to the default download to save others all this trouble. Thanks!

    UPDATE 5
    Added Hi and Lo temps to the "No Forecast" version

    UPDATE 6
    Added option to remove leading zero from the hours. In the LockBackground.html and Wallpaper.html files, look for "var showLeadingZero = true" and change it to false to remove the leading zero.


    Download
    Attached Thumbnails iPhone 4 / 3GS HTC Clock & Weather Widget-screenmn.png  
    Last edited by bjbinc; 2010-11-25 at 05:36 AM.
    2010-11-23 03:04 AM
  2. Li-ion's Avatar
    Yay! you joined MMI!
    2010-11-23 03:31 AM
  3. bjbinc's Avatar
    2010-11-23 03:35 AM
  4. Pronup's Avatar
    I'm not a big fan of the HTC Clock look, but this is one of the best I've seen so far! Great Job!!!!
    2010-11-23 03:57 AM
  5. bjbinc's Avatar
    Well...considering your not a fan, I really appreciate the compliment!
    2010-11-23 04:16 AM
  6. AnthonyGiola's Avatar
    duuuuuddeeee what icons are those? They look clean as hell...
    2010-11-23 04:38 AM
  7. Retrospect's Avatar
    duuuuuddeeee what icons are those? They look clean as hell...
    Those are Crypt's Gladhandler icons: MacThemes Forum / [theme] Gladhander, Btw nice clock and weather !
    Check out my theme Réalité HD: Here!
    <Donate> if you want to help me and support my themes.
    2010-11-23 04:40 AM
  8. AnthonyGiola's Avatar
    Those are Crypt's Gladhandler icons: MacThemes Forum / [theme] Gladhander, Btw nice clock and weather !
    OMG thanks this looks amazing...
    2010-11-23 04:45 AM
  9. Jedi5o5's Avatar
    thanks, using it now and it look great
    2010-11-23 04:54 AM
  10. one918's Avatar
    Looks fantastic! Any way to make it only show on the home screen as opposed to all the pages?
    2010-11-23 08:24 AM
  11. bjbinc's Avatar
    ^ Not currently...this is a limitation of winterboard and there is nothing I can do about it.
    2010-11-23 09:51 AM
  12. roomer11's Avatar
    ^ Not currently...this is a limitation of winterboard and there is nothing I can do about it.
    Have a look at this: [ame=http://www.youtube.com/watch?v=vm8hCeo8aO4]YouTube - Buuf 4 HD[/ame]
    It seems like they managed to keep the clock only on the 1st page, but the next page on "clock free" ??
    2010-11-23 01:19 PM
  13. .:JimmyL:.'s Avatar
    2010-11-23 02:31 PM
  14. swifttricker's Avatar
    This is very good! Is it possible that you could add the Dusk LAW to this? Its simple enough to add to the springbaord but i cant get it to work for the lock screen?

    This is what i have so far for the lockscreen attached.
    Attached Thumbnails iPhone 4 / 3GS HTC Clock &amp; Weather Widget-img_0801.png  
    Last edited by swifttricker; 2010-11-23 at 06:33 PM.
    2010-11-23 06:21 PM
  15. monkey87's Avatar
    wow!!! this is really good! i've been hoping for something like this. better than all the other htc widgets so far. thank you!
    2010-11-23 08:10 PM
  16. bjbinc's Avatar
    Have a look at this:
    It seems like they managed to keep the clock only on the 1st page, but the next page on "clock free" ??
    Yeah thats not ios4. They are using per-page wallpapers which can't be done right now with ios 4

    This is very good! Is it possible that you could add the Dusk LAW to this? Its simple enough to add to the springbaord but i cant get it to work for the lock screen?

    This is what i have so far for the lockscreen attached.
    I've tried, but have had no luck. Let me know if you get it working.
    2010-11-23 08:10 PM
  17. Doreen's Avatar
    Yeah thats not ios4. They are using per-page wallpapers which can't be done right now with ios 4
    Hello bjbinc that is my Buuf Flip Clock Animated Weather Widget that person posted in the vid and yes mine is working on ios4 and it is not per-page wallpapers (boy do I miss that though)

    Great job on your HTC Widget it looks very clean! You will need to re-code things to make it work w/ LockInfo and for it to appear only on the first page like mine does. (incase you want to do the same) "LockInfo" is avail on Cydia okay...
    Last edited by Doreen; 2010-11-23 at 09:08 PM.
    2010-11-23 09:03 PM
  18. thecluelesss's Avatar
    Hello bjbinc that is my Buuf Flip Clock Animated Weather Widget that person posted in the vid and yes mine is working on ios4 and it is not per-page wallpapers (boy do I miss that though)

    Great job on your HTC Widget it looks very clean! You will need to re-code things to make it work w/ LockInfo and for it to appear only on the first page like mine does. (incase you want to do the same) "LockInfo" is avail on Cydia okay...
    yea, i modified this theme to work with lockinfo, and it is great...
    the only thing i dont like about lockinfo is the first page and rest of pages wallpaper dont lineup properly... maybe just my settings
    2010-11-23 09:37 PM
  19. Doreen's Avatar
    Yeah that might be in LockInfo's settings where you can adjust the height of the clock (double check that)
    2010-11-23 09:54 PM
  20. thecluelesss's Avatar
    Yeah that might be in LockInfo's settings where you can adjust the height of the clock (double check that)
    the height is offset by -20px; i modified the values in the html files so the vertical alignment is fine now. cant get a transparent background/wallpaper for lockinfo thou, only give me a black background on the lockinfo area
    Last edited by thecluelesss; 2010-11-23 at 11:50 PM.
    2010-11-23 10:10 PM
384 12311 ...
LINK TO POST COPIED TO CLIPBOARD