Re:A command-line weather app built using Elixir
by gknoy on Thursday May 07, 2015 @11:55AM
(#9505965)
Perhaps I'm a bash noob, but when I try to paste that in my shell, it complains about a syntax error near `{curl`. Am I doing something wrong?
[ Parent
| on HN ]
Re:A command-line weather app built using Elixir
by cocoflunchy on Thursday May 07, 2015 @12:00PM
(#9506014)
There are spacing issues for me. Try
function weather() { curl -s "http://api.openweathermap.org/data/2.5/weather?q=$1&units=metric" | jq .main.temp | figlet -kcf big ;}