Get Weather Shell Script


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  1. wget http://www.google.com/ig/api?weather=$1 -O wr.dat -q
  2. cat wr.dat | awk {'print substr($L, index($L,"high data")+11, 2)","'}
  3. cat wr.dat | awk {'print substr($L, index($L,"low data")+10, 2)'}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.