You are not logged in.

#1 2024-06-26 14:19:36

a_hardwick
Member
Registered: 2018-05-06
Posts: 19

Non-displayed characters in Conky weather script

I use this little script to display the time and grab basic weather info.

 conky.text = [[
${voffset 10}${color0}${font Zilla Slab:pixelsize=100}${time %I:%M}${font}${voffset -84}${offset 20}${color1}${font Zilla Slab:pixelsize=100}${time %d}${voffset -34}${color #ffdead}${font Liberation Sans Narrow:pixelsize=30} ${time  %B} ${time %Y}${font}${voffset 20}${font Liberation Sans Narrow:pixelsize=30}${offset -100}${time %A}${font}
${voffset 24}${offset 12}${font Liberation Sans Narrow:pixelsize=16}${color1}HD ${offset 5}$color0${fs_free /home} / ${fs_size /home}${offset 15}${color1}RAM ${offset 5}$color0$mem / $memmax${offset 15}${color1}CPU ${offset 5}$color0${cpu cpu0}%${offset 15}${color1}
${color0}${font Zilla Slab:pixelsize=20}${execpi 1800 curl wttr.in/?format=4 --silent --max-time 5}
]]

4A6fg5ot.png

I want to get get rid of and/or show those characters that are not visible. I tried adding some additional fonts, but nope.

Offline

#2 2024-06-26 17:03:20

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: Non-displayed characters in Conky weather script

What do you get if you run the last bit in a terminal?

curl wttr.in/?format=4 --silent --max-time 5

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

https://wttr.in/


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#3 2024-06-26 17:14:06

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: Non-displayed characters in Conky weather script

So probably change that last Zilla Slab font to something like one of the Nerd fonts...

https://www.nerdfonts.com/font-downloads

...or add the new font before the curl entry.

As per the github page, you could also use a custom format...

https://github.com/chubin/wttr.in?tab=readme-ov-file

For more help, post in the Scripts forum...

https://forums.bunsenlabs.org/viewforum.php?id=9


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#4 2024-06-26 19:45:08

a_hardwick
Member
Registered: 2018-05-06
Posts: 19

Re: Non-displayed characters in Conky weather script

Thanks hhh. In terminal those characters display as weather icons. I tried using Nerd fonts and the display changed to different un-useful characters. The few custom formats I tried displayed a whole page of (probably) weather info. I will play with it some more until I get what I want. Thanks again.

Offline

#5 2024-06-26 20:13:11

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: Non-displayed characters in Conky weather script

No problem. Like I said, post in the Conky weather thread in the forum I linked, they'll sort you out.


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

Board footer

Powered by FluxBB