TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Weather in your terminal, with ANSI colors and Unicode symbols

145 pointsby fcambusover 11 years ago

21 comments

mafroover 11 years ago
Obligatory reference to the awesome Powerline[1]. If you don&#x27;t want to use Python there&#x27;s also tmux-powerline[2] and vim-airline[3].<p>I&#x27;ve been using these for the last couple of years.<p>[1] <a href="https://github.com/Lokaltog/powerline" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Lokaltog&#x2F;powerline</a><p>[2] <a href="https://github.com/erikw/tmux-powerline" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;erikw&#x2F;tmux-powerline</a><p>[3] <a href="https://github.com/bling/vim-airline" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bling&#x2F;vim-airline</a><p>EDIT: typo, spacing and autocorrect :&#x2F;
burntsushiover 11 years ago
I put ansiweather in the AUR[1] for Archlinux users.<p>[1] - <a href="https://aur.archlinux.org/packages/ansiweather-git/" rel="nofollow">https:&#x2F;&#x2F;aur.archlinux.org&#x2F;packages&#x2F;ansiweather-git&#x2F;</a>
评论 #6588562 未加载
mikestewover 11 years ago
We&#x27;re dyin&#x27; over here in the Seattle area: Current weather in Redmond =&gt; 282.77 °F<p>Maybe try metric? Current weather in Redmond =&gt; 282.77 °C<p>Perhaps it doesn&#x27;t know about Redmond, WA. Let&#x27;s try Seattle: Current weather in Seattle =&gt; 286.5 °F<p>It also seems to think it&#x27;s sunny in Seattle right now. Umm, no.<p>EDIT: ah, no space after the comma in your location, otherwise it thinks you&#x27;re on the surface of Venus.
评论 #6588479 未加载
guylhemover 11 years ago
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.<p>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!<p>Even better - a few weeks ago, I found out that for math stuff, stata on OSX can be used with a command-line.<p>[PS: As usual Frederic, totally awesome :-)]
评论 #6587736 未加载
评论 #6588205 未加载
评论 #6587552 未加载
bhickeyover 11 years ago
For April Fools&#x27; I released cloudyfs -- weather reports in your file system. Its pretty primitive, but functional. Pardon my haskell, it&#x27;s lousy.<p><a href="http://github.com/bhickey/cloudyfs" rel="nofollow">http:&#x2F;&#x2F;github.com&#x2F;bhickey&#x2F;cloudyfs</a>
jimktrains2over 11 years ago
<p><pre><code> % cat ~&#x2F;.ansiweatherrc location:Pittsburgh,Pa units:metric jim@lilly &#x2F;home&#x2F;jim&#x2F;projects&#x2F;external&#x2F;ansiweather (master)[0] {+00% 58C} Mon 2013-10-21 15:39:50 0 % .&#x2F;ansiweather Current weather in Pittsburgh =&gt; 17.68 °C ☀ - Humidity =&gt; 33 % - Pressure =&gt; 1014 hPa jim@lilly &#x2F;home&#x2F;jim&#x2F;projects&#x2F;external&#x2F;ansiweather (master)[0] {+00% 59C} Mon 2013-10-21 15:39:52 0 % cat ~&#x2F;.ansiweatherrc location:Pittsburgh,Pa units:imperial jim@lilly &#x2F;home&#x2F;jim&#x2F;projects&#x2F;external&#x2F;ansiweather (master)[0] {+00% 58C} Mon 2013-10-21 15:40:00 0 % .&#x2F;ansiweather Current weather in Pittsburgh =&gt; 61.89 °F ☀ - Humidity =&gt; 47 % - Pressure =&gt; 985.97 hPa </code></pre> 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).
评论 #6589944 未加载
blueblobover 11 years ago
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.<p><a href="https://github.com/fcambus/ansiweather/issues/3" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fcambus&#x2F;ansiweather&#x2F;issues&#x2F;3</a><p>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.
donpdonpover 11 years ago
.&#x2F;ansiweather: line 76: jq: command not found<p>If you run into that on ubuntu, there does not appear to be an ubuntu package for jq. Binaries and source are available at <a href="http://stedolan.github.io/jq/download/" rel="nofollow">http:&#x2F;&#x2F;stedolan.github.io&#x2F;jq&#x2F;download&#x2F;</a>
评论 #6587694 未加载
评论 #6587802 未加载
评论 #6594505 未加载
kawsperover 11 years ago
How often does it make a http request? Every time PS1 is printed?
评论 #6587741 未加载
donretagover 11 years ago
The author obviously does not live in California. I rarely check the weather since I know that it will be more or less the same as yesterday , or the day before, or the day before that...
评论 #6587853 未加载
评论 #6588103 未加载
nilvedover 11 years ago
I realize this is a weird question, but I&#x27;ve never understood the point of having an applet show you the current weather. Does your home have no windows?
评论 #6588805 未加载
评论 #6589100 未加载
评论 #6595162 未加载
评论 #6588824 未加载
评论 #6589346 未加载
xradionutover 11 years ago
Most of us weather&#x2F;radio nuts in the US have been doing something similar for over a decade or more. There&#x27;s several scripts written in Perl or Python that grab data from NOAA. (Or you can just program your ICOM with the local frequency and script it to respond to the CLI...)
troelsover 11 years ago
I need this as an emacs extension. Would fit right next to my nyan cat progress bar.
评论 #6670247 未加载
devindotcomover 11 years ago
Ack! I love this, so lightweight. I don&#x27;t mean to do a pony request here, but can anyone think of an easy way to get this into a garden-variety windows 7 desktop, like through a rainmeter script or news ticker?
评论 #6588743 未加载
评论 #6588283 未加载
评论 #6588798 未加载
aw3c2over 11 years ago
Alternatively, <a href="http://robobunny.com/projects/weatherspect/html/" rel="nofollow">http:&#x2F;&#x2F;robobunny.com&#x2F;projects&#x2F;weatherspect&#x2F;html&#x2F;</a> ;)
jmptableover 11 years ago
Reminds me of a project a friend of mine did recently for the hackMIT hackathon: <a href="http://hackmit.challengepost.com/submissions/18025-bashwunderground-b8" rel="nofollow">http:&#x2F;&#x2F;hackmit.challengepost.com&#x2F;submissions&#x2F;18025-bashwunde...</a> Has ASCII-art, but I don&#x27;t think he&#x27;s put the source up anywhere.
mVChrover 11 years ago
This is great!<p>I just made a pull request to add the ability to see the forecast for the upcoming week as well: <a href="https://github.com/fcambus/ansiweather/pull/11/files" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;fcambus&#x2F;ansiweather&#x2F;pull&#x2F;11&#x2F;files</a>
jstalinover 11 years ago
I had to use an underscore for a space in my city name in the config file. It would be nice if it linked to the list of city names available. But I think the program is pretty awesome!
评论 #6587549 未加载
评论 #6594530 未加载
laurenyover 11 years ago
Great to see the weather in the title bar of my xterm, I often don&#x27;t have the strength to look out the window.
Wilyaover 11 years ago
Nice idea !<p>Now I can have a weather icon in my prompt.
AsymetricComover 11 years ago
Disappointed<p><pre><code> _( )_ _ _( )_ _( )_ (_________) _( )_ \ \ \ (_________) \ \ \ \ \ \ \</code></pre>
评论 #6587911 未加载