工具与资源github.com
用 curl 查看天气:wttr.in
Curl Wttr.in
2020 — 2025,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
wttr.in 是一个用一条 curl 命令就能在终端里查看天气预报的服务,返回带 ASCII 艺术风格的天气图,支持指定城市,还能查月相(curl wttr.in/Moon)。作者 Igor Chubin 还做了 cheat.sh、rate.sx 等一批同类命令行小工具。
为什么经久不衰:零安装、零依赖,一条 curl 就能得到赏心悦目的终端天气图,十几年过去依然随手可用,是命令行极简美学的经典范例。
HN 评论精选
介绍月相等隐藏玩法和同作者的其他命令行服务。
我一直在用。觉得这个选项特别妙:curl wttr.in/Moon 会显示当前月相。我在手机上用 Termux 装了 curl,很方便。另外也推荐同作者的 rate.sx:curl rate.sx 显示加密货币汇率。更多类似的命令行服务见 github.com/chubin/awesome-console-services。
rsapkf查看英文原文
I use this all the time. I find this option pretty neat: curl wttr.in/Moon Shows current lunar phase. I use Termux[0] on my phone with curl installed. Pretty handy. Also, check out rate.sx[1] from the same author: curl rate.sx Shows information about current exchange rates of cryptocoins. More similar console services: https://github.com/chubin/awesome-console-services [0]: https://termux.com/ [1]: https://github.com/chubin/rate.sx
输出宽度恰好匹配终端只是巧合,并非服务器探测终端。
第一次用时被吓到了,因为输出宽度完美适配我的终端,想不通服务器怎么知道我的终端宽度。后来发现我的终端正好是 125 字符宽,而 wttr.in 输出的就是 125 字符宽的图。
jtokoph查看英文原文
This scared me the first time I tried it because the output was perfectly sized to my terminal. I couldn't fathom how it was possible for the server to know my terminal width. It turns out my terminal was set at 125 characters wide and wttr.in outputs a 125 character width display.
安全提醒:把远端输出直接打到终端有转义序列风险。
要记住,这类东西意味着你信任远端站点能访问你的终端模拟器。过去一些高级终端在转义序列上出过不少安全问题。我个人觉得它挺可爱,自己也用 curl ip.wtf/moo 做过类似的小彩蛋。
dgl查看英文原文
Remember with this kind of thing you're trusting the remote site with access to your terminal emulator. There have been various security problems with some more advanced terminals and escape sequences in the past[1][2]. Personally I think it's a cute thing and have implemented some similar little easter eggs to this via: curl ip.wtf/moo [1]: https://blog.mozilla.org/security/2019/10/09/iterm2-critical-issue-moss-audit/ [2]: https://packetstormsecurity.com/files/162621/rxvt-2.7.0-rxvt-unicode-9.22-Code-Execution.html
质疑数据源与准确性,指出与日本气象厅数据有明显偏差。
我得滚到最底下才能找到数据来源——WorldWeatherOnline。大家都不在意天气数据来自哪里吗?我在日本生活,一直对这类服务心存警惕,很多都不准。我刚查了,那个网站显示东京 15°C,而日本气象厅的高分辨率实时数据是 18°C。
innocenat查看英文原文
I have to scroll all they way down to the buttom to find the information source -- WorldWeatherOnline. Does people not care about where their whether data is sourced from? Living in Japan, I have always been wary of these type of service, since I find a lot of them really inaccurate. And I just checked, Tokyo show 15C on that website, while high resolution current weather information from Japan Metrological Agency show 18C.
历次讨论
同类还值得读
直接在浏览器中启动 Linux 内核
Boot a linux kernel right inside your browser.
Fabrice Bellard 的 JSLinux 页面,用 JavaScript 在浏览器里启动一个 Linux 内核,并提供一个可交互的终端环境。
工具与资源上首页 5 次 · 2011–2025bellard.orgHacker News 未公开功能与行为清单(2018)
A List of Hacker News's Undocumented Features and Behaviors (2018)
数据科学家 Max Woolf 整理的 Hacker News 未公开功能与行为清单,涵盖投票机制、排名算法、账号惩罚等社区运作细节。
工具与资源上首页 5 次 · 2019–2025github.comMapSCII:在终端中用盲文和 ASCII 渲染地图
MapSCII – Braille and ASCII map renderer for the console
MapSCII 是一个在命令行终端里渲染地图的开源工具,用盲文字符和 ASCII 字符把地理数据画成可交互浏览的字符地图。
工具与资源上首页 5 次 · 2017–2025github.com顶尖大学的免费在线课程
Free Online Courses from Top Universities
Open Culture 整理的一份免费在线课程合集,汇集了全球顶尖大学(如 MIT、斯坦福、耶鲁等)向公众开放的网络课程资源,涵盖音频、视频等多种形式。
工具与资源上首页 5 次 · 2010–2022openculture.com淘气字符串:容易引发用户输入问题的字符串清单
Naughty Strings: A list of strings likely to cause issues as user-input data
一个 GitHub 仓库,收录了大量容易让程序出问题的用户输入字符串,如特殊字符、emoji、SQL 注入片段、系统命令等,供开发者用于测试输入处理逻辑。
工具与资源上首页 4 次 · 2015–2020github.com