小弟來分享一下這幾天的心得!分享前先感謝各位版友,尤其是開版分享的Alendy、很熱心的Janwoei,謝謝!底下是小弟目前使用的桌面,請參考囉!日期時間的部份,前面Alendy的分享大家應該都可以設定出來。小弟就直接分享,天氣的部份!請各位先到底下聯結『下載』Yahoo天氣的Script。http://www.macosxtips.co.uk/geeklets/weather/weather-icon-and-info-yahoo-weather-1/共有三個檔:依序執行這三個Script,OK後,再去修改Weather (info)1.glet及Weather (description)1.glet這兩個Script內容。小弟人在高雄,所以地區就以高雄做修改範例囉!Weather (info)1.glet修改內容如下:(紅色字體部份)curl --silent "http://weather.yahoo.com/taiwan/kaohsiung-city/kaohsiung-city-2306180/" | grep "forecast-icon" | sed "s/.*background\:url(\'\(.*\)\')\;\ _background.*/\1/" | xargs curl --silent -o /tmp/weather.png\Weather (description)1.glet修改內容如下:(紅色字體部份)curl --silent "http://weather.yahooapis.com/forecastrss?p=TWXX0013&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/<\/地區資訊,請到底下聯結查詢:http://weather.yahoo.com/在Zip Code的地方,輸入:Kao-Hsiung可以查到高雄地區的天氣。第一段的Script需修改的網址就是底下這個啦!http://weather.yahoo.com/taiwan/kaohsiung-city/kaohsiung-city-2306180/接下來請點右邊有個RSS的按鈕,會得到底下個網址這個網址就是第二段Script要修改的內容http://weather.yahooapis.com/forecastrss?p=TWXX0013&u=c以上分享!如有錯誤的地方,請多指教,謝謝!
chiensx wrote:小弟來分享一下這幾天...(恕刪) 可以了台中市第一段 SHELL 天氣圖檔路徑curl --silent "http://weather.yahooapis.com/forecastrss?p=TWXX0019&u=C" | grep "current-weather" | sed "s/.*background\:url(\'\(.*\)\') .*/\1/" | xargs curl --silent -o /tmp/weather1.png\第二段 image 秀圖file:///tmp/weather1.png第三段 SHELL 溫度文字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>//'----11/20 更新APP STORE 下載的 3.02 版 可用第三段LION 使用 APP STORE 下載 Geektool 3.02 可用套件開啟修改本地適用區域就可以了月曆記得使用 細明體或標楷體 Regular 字位置才會正確附加壓縮檔: 201111/mobile01-088f74053453a53a6c2712752aac715b.zip第一段 SHELL 天氣圖表位置 與 第三段 SHELL 溫度參考位置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 桃園
andy9999 wrote:請問 如何顯示出 溫...(恕刪) 如果沒出現『溫度』『文字』應該是有一個『C』沒改到!Weather (description)1.glet修改內容裡第二行有一個紅色的C,原本是F,記得改。curl --silent "http://weather.yahooapis.com/forecastrss?p=TWXX0013&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/<\/
GREEEN wrote:請問時鐘可以設定成多國的嗎??因為常出國,想設定好幾個時鐘在桌面謝謝 可以,但貓也剛剛才試出來更改紅色的TZ=TIME-ZONE-NAME/UTC-#:## date +"LOCATION: %I:%M %p %a"在這裡查詢區域時間:The World Clock – Time ZonesPS: 剛剛試了GMT 好像不行...只能用UTC,另請高人解說一下