Comment by hliyan
3 days ago
Thoughts about serving pure text (not HTML) so that someone can pull this using a curl command, awk the output and do various things with it? Wish more sites did that.
3 days ago
Thoughts about serving pure text (not HTML) so that someone can pull this using a curl command, awk the output and do various things with it? Wish more sites did that.
I’ve had a few pieces of feedback for plain text, and it’s definitely something I’ll look at adding.
OOI, would you expect the output to include a single days weather (like the site does now), multiple, or options for both?
Perhaps similar to a command line utility? Arguments could be passed as URL or query parameters. And perhaps a /help route can return the supported arguments.
I suggest something like traintimes.org.uk, which accepts parameters as URL segments:
https://traintimes.org.uk/vic/brighton/10:30/monday
I `curl wttr.in` pretty much every day.