Member Since: May 19, 2009
Location: Waiting for a mate . . .
Mac Specs: 21" iMac 2.9Ghz 16GB RAM, 10.10.3, 13"MBP 2.9Ghz i7 8GB RAM, 10.10.3, iPhone5 iOS 8.3, iPad Air 2 iO
11-13-2009, 12:38 AM
Well pretty happy with myself as i have come up with this
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"
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
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>//'
I get Partly Cloudy, 21c
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
Dont forget to use the Reputation System if someone has helped you out !!!
Arguing with a zealot is only slightly easier than tunneling through a mountain with your forehead!!!!!