• 25

[分享]桌面時間模組GeekTool分享, Mac 個性化之相關軟體與桌布分享


Alendy wrote:
這個貓會在假日時研究...(恕刪)


天氣教學 連接到yahoo 天氣



yahoo 天氣
andy9999 wrote:
天氣教學 連接到ya...(恕刪)

感謝andy9999 大大的分享,這樣就可以簡短搜尋的時間了!
但yahoo 被攔住了!
感謝Alendy大大
已收到這精緻的桌布嚕!
小弟來分享一下這幾天的心得!
分享前先感謝各位版友,尤其是開版分享的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

以上分享!如有錯誤的地方,請多指教,謝謝!
喜歡拍照,喜歡一切美的東西! http://blog.chiensx.com
chiensx wrote:
小弟來分享一下這幾天...(恕刪)


哇 謝謝~
不過我文字弄不出來
所以就只有放圖片,這樣也不錯看
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/<\/
喜歡拍照,喜歡一切美的東西! http://blog.chiensx.com
chiensx wrote:
小弟來分享一下這幾天...(恕刪)

哇~太感謝chiensx 大大的氣象模組解說!
真的很有幫助呢!

目前貓還在找尋apple & CNN 官方有無天氣之開放伺服器之支援~
請問時鐘可以設定成多國的嗎??
因為常出國,想設定好幾個時鐘在桌面

謝謝
GREEEN wrote:
請問時鐘可以設定成多國的嗎??
因為常出國,想設定好幾個時鐘在桌面

謝謝

可以,但貓也剛剛才試出來

更改紅色的
TZ=TIME-ZONE-NAME/UTC-#:## date +"LOCATION: %I:%M %p %a"

在這裡查詢區域時間:The World Clock – Time Zones

PS: 剛剛試了GMT 好像不行...只能用UTC,另請高人解說一下
  • 25
內文搜尋
X
評分
評分
複製連結
請輸入您要前往的頁數(1 ~ 25)
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?