Weather from the command line


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

replace your "zipcode" with your zipcode


Copy this code and paste it in your HTML
  1. curl -s "http://www.google.com/ig/api?weather=zipcode" | sed 's|.*<temp_f data="\([^"]*\)"/>.*|\1|'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.