Weather in your terminal, with ANSI colors and Unicode symbols
github.com
github.com
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 :/
Maybe try metric? Current weather in Redmond => 282.77 °C
Perhaps it doesn't know about Redmond, WA. Let's try Seattle: Current weather in Seattle => 286.5 °F
It also seems to think it's sunny in Seattle right now. Umm, no.
EDIT: ah, no space after the comma in your location, otherwise it thinks you're on the surface of Venus.
The comma edit does the trick.
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 remotely connect to home, now that would be efficient!
Even better - a few weeks ago, I found out that for math stuff, stata on OSX can be used with a command-line.
[PS: As usual Frederic, totally awesome :-)]
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.
The browser is just the terminal though (which to be fair is a large piece of the puzzle); we still don't have the shell analog. The inadequacy of ChromeOS does not make me hopeful. ChromeOS is to the browser what midnight commander is to the terminal.
You're describing Steven Wittens' TermKit proof-of-concept: http://acko.net/blog/on-termkit/
% 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).I didn't even think to convert the temp though, good call.
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.
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 it rains , it rains... If it doesn't, it doesn't.
If you sit around waiting for the rain to stop in Hilo, you'll never get anything done.
1. I live in a small apartment, so during the humid summers in New England with computer equipment running, it stays consistently hot. The A/C is running more often than not. In those cases, it's nice to get a quick gauge of the temperature/humidity. For example, it might guide me in whether I want to have a cigar in the evening.
2. I find it useful to ascribe a quantitative value to weather like temperature, since it gives me an idea of what I need to wear if I'm going to be outside for any length of time. e.g., low 50s I can get by comfortably at an idle position with shorts, shoes and a sweatshirt, but low 40s requires pants to stay comfortable. It can be difficult to tell that by just stepping outside for a few seconds...
Sorry about the long-winded response, but your question was curiously provocative!
More along the lines that you asked ...
- Install cygwin and run it in a bash terminal there. Probably some tweaking required, may or may not work. cygwin's minterm does display unicode.
- Translate it into python and run it from a dos terminal (or from cygwin). I don't think the regular cmd.exe or powershell will display unicode (I could be wrong), but a replacement like conemu does (just checked). If you like this weather thing you'll like conemu better anyway.
I just made a pull request to add the ability to see the forecast for the upcoming week as well: https://github.com/fcambus/ansiweather/pull/11/files
Now I can have a weather icon in my prompt.
_( )_ _
_( )_ _( )_
(_________) _( )_
\ \ \ (_________)
\ \ \ \ \
\ \