bblake on DeviantArthttps://www.deviantart.com/bblake/art/iPhone-4-3GS-HTC-Widget-186773565bblake

Deviation Actions

bblake's avatar

iPhone 4, 3GS HTC Widget

By
Published:
41.9K Views

Description

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.

This can be placed on your springboard or lockscreen. Simply delete or rename the one you don't want to use. For example: If you want this on your springboard, delete or rename LockBackground.html. If you want this on your lockscreen, delete or rename Wallpaper.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 causing weather to not always update (hopefully)

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.

UPDATE 7
Updated to enable 24 hr clock on the lockscreen

UPDATE 8
Bigger and clearer icons :)
© 2010 - 2024 bblake
Comments88
Join the community to add your comment. Already a deviant? Log In
scottlevy59's avatar
Awesome post.Here’s a tool that lets you build any type of web app widget in minutes, without coding [link] fortune/