Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Shell Script in GeekTool trouble ...
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TattooedMac" data-source="post: 942471" data-attributes="member: 101749"><p>Well pretty happy with myself as i have come up with this</p><p></p><p>[CODE]TZ=Australia/GMT-11 date +"Sydney: %H%M Hrs - %D"</p><p>TZ=England/GMT date +"London: date %H%M Hrs - %D"</p><p>TZ=NewYork/GMT5 date +"New York: %H%M Hrs - %D"</p><p>TZ=LosAngeles/GMT8 date +"Los Angeles: %H%M Hrs - %D"[/CODE]</p><p></p><p>Showing Time zones from around the world</p><p></p><p>And through a lot of looking around i have come up with this for the temp and conditions</p><p></p><p>[CODE]curl --silent "http://xml.weather.yahoo.com/forecastrss?p=ASXX0057&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'[/CODE]</p><p></p><p>I get <strong>Partly Cloudy, 21c</strong></p><p></p><p>Using Yahoo weather. The Elders one seemed to go beserk yesterday.</p><p></p><p>Am happy with it all ATM but cant work out how to get rid of the comma in the weather script ... </p><p></p><p>Thanks for you help though mate <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Cheers</p><p>Screenshot</p><p></p><p><img src="http://img.skitch.com/20091113-g5822c2bycc6sadfnm81dj8feh.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p></blockquote><p></p>
[QUOTE="TattooedMac, post: 942471, member: 101749"] Well pretty happy with myself as i have come up with this [CODE]TZ=Australia/GMT-11 date +"Sydney: %H%M Hrs - %D" TZ=England/GMT date +"London: date %H%M Hrs - %D" TZ=NewYork/GMT5 date +"New York: %H%M Hrs - %D" TZ=LosAngeles/GMT8 date +"Los Angeles: %H%M Hrs - %D"[/CODE] Showing Time zones from around the world And through a lot of looking around i have come up with this for the temp and conditions [CODE]curl --silent "http://xml.weather.yahoo.com/forecastrss?p=ASXX0057&u=c" | grep -E '(Current Conditions:|C<BR)' | sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//'[/CODE] I get [B]Partly Cloudy, 21c[/B] Using Yahoo weather. The Elders one seemed to go beserk yesterday. Am happy with it all ATM but cant work out how to get rid of the comma in the weather script ... Thanks for you help though mate :) Cheers Screenshot [IMG]http://img.skitch.com/20091113-g5822c2bycc6sadfnm81dj8feh.jpg[/IMG] [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Shell Script in GeekTool trouble ...
Top