3 ms·
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 sur
by mbreese 6y ago
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.
- williamjackson 6y agoThe README explains that you can get Celsius by appending `?m` to your query.
- jamesponddotco 6y agoThere 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 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 https://wttr.in/:help [2] https://git.sr.ht/~jamesponddotco/dotfiles/tree/master/.local/bin/weather https://git.sr.ht/~jamesponddotco/dotfiles/tree/master/.loca...