ãµã¼ã¢ã³å¤§å¥½ãã横山ã§ãã jsonãè¦ãã¨ãã«ã大活èºããjqã§ããããå ¥ããã¨æã£ããµã¼ãã«å®ã¯å ¥ã£ã¦ãªãã£ãï¼ãã¨ããçµé¨ãããããããªãã§ããããï¼ Amazon Linuxã®å ´åã§ãã¨ã $ sudo yum install -y jq ã®ã³ãã³ããå©ãã°ã¤ã³ã¹ãã¼ã«ã§ãã¾ãããä»åã¯æ¢ãã¦jqããªãã£ãå ´åã®æ¹æ³ããç´¹ä»ãããã¾ãã ãã®è¨äºã¯jqã®ä½¿ç¨ãæå¶ãããããªè¨äºã§ã¯ãããã¾ãã jsonãåå¾ãã ä»å㯠OpenWeatherMap ã®APIã使ããæ±äº¬ã®å¤©æ°ã®æ å ±ãjsonã§åå¾ãã¾ãã $ curl -s "http://api.openweathermap.org/data/2.5/weather?q=Tokyo,jp" {"coord":{"lon":139.69,"lat":35.69},"sys":{"message":0.0179,"country"
{{#tags}}- {{label}}
{{/tags}}