this post was submitted on 10 Sep 2023
10 points (91.7% liked)

Code Monkeys

8 readers
1 users here now

Code Monkeys

A place for people to post code and other techy stuff

founded 1 year ago
MODERATORS
 

Lately I've been obsessed with moving everything that people typically use as widgets into my bashrc. Today I discovered wttr.in, which is an open source project on Github at https://github.com/chubin/wttr.in

Usage is almost trivial. To get weather in your terminal, simply curl the URL with your city after the forward slash. If you live in New York City, use
curl 'https://wttr.in/New%20York'

Now, if that's too much bloat to have covering your precious terminal real estate, instead use
curl 'https://wttr.in/New%20York'?0?A?u which will truncate the curl to only today's weather.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here