Hacker News new | past | comments | ask | show | jobs | submit login

I also like how you can add zipcodes or location names as a path and it returns that. At least it works with zipcodes, cities, airport codes, landmarks. Not sure what else.

Using this, I found out it was currently raining in Paris. And then saw that the thunder was rendered as emojis.

I wonder what other options there are... for example, I'm in the US, so it returns temperature in Fahrenheit even if I requested information about France. Are there options to change this?

But, all in all, this is really nice and polished.




There are quite a few options, it is pretty cool. You can check them out by hitting the :help endpoint[1].

I usually call it with a few of them to make the output cleaner, and without colors[2].

curl --compressed https://wttr.in/"$location"?QTAF

Where `$location` is either the location you want the weather for, or an IP address.

[1] https://wttr.in/:help

[2] https://git.sr.ht/~jamesponddotco/dotfiles/tree/master/.loca...


The README explains that you can get Celsius by appending `?m` to your query.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: