Nope, that's not what I mean. I'm referring to your exact conky you shared in the MXFB screenshots. There was no maximum width set in your conky. And here's the current weather condition for my area yesterday, as displayed by my modified conky:siamhie wrote: Sun Feb 20, 2022 11:38 am
Glad you like it. I lurk in the conky sub Reddit and came across this reply from moongya on setting up wttr.in in conky.
Conky Weather
I started with their base code and modified it using the output format from the wttr.in wiki page.
https://github.com/chubin/wttr.in#one-line-output
I know what you mean when you plug in the basic wttr.in command in conky. It ends up occupying the whole screen....
It's so long that if I had not edited the conky config to split the weather condition into 2 lines, and added a max width, the conky would stretch to become a long horizontal rectangle as long as the weather condition text.
... If I'm not running my weather conky but I still want to check my weather using wttr.in, I have this entry in my Fluxbox menu which does include all the ascii art and the three day forecast.
Code: Select all
[exec] (Weather) {xfce4-terminal --hide-menubar --title "Weather" --geometry 130x40 -x bash -c "curl 'http://wttr.in/Forest+Grove, Oregon'; read -N1;"}
![]()
I adapted a conky to show just the current weather condition with ascii art, like so:
Code: Select all
${color orange}${alignc}Current Weather
${execpi 600 curl wttr.in/YOUR+LOCATION?T0Q}${color}
T=suppress some terminal output (weird characters show up in the conky if not suppressed),
0=just show current weather,
Q= super quiet, ie suppress the actual title "WEATHER REPORT: [LOCATION AS STATED IN YOUR wttr.in command]" that appears at the top of this output. As you can imagine, if your location has more than 1 word and you have to add a "+" in between each word of your location, the actual title will display those + signs, which looks silly.
Yes, the "partly cloudy" ascii art in the screenshot is not too bad. However, the "thunderstorm" ascii art has a sun, a cloud, rain drops and lightning bolts. It's just too cluttered with too many characters in such a small space. Looks terrible.