Jump to content

[Solved]GeekTool weather


7 posts in this topic

Recommended Posts

i really don't know where yo post this thats why i'm posting it in this section.

 

so i want help regarding weather with geektool, the thing is i have got the weather working in celcius(i want it in celcius only) but i can't get the image(icon) thing working, i have tried so many things for it , so please help me to get it working , below are few links for my location which will be needed for you for the script.

 

 

 

http://xml.weather.y...?p=INXX0059&u=c

http://weather.yahoo...?p=INXX0059&u=c

http://weather.yahoo...jaipur-2295401/

 

Thank You.

 

 

P.S. : i want these kind of icons from yahoo only not the other flat ones or pixelated ones.

 

b_1244446693954.jpg

Link to comment
Share on other sites

Try this.

 

curl --silent "http://weather.yahoo.com/india/rajasthan/jaipur-2295401/" | grep "current-weather" | sed "s/.*background\:url(\'\(.*\)\') .*/\1/" | xargs curl --silent -o /tmp/weather1.png\

  • Like 1
Link to comment
Share on other sites

Try this.

 

curl --silent "http://weather.yahoo.com/india/rajasthan/jaipur-2295401/" | grep "current-weather" | sed "s/.*background\:url(\'\(.*\)\') .*/\1/" | xargs curl --silent -o /tmp/weather1.png\

 

thanx mate , i already got this script from a youtube video but i used weather.png in place of weather1.png :)

 

now setting this thread as solved :)

Link to comment
Share on other sites

  • 4 months later...
 Share

×
×
  • Create New...