研究好久還是研究不出所以然

桃園代碼就是這樣....但顯示出來溫度還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

eric5678 wrote:
研究好久還是研究不出...(恕刪)

範例中地名/國家兩旁是用單引號,建議把雙引號改成單引號試試。

Morgan1130 wrote:
範例中地名/國家兩旁...(恕刪)


地名顯示沒問題啦~問題出在~~溫度跟所在地實際溫度不同...

這是我研究不出來的原因~~

用別的主題溫度都是對的....

我比較在意的是這段代碼

ASI|TW|TW018|TAOYUAN

因為台灣好多地區我上網查都是一樣的

顯示20多度...這應該是南部的天氣吧

Morgan1130 wrote:
目前accuweat...(恕刪)


剛剛不久前~把來源改成yahooweather就成功了....

感謝你囉~
上面的兩位大大你們好,

小弟我最近也是下載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
大大,

我總算來源使用yahooWeather,地區改成TWXX0025後,有桃園地區的即時天氣了.但為何沒有未來3/6天的天氣預報??

可以幫我解惑嗎??我真的不知道要去哪裡更改.TKS.
Eric大大,

請問你,你說你的來源改成yahooWeather後,溫度顯示正常.但請問有3 or 6天的天氣預報嗎??

我也改成yahooWeather,地區設TWXX0025,但就是沒有3 or 6天的天氣預報.可以請你指點指點嗎??

因為我來源用appleAccu....的溫度真的跟實際差很多.

TKS.
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!