Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
11-22-2010, 06:04 PM #1
iPhone 4 / 3GS HTC Clock & Weather Widget
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
Fixed bug with displaying temp in Celsius
Added version without forecast
Added 24hr clock option (half-way down Wallpaper.html file, change TwentyFourHourClock variable to true)
Fixed bug preventing weather from updating reliably (Hopefully)
Attempt at fixing a bug causing springboard to crash
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!
Added Hi and Lo temps to the "No Forecast" version
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.
Last edited by bjbinc; 11-24-2010 at 08:36 PM.
The Following 35 Users Say Thank You to bjbinc For This Useful Post:
Bernie-Mac (11-28-2010), bombmom (10-09-2011), Breezer23 (12-08-2010), Cvjordan23 (11-22-2010), DaEliminator (01-09-2011), Dark_Ninja (11-24-2010), decophil (01-12-2011), Defiied (01-22-2011), fdw1 (11-24-2010), freebie (01-04-2011), GaN-MaN (11-23-2010), greek.guy (11-29-2010), Ian Nicoll (12-14-2010), Jedi5o5 (11-22-2010), Jephre (12-05-2010), john8825 (11-26-2010), jokerg7 (11-23-2010), kimvy (11-26-2010), lostinthemes (01-21-2011), mahgninnuc93 (12-01-2010), mic_888 (01-03-2011), norcal415 (11-23-2010), PJ7 (03-09-2013), Raaj FX was banned (11-28-2010), RAiiNx (11-29-2010), rameses09 (11-24-2010), stewyb (04-29-2011), swooshmac (12-13-2010), testrun505 (11-27-2010), THatton (12-09-2010), thecluelesss (11-23-2010), togomaku (11-29-2010), umma_urban (12-10-2010), wintux (03-06-2011), Zzipper (12-16-2010)
11-22-2010, 06:31 PM #2
Yay! you joined MMI!
11-22-2010, 06:35 PM #3
The Following User Says Thank You to bjbinc For This Useful Post:
11-22-2010, 06:57 PM #4
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!!!!
The Following User Says Thank You to Pronup For This Useful Post:
11-22-2010, 07:16 PM #5
Well...considering your not a fan, I really appreciate the compliment!
11-22-2010, 07:38 PM #6
duuuuuddeeee what icons are those? They look clean as hell...
11-22-2010, 07:40 PM #7
11-22-2010, 07:45 PM #8
11-22-2010, 07:54 PM #9
thanks, using it now and it look great
The Following User Says Thank You to Jedi5o5 For This Useful Post:
11-22-2010, 11:24 PM #10
Looks fantastic! Any way to make it only show on the home screen as opposed to all the pages?
The Following User Says Thank You to one918 For This Useful Post:
11-23-2010, 12:51 AM #11
^ Not currently...this is a limitation of winterboard and there is nothing I can do about it.
11-23-2010, 04:19 AM #12
The Following User Says Thank You to roomer11 For This Useful Post:
11-23-2010, 05:31 AM #13
The Following User Says Thank You to .:JimmyL:. For This Useful Post:
11-23-2010, 09:21 AM #14
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.
Last edited by swifttricker; 11-23-2010 at 09:33 AM.
The Following User Says Thank You to swifttricker For This Useful Post:
11-23-2010, 11:10 AM #15
wow!!! this is really good! i've been hoping for something like this. better than all the other htc widgets so far. thank you!
The Following User Says Thank You to monkey87 For This Useful Post:
11-23-2010, 11:10 AM #16
11-23-2010, 12:03 PM #17
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; 11-23-2010 at 12:08 PM.
The Following User Says Thank You to Doreen For This Useful Post:
11-23-2010, 12:37 PM #18
11-23-2010, 12:54 PM #19
Yeah that might be in LockInfo's settings where you can adjust the height of the clock (double check that)
11-23-2010, 01:10 PM #20
Last edited by thecluelesss; 11-23-2010 at 02:50 PM.