Live data from Hacker News

Weather in your terminal, with ANSI colors and Unicode symbols

github.com

11–20 of 52 posts

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#13
post #2

./ansiweather: line 76: jq: command not found If you run into that on ubuntu, there does not appear to be an ubuntu package for jq. Binaries and source are available at http://stedolan.github.io/jq/download/

That's listed in the requirements section of the README

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#14
Did not work for me with the default .ansiweatherrc. I had to remove the fetch_cmd:... and use curl -s instead and then it worked.

https://github.com/fcambus/ansiweather/issues/3

Thanks for this, I had written a script to pull the weather from another site and placed it in my conky. It works but is quite ugly.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#15
Obligatory reference to the awesome Powerline[1]. If you don't want to use Python there's also tmux-powerline[2] and vim-airline[3].

I've been using these for the last couple of years.

[1] https://github.com/Lokaltog/powerline

[2] https://github.com/erikw/tmux-powerline

[3] https://github.com/bling/vim-airline

EDIT: typo, spacing and autocorrect :/

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#16

     % cat ~/.ansiweatherrc
     location:Pittsburgh,Pa
     units:metric

     jim@lilly /home/jim/projects/external/ansiweather (master)[0] {+00% 58C} Mon 2013-10-21 15:39:50 0                                         
     % ./ansiweather       
      Current weather in Pittsburgh => 17.68 °C ☀  - Humidity => 33 % - Pressure => 1014 hPa 
    jim@lilly /home/jim/projects/external/ansiweather (master)[0] {+00% 59C} Mon 2013-10-21 15:39:52 0                                         
     % cat ~/.ansiweatherrc
     location:Pittsburgh,Pa
     units:imperial

     jim@lilly /home/jim/projects/external/ansiweather (master)[0] {+00% 58C} Mon 2013-10-21 15:40:00 0                                         
     % ./ansiweather       
      Current weather in Pittsburgh => 61.89 °F ☀  - Humidity => 47 % - Pressure => 985.97 hPa
Interesting that the humidity and pressure are different when using different units (err, the humity and pressure are in the same units regardless of the units setting, but the values are different).

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#17
post #3

I am thinking more and more about moving back to a text-only interface - previously I was very happy with mutt, tin, lynx (and links and w3m), centericq, etc, but only bash and vim stuck with me. Yet with the advent of unicode, there are fewer needs for a graphical interface - stay for a weather app. A clutter-free desktop consisting of mostly bash, along with gnu screen (or the likes) and ssh (or the likes) to remot…

>Yet with the advent of unicode, there are fewer needs for a graphical interface - stay for a weather app

Of course the line between graphical and text-only is blurry. I'd argue that even small inline graphics are still graphics and thus not text-only, no matter how they are technically implemented (unicode or some "real" graphics).

Personally I don't think we have to resort for using the unholy mixture of 70s and todays tech that console apps represent to get clutter-free desktop experience. More importantly I think we could get even more clean interfaces using full graphical capabilities if we'd get a good design ideology/guidelines to build upon. Just because mainstream GUI apps are stuck on WIMP idea doesn't mean that it would be the only way to approach GUI.

Re: Weather in your terminal, with ANSI colors and Unicode symbols

#19
post #2

./ansiweather: line 76: jq: command not found If you run into that on ubuntu, there does not appear to be an ubuntu package for jq. Binaries and source are available at http://stedolan.github.io/jq/download/

If you are on OS X and use Homebrew, install with 'brew install jq'
Post reply on HN