Live data from Hacker News

`curl wttr.in`: Weather in your terminal

github.com

21–30 of 147 posts

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

#21
More cool console services like this one: https://github.com/chubin/awesome-console-services

  curl wttr.in/Moon
Shows moon phases

  curl rate.sx
Shows cryptocurrency exchange rates, from the same author as wttr.in

I sourced the above commands from a previous HN post: https://news.ycombinator.com/item?id=23646953

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

#23
post #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:/…

I'm speechless. I never expected running curl could lead to such a security disaster.

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

#25

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?)

> while high resolution current weather information from Japan Metrological Agency

They are complaining about location precision. It might be very coarse (equivalent to US zip code size). It’s a valid complaint. I use Dark Sky on iOS because it’s accurate to 10 meters or so.

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

#27

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…

Seems to be mostly Airport data. Helsinki Airport is not in Helsinki, so this information is quite useless. Also we do not measure windspeed in km/h.

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

#28
Only HN can be so critical of what is a really cool project.

Honestly this is a great _simple_ way to access weather without leaving my terminal. Love the basic ASCII graphics.

I noticed it's a LOT faster when I provide the city, probably because it doesn't have to look it up from IP:

``` curl wttr.in/atlanta ```

Nice work.

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

#29
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.

but this curls the app each time you invoke it!

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

#30

Only HN can be so critical of what is a really cool project. Honestly this is a great _simple_ way to access weather without leaving my terminal. Love the basic ASCII graphics. I noticed it's a LOT faster when I provide the city, probably because it doesn't have to look it up from IP: ``` curl wttr.in/atlanta ``` Nice work.

People on HN should he normally worried about running 'curl' from any untrustworthy sources because that is a security issue.

An example -https://www.onsecurity.io/blog/careless-with-curl-dont-be/ -

Post reply on HN