News for hackers. Stuff that matters.
Re:`curl wttr.in`: Weather in your terminal by CrispinS on Saturday May 14, 2022 @09:28PM (#31384436)
Emojis? For the current weather, a single emoji could convey quite a lot; e.g. a snowflake for sub-60 weather (I have a low tolerance for cold), a sun for 60-80, fire emoji for 80+...

Now, I don't know if anyone truly needs the weather in their terminal prompt, but it is doable.

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:

https://github.com/chubin/wttr.in