Earlier quoted context omitted.
May be you should post a gist. The line is getting truncated.
It should scroll horizontally.
A command-line weather app built using Elixir
61–67 of 67 posts
Re: A command-line weather app built using Elixir
#62Ya know, I was just thinking about doing something like this just a couple of days ago, but instead I wrote a python script to get the weather from forecast.io api, then brought that into my tmux status bar.
That's great! would be nice if yo could share the source as well.
Re: A command-line weather app built using Elixir
#63function weather(){curl -s "http://api.openweathermap.org/data/2.5/weather?q=$1&units=metric" | jq .main.temp | figlet -kcf big} $ weather london __ _ _ ___ _____ /_ || || | |__ \ | ____| | || || |_ ) || |__ | ||__ _| / / |___ \ | | | | _ / /_ ___) | |_| |_|(_)|____||____/
function weather(){curl -s "http://api.openweathermap.org/data/2.5/weather?q=$1&units=imperial" | jq .main.temp | figlet -kcf big}Re: A command-line weather app built using Elixir
#64Earlier quoted context omitted.
This is much much better. Closer to "beautiful" than the one featured here.
Yeah, it's beautiful if 1) you think mutable variables are beautiful 2) you think stuffing everything into one file is beautiful 3) you think defining functions at the root namespace is beautiful 4) you think consecutive repeated property accesses stuffed into a consecutively repeating boolean check like this are beautiful: if h.Time == "0" || h.Time == "100" || h.Time == "200" || h.Time == "300" || h.Time == "400" |…
Re: A command-line weather app built using Elixir
#65Earlier quoted context omitted.
Yeah, it's beautiful if 1) you think mutable variables are beautiful 2) you think stuffing everything into one file is beautiful 3) you think defining functions at the root namespace is beautiful 4) you think consecutive repeated property accesses stuffed into a consecutively repeating boolean check like this are beautiful: if h.Time == "0" || h.Time == "100" || h.Time == "200" || h.Time == "300" || h.Time == "400" |…
I think the parent was referring to the console display output rather than the code itself.
Re: A command-line weather app built using Elixir
#66Earlier quoted context omitted.
Strictly there is a little hindrance for the non-gopher user because this won't work until they set up a Go workspace, i.e. decided where they want GOPATH to be, set that, and added $GOPATH/bin to PATH to have the executable be runnable. $ env -i $(which go) get github.com/schachmat/wego package github.com/schachmat/wego: cannot download, $GOPATH not set. For more details see: go help gopath
Absolutely. I'm happy to `apt-get install` something, but the conceptual overhead of "let me configure a $language development environment" is high enough that I'm not going to bother just to install this awesome looking tool. I'd love it if this had been packaged in a way similar to Python or Node tools, where installation is as simple as 'install Python and pip; pip install my-program', and more-experienced users (…
And FYI, Go is in quite a few distro repos so you might be able to just:
apt-get install go-lang
mkdir -p ~/go/src ~go/bin
export GOPATH=~/go
go get github.com/schachmat/wego
go install github.com/schachmat/wego
However considering this is an open source CLI tool, I don't think it's at all unreasonable to expect he user to do a bit more manual work to compile and run this tool from the command line.In fact, quite frankly, I find it rather disgusting that someone should share their work and source code like this and have others moan simply because they're too bloody lazy to compile it themselves. I mean seriously guys, this is Hacker News, not PC World Magazine.
Re: A command-line weather app built using Elixir
#67Earlier quoted context omitted.
Strictly there is a little hindrance for the non-gopher user because this won't work until they set up a Go workspace, i.e. decided where they want GOPATH to be, set that, and added $GOPATH/bin to PATH to have the executable be runnable. $ env -i $(which go) get github.com/schachmat/wego package github.com/schachmat/wego: cannot download, $GOPATH not set. For more details see: go help gopath
Absolutely. I'm happy to `apt-get install` something, but the conceptual overhead of "let me configure a $language development environment" is high enough that I'm not going to bother just to install this awesome looking tool. I'd love it if this had been packaged in a way similar to Python or Node tools, where installation is as simple as 'install Python and pip; pip install my-program', and more-experienced users (…