Skip to content

Instantly share code, notes, and snippets.

@chitacan
Last active December 11, 2015 09:28
Show Gist options
  • Save chitacan/4580139 to your computer and use it in GitHub Desktop.
Save chitacan/4580139 to your computer and use it in GitHub Desktop.
get today's temperature in every 3 hour and feed it to spark.
curl --silent http://www.kma.go.kr/wid/queryDFSRSS.jsp\?zone\=1162060500 | grep "tmn" | sed -e 's,.*<tmn>\([^<]*\)</tmn>.*,\1,g' -e 's,-999.0,,' | tr '\n' ' ' | spark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment