but 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/4eedafb81356e62b9f1c8...