研究好久還是研究不出所以然
桃園代碼就是這樣....但顯示出來溫度還22度...桃園現在明明就10多度而已
麻煩各位神人了
// iWeather Widget.theme - By Allen
// ..........................................
// Based on code referenced in several weather enabled themes. This is the first to include iPhone 4 retina wallpaper support.
//
// Originally WeatherWidget.theme
// Originally Produced by Adam Watkins (http://www.stupidpupil.co.uk)
// The location field should be a relatively machine-legible string
// if using the default, Apple/AccuWeather parser (originally from Leopard's Weather.wdgt)
var locale = "Taoyuan, TW" //ASI|TW|TW018|TAOYUAN //e.g. 'Defiance, Ohio'|'Moscow, Russia'|'Ledyard, AT'|'London, UK'
// Set to 'false' if you'd prefer Farenheit
var isCelsius = true //true|false
// Use 'Real Feel' temperatures where possible, taking into account Wind Chill, Humidity etc.
var useRealFeel = false //true|false
/*????????????????????????????????????????????????*/
//Enable Wallpaper and/or Lock Screen
var enableWallpaper = true; //true|false
var enableLockScreen = false; //true|false [Currently, it is suggested that the lockScreen is disabled.]
// choose a stylesheet - if you use something other than iWeather3 you will need to make some edits to Wallpaper.html
// they are more for a reference if you want to customize and create your own theme.
var stylesheetWall = 'iWeather3' //'iWeather3'|'iWeather6'|'originalBubble'|'myopia'|'iconOnly'|'split'|'oneLine'
var stylesheetLock = 'iconOnly' //See above.
// Images must follow the same naming schema as the 'klear' set (borrowed from KWeather)
var iconSetWall = 'HTC' //'klear'|'tango'|'katra'|'tick'|'HTC'
var iconExtWall = ".png" //'.png'|.'gif' etc.
var iconSetLock = 'minis' //See above.
var iconExtLock = '.png' //See above.
/*????????????????????????????????????????????????*/
// The other available source is 'yahooWeather' which for the 'locale'
// requires a US zip or location code (e.g. TWXX0025) from http://weather.yahoo.com
var source = 'appleAccuweatherStolen' //'appleAccuweatherStolen'|'yahooWeather'
//var source = 'yahooWeather' // yahooWeather doesn't return values for the forcast for the coming days
// Please endeavour to set this to a sensible value if you really must change it...
var updateInterval = 35 //Minutes
剛剛看了一下是13度。
代碼請參考這裡http://iphone4.tw/forums/archive/index.php?t-75386.html
另外 //之後的code是不起作用的,不必太在意那一行。
小弟我最近也是下載iWeather Widget 1.4版,但是安裝並respring之後,就是沒辦法顯示地區與天氣. 我有去修改configme.js裡的地區成"Taoyuan, Taiwan",或是像大大一樣的"Taoyuan, TW" (如下所示)
來源部份,我也是重複做了N次的修改,一下改成yahooweather,一下又改成appleaccuweatherstolen,但我不懂得是下面的來源有兩個,我應該要改哪一個??但就是沒有顯示地區與天氣.可以請上面兩位大大行行好,指點小弟迷津嗎??我已經試了好幾天,連上班都在試.
// The location field should be a relatively machine-legible string
// if using the default, Apple/AccuWeather parser (originally from Leopard's Weather.wdgt)
var locale ="Taoyuan, TW"//ASI|TW|TW018|TAOYUAN //e.g. 'Defiance, Ohio'|'Moscow, Russia'|'Ledyard, AT'|'London, UK'
/*????????????????????????????????????????????????*/
// The other available source is 'yahooWeather' which for the 'locale'
// requires a US zip or location code (e.g. TWXX0025) from http://weather.yahoo.com
var source = 'appleAccuweatherStolen' //'appleAccuweatherStolen'|'yahooWeather'
//var source = 'yahooWeather' // yahooWeather doesn't return values for the forcast for the coming days