Live data from Hacker News

`curl wttr.in`: Weather in your terminal

github.com

11–20 of 147 posts

Re: `curl wttr.in`: Weather in your terminal

#12

If only there's a $PS1 version

That would be cool, but how would you condense the information enough that it's both useful and doesn't take up 2/3 of a line?

I might be a heathen, but my PS1 is as long as it wants to be, and ends with \n$

Re: `curl wttr.in`: Weather in your terminal

#14

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 sh…

I'll admit I'm just speculating because I don't know much about weather and weather data collection, but is it not possible there's a 3 degree difference between 2 different places of measurement in Tokyo (i.e. both are correct to some degree?)

> is it not possible there's a 3 degree difference between 2 different places of measurement in Tokyo

I don't know about Tokyo in particular, but generally speaking, for a large coastal city that wouldn't surprise me at all.

Re: `curl wttr.in`: Weather in your terminal

#15
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... [2]: https://packetstormsecurity.com/files/162621/rxvt-2.7.0-rxvt...

Re: `curl wttr.in`: Weather in your terminal

#16

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 sh…

Metrological?

Re: `curl wttr.in`: Weather in your terminal

#17
post #12

Earlier quoted context omitted.

That would be cool, but how would you condense the information enough that it's both useful and doesn't take up 2/3 of a line?

I might be a heathen, but my PS1 is as long as it wants to be, and ends with \n$

I feel like I should hate this...

But I don't. I may steal this idea later, than there would be a whole 2 of us!

Re: `curl wttr.in`: Weather in your terminal

#18
post #13

This is really neat... vim ~/.bashrc ``` alias weather='/usr/bin/curl wttr.in' ``` :wq and now: weather

Heh, I did the exact same thing. I actually did

    alias weather="curl wttr.in && curl v2.wttr.in && curl v3.wttr.in"
so that it shows me the temperature chart and map as well. Well, v3's map isn't working so I commented that out for now but they say it should work in the future.
Post reply on HN