TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Weather in your terminal, with ANSI colors and Unicode symbols

145 点作者 fcambus超过 11 年前

21 条评论

mafro超过 11 年前
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;
burntsushi超过 11 年前
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 未加载
mikestew超过 11 年前
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 未加载
guylhem超过 11 年前
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 未加载
bhickey超过 11 年前
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>
jimktrains2超过 11 年前
<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 未加载
blueblob超过 11 年前
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.
donpdonp超过 11 年前
.&#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 未加载
kawsper超过 11 年前
How often does it make a http request? Every time PS1 is printed?
评论 #6587741 未加载
donretag超过 11 年前
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 未加载
nilved超过 11 年前
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 未加载
xradionut超过 11 年前
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...)
troels超过 11 年前
I need this as an emacs extension. Would fit right next to my nyan cat progress bar.
评论 #6670247 未加载
devindotcom超过 11 年前
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 未加载
aw3c2超过 11 年前
Alternatively, <a href="http://robobunny.com/projects/weatherspect/html/" rel="nofollow">http:&#x2F;&#x2F;robobunny.com&#x2F;projects&#x2F;weatherspect&#x2F;html&#x2F;</a> ;)
jmptable超过 11 年前
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.
mVChr超过 11 年前
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>
jstalin超过 11 年前
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 未加载
laureny超过 11 年前
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.
Wilya超过 11 年前
Nice idea !<p>Now I can have a weather icon in my prompt.
AsymetricCom超过 11 年前
Disappointed<p><pre><code> _( )_ _ _( )_ _( )_ (_________) _( )_ \ \ \ (_________) \ \ \ \ \ \ \</code></pre>
评论 #6587911 未加载