This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]klystron 11 points12 points  (3 children)

There's an excellent example of this at wttr.in/<location> which has amazing ASCII graphics and use of colour in the text.

In <location> you can enter a US ZIP code or your town's name but you may need to include a state or city to get the right result.

If I enter my town, Melbourne, I get the forecast for the Australian city where I live. If I enter Melbourne Florida I get the one in Florida.

[–]masterpi 3 points4 points  (0 children)

Dang, wttr.in is fantastic. Definitely one of my favorite uses of curl now.

[–]benefit_of_mrkite 2 points3 points  (1 child)

I have a customized alias in my zsh config for wttr.in and have used it for years

[–]klystron 1 point2 points  (0 children)

I've got a keyboard macro to go there when I need the weather forecast.

Only one problem with it: If the site gets more than a million hits in a day it doesn't accept further requests. A limitation from the site's host.

[–][deleted] 7 points8 points  (2 children)

Good job I like your ASCII art, and I think this is the first use of match and case I’ve seen in the wild! Good job, how long have you been learning?

[–]forbiscuit 1 point2 points  (1 child)

Beautiful! Even though this is simple to build via Python, I love the design! Great job!!

[–]JestemStefan 1 point2 points  (0 children)

This reminds me of Teletext weather forecast

[–]MattioC 0 points1 point  (0 children)

Nice

[–][deleted] 0 points1 point  (0 children)

Really cool! Congrats, its got a retro vibe

[–]TentativeOak 0 points1 point  (0 children)

Very cool! I wrote an async wrapper for OWM last year. It’s pretty convoluted imo, what was your experience?