try145236 wrote:
請問要如何把溫度改為...(恕刪)
這是台中 ( 如果要其他城市請查找 YAHOO 氣象相關地區內碼 )
新版 秀出攝氏溫度文字內碼
關鍵在于 紅色標示
還有 這最好是 放在新建立另外的 Manage Groups
curl --silent "http://weather.yahooapis.com/forecastrss?p=TWXX0019&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/
//' -e 's///' -e 's/<\/b>//' -e 's/
//' -e 's/<description>//' -e 's/<\/description>//' -e "s/\(.*\), \([0-9]*\) [A-Z]/\2\°C and \1/" | tail -n1
LION 使用 APP STORE 下載 Geektool 3.02 可用套件
開啟修改本地適用區域就可以了
附加壓縮檔: 201111/mobile01-088f74053453a53a6c2712752aac715b.zip
溫度參考位置 與天氣圖表位置
http://weather.yahooapis.com/forecastrss?p=TWXX0001&u=c 彰化
http://weather.yahooapis.com/forecastrss?p=TWXX0009&u=c 新竹
http://weather.yahooapis.com/forecastrss?p=TWXX0011&u=c 花蓮
http://weather.yahooapis.com/forecastrss?p=TWXX0013&u=c 高雄
http://weather.yahooapis.com/forecastrss?p=TWXX0019&u=c 台中
http://weather.yahooapis.com/forecastrss?p=TWXX0020&u=c 台南
http://weather.yahooapis.com/forecastrss?p=TWXX0021&u=c 台北
http://weather.yahooapis.com/forecastrss?p=TWXX0022&u=c 新北市
http://weather.yahooapis.com/forecastrss?p=TWXX0025&u=c 桃園