5 ms·
If people are looking for an actual modern take on text based browsing, I would refer them to the work of Igor Chubin. curl https://v2.wttr.in/London
by Zhyl 6y ago
If people are looking for an actual modern take on text based browsing, I would refer them to the work of Igor Chubin.
curl https://v2.wttr.in/London
curl https://cheat.sh/rsync
With a supported terminal:
curl https://v3.wttr.in
And also:
https://github.com/chubin/awesome-console-services
- as_keyof_typeof 6y agoWhy do you say "an actual"? Are you meaning that you think that Browsh is not an actual take on text based browsing?
- justaguy88 6y agoThis is great! Does it know ahead of time if we have colors before sending the response?
- dllthomas 6y agoNo, unless it's getting info from somewhere I'm not thinking of, it has no way of knowing what terminal you're using. In principle, I think the "accept" header is the right place to put that info?
- Arnavion 6y ago`T` or `no-terminal=True` in the querystring will disable ANSI color codes in the response.
- zamadatix 6y agoI think my terminal's font is breaking the v2 graphs because the unfilled braille dots aren't blank rather unfilled circles. The v3 version doesn't work as my terminal doesn't support images. On my Windows box it actually does work surprisingly well with the official curl binary and the graph looks great but the weather emoji mess up alignment towards the end. I think these kinds of inconsistencies are the reason something like the way brow.sh does it makes more sense, if it's not plain text the only reliable way to represent it is via colored fixed width block characters as terminal UIs have been relying on those for ages so they are more widely supported.
- Sephr 6y agoA font that renders the empty braille pattern with unfilled dots seems very inaccessible to the visually impaired. Empty braille pattern sections should arguably always be blank.
- westmeal 6y agoWhooooooa that is the coolest thing I've ever seen!
- devindotcom 6y agoWonder if I could get this to work in rainmeter or something.
- slmjkdbtl 6y agobut there's no good way for a server to tell if it's requested by a text based client, wttr.in is hard coding a list of text clients' User-Agent [0], which is not so pretty imo. If look for "Accept: text/plain" in request header, curl as the most popular client won't set it. [0] https://github.com/chubin/wttr.in/blob/4eedafb81356e62b9f1c8aed726b8890910df634/lib/globals.py#L75 https://github.com/chubin/wttr.in/blob/4eedafb81356e62b9f1c8...
- kevincox 6y agoIt's not even text/plain. We need a text/ansi (is there a better name for that?)
- warmwaffles 6y agoI think something like `application/term` would probably be better for this.
- deleted 6y ago[deleted]