4 ms·
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 di
by hliyan 3mo 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.
- jsax 3mo agoI’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?
- hliyan 3mo agoPerhaps 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.
- Symbiote 3mo agoI suggest something like traintimes.org.uk, which accepts parameters as URL segments: https://traintimes.org.uk/vic/brighton/10:30/monday https://traintimes.org.uk/vic/brighton/10:30/monday
- rlopezcc 3mo agoI `curl wttr.in` pretty much every day.