Re:`curl wttr.in`: Weather in your terminal
by dredmorbius on Sunday May 15, 2022 @05:35AM
(#31386410)
Microcharts or sparklines are another option. I've seen a few implementations along these lines for shell prompts / shell use.
This might be useful for temperature, humidity, wind, preciptitation, and similar measures, either as quantities or timelines.
https://en.wikipedia.org/wiki/Sparkline
https://github.com/deeplook/sparklines
Similar:
https://www.linux-magazine.com/Issues/2016/183/Calc-Conditio...
Re:`curl wttr.in`: Weather in your terminal
by behnamoh on Saturday May 14, 2022 @11:58PM
(#31385150)
perhaps the RPROMPT would be better. i usually use it to show time %T.
Re:`curl wttr.in`: Weather in your terminal
by Kim_Bruning on Sunday May 15, 2022 @02:48AM
(#31385733)
curl 'wttr.in/?format=%c'
see the readme here for all options:
Now, I don't know if anyone truly needs the weather in their terminal prompt, but it is doable.