38 comments

[ 4.0 ms ] story [ 61.0 ms ] thread
This is cool, but it seems to give different results for my city depending on whether I use the normal view or the v2 or ?format views. The current weather is closer to the normal view
Used it for a while but moved over to a national weather service for better data and uptime.

Nice API though.

How do you make use of your national weather service? Do you get a similar terminal output in the end?
I like the service but I've displayed this via curl on my home dashboard for more than 2 years - and the uptime is not great.
You could self host it which would hopefully give better uptime (while also helping reduce strain on the public service)?
I love this one, it's excellent at packing lots and lots of information in very little space.

It's sadly victim of its success and is quite often over quota to its weather API. We should make a paid version that wouldn't have this problem and bring some monetary karma to Igor

> As of the end of June 2025, wttr.in handles 20-25 million queries per day from 150,000 to 175,000 users, according to the access logs.

No wonder! That works out at about 133-143 requests per user per day. Presumably due to scripts refreshing their data 24/7.

Another solution is just to host it yourself, given the code is open source. No quota worries, and you can always donate to Igor if you feel so inclined (assuming he wants/accepts donations).

This is pretty rad.

I'm surprised no one's made a CEEFAX replica for the terminal yet [0]. Their weather page is pretty iconic [1].

[0] There are CEEFAX Emulators online that pull from the BBC RSS feeds to do this.

[1] https://teletextart.co.uk/wp-content/uploads/2016/05/weather...

Ah, ok, you meant 'terminal'. There are ceefax clients for terminal too.

But you need to change the font for XTerms. With framebuffers under Linux/BSD you might be able to do the same, but you would need to convert the fonts first and map the chars.

Here you have:

https://github.com/simonlaszcz/vidtex

We need more little ANSI suns in the age of AI slop
It needs a compact Non-ascii Graphics form, in termux on my phone, the ASCII output is too big for the screen size.
Ah, the age of the terminal is still very much well and truly with us. If only the teenager me, clutching my vt100 back in 1988 as it was being removed to be replaced with 'a modern computer interface', would've known not to fret so much and just let the future have its way ..

The very awesome awesome-console-services has more neat tools like this:

https://github.com/chubin/awesome-console-services

My favourite is:

$ nc ticker.bitcointicker.co 10080

.. which is a nice thing to check while waiting for builds ..

And then, there is this wonderful, wonderful thing:

$ curl cheat.sh

Such a great resource when all you've got is a terminal and 15 minutes waiting for those builds ..

Another great one, which I have found very useful for sending myself links across an air gap ..

$ curl qrenco.de/https://news.ycombinator.com/item\?id\=44590971

Okay, one more, because I just can't get enough:

$ curl https://api.lyrics.ovh/v1/depeche-mode/behind-the-wheel

Kinda neat. One UX gotcha that I spot right away. I'm polling weather for my area (UTC+3) and it gives me some night time values even though it's noon. I'm thinking timezones?
I think that this popularity is making the site slow down dramatically. I hope all these hits won't cost too much $$
I think that this popularity is making the site slow down dramatically. I hope all these hits won't cost too much $$

    curl wttr.in/London > london.txt
    open -a TextEdit london.txt
Witness the control code garbage.

IMHO you should not emit ANSII escape sequences until you at least call isatty, preferably also consult termcap. But also IMHO we should bury the terminals, and build better REPLs and lightweight GUI toolkits.

For some reason, I was expecting a user experience like:

  $ weather in san francisco, today evening?
    about 14C, no rain, cloudy
I really appreciate this service.

Worth pointing out, maybe, that there is an emacs package, too - more than one, actually, the one I am using (occasionally, at least) is https://github.com/cjennings/emacs-wttrin which is available from melpa.

This is great, but you can vibe this and have your own custom version hitting free weather services and getting the specific info you want without making global calls to a service that might not stick around. Also, when you make calls from a terminal, it could expose your server as one they might want to try to attack, because you might have access that they want and might be gullible enough to use random services, so your security might not be great. Even if the developer is well-intentioned, the person that takes over their domain later might not be. Curl has vulnerabilities, though.
This was a welcome find today on HN. Gave my day a bit of joy.
Unfortunately 3-letter airport codes don't work as advertised, because for many airport codes there are actual cities with the same 3-letter name and those take precedence in their lookup.

Multiple GitHub issues around this have been opened already.

Otherwise pretty neat of course!

I really like the idea, but the data quality for my city (Trondheim, Norway) was unfortunately too off for me to use.

The national forecast service (yr.no) is saying it will be sunny and very hot all through the weekend, while wttr reports it will be 16-19 degrees Celcius and rain on saturday.

Time for some FUD :)

Printing arbitrary output to most terminal emulators is some security risk (even if pretty much everyone does it). Many suffer from vulnerabilities, both past and present, that can allow specially crafted text to inject commands back into the shell. The issue lies in the complex and often legacy standards for handling control characters and escape sequences.

Even xterm is not entirely immune to these problems and has had security advisories issued in the past.

While this attack surface has received attention from sec-researchers in the past, it's not remotely comparable to the scrutiny applied to web browsers. The ecosystem around terminals generally lacks the massive, continuously-funded bug bounty programs and large-scale, constant fuzzing that browsers are subjected to.

Weather over DNS

  dig london.weather @dns.toys