You are not logged in.
{snip}
Unfortunately, it has the unpleasant property that if another number (0, for example) is added, it jumps.The uptime in front I have already smoothed with a tip from @PackRat, by excluding the Sec. But, the cpu0 I do not get even with additional spaces.
Do you have a tip? https://i.imgur.com/SLKhTwf.png
Try the CPU0 code like this:
CPU0${if_match ${cpu cpu0}<10}··${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}·${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%\
maybe the " · " will make it behave properly.
Now as for conky mem commands vs 'free' you can pick and choose what you want to use:
First the bash script: "/media/5/Conky/scripts/cfree"
- for conkyfree - name it what you want
- also put it where you want
- It is very clumsy, as I'm not a coder, BUT it works.
#!/bin/sh
free -h > /media/5/Conky/scripts/cfree.txt
# I prefer:
# free -h, --human = show human-readable output
# $ awk '{print $3}' /media/5/Conky/scripts/cfree.txt | sed -n '2p'
# 1.5Gi
And then in conky:
${execpi 10 /media/5/Conky/scripts/cfree} Let's use "free"
Total: ${execpi 5 awk '{print $2}' /media/5/Conky/scripts/cfree.txt |sed -n '2p'}
Used: ${execpi 5 awk '{print $3}' /media/5/Conky/scripts/cfree.txt |sed -n '2p'}
Free: ${execpi 5 awk '{print $4}' /media/5/Conky/scripts/cfree.txt |sed -n '2p'}
Shared: ${execpi 5 awk '{print $5}' /media/5/Conky/scripts/cfree.txt |sed -n '2p'}
Buff/Cache: ${execpi 5 awk '{print $6}' /media/5/Conky/scripts/cfree.txt |sed -n '2p'}
@PackRat
- Thank you for the neat uptime | uptime_short fix.
- I'm using it now as well.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
{snip}
Try the CPU0 code like this:
{snap}
Thank you, my friend. That does not help. We are getting old.
But sometimes we have a flash of light and that would be to enter two zeros. From your TEST conky configuration
cpu0 ${if_match ${cpu cpu0}<10}00${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}% \
Offline
Sextor11 wrote:{snip}
Try the CPU0 code like this:
{snap}Thank you, my friend. That does not help. We are getting old.
But sometimes we have a flash of light and that would be to enter two zeros. From your TEST conky configuration
{snip}
OLD! We are not old, we are still breathing!
If you add the 2 zeros for <10
<10}00${cpu cpu0}\
you should also add 1 zero for <100
<100}0${cpu cpu0}\
see:
cpu0 ${if_match ${cpu cpu0}<10}00${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}0${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}% \
CHIMO Conkystador!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
...
see:
...
Yes, an even better solution!
You are the Conkystador here.
----
OLD! We are not old, we are still breathing!
It pinches sometimes already damn strong. Above all, patience is needed with the memory
Offline
Sector11 wrote:...
see:
...Yes, an even better solution!
You are the Conkystador here.----
OLD! We are not old, we are still breathing!
It pinches sometimes already damn strong. Above all, patience is needed with the memory
We are both conkystadors.
You are right of course, age is creeping up on us.
and sometime I forget I was looking for patience.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
conky and hyprland behave more homogeneously than conky and sway
-- pkill -xf "conky -c /home/unklar/S11/cmus_conkyrc" &
-- @unklar 2023-12-17 wayland-sway-hyprland;
conky.config = {
use_xft = true,
--xftfont Input Mono:size=8
--xftfont monofur:size=9
--xftfont monospace:size=8
--xftfont DejaVu Sans Mono:size=8.5
font = 'Hack-Regular:size=9',
xftalpha = 0.8,
text_buffer_size = 2048,
update_interval = 1,
total_run_times = 0,
out_to_wayland = true,
own_window = true,
own_window_transparent = false, --true,
own_window_type = 'override',
own_window_argb_visual = true,
own_window_argb_value = 80,
draw_shades = false,
draw_outline = false,
draw_borders = false,
stippled_borders = 0,
border_inner_margin = 5,
border_width = 1,
default_color = '#ffffff',
color1 = '#778899', --#66FFFF',
color9 = '#C0C0C0',
alignment = 'top_left',
--alignment = 'top_right',
--alignment = 'bottom_left',
--alignment = 'bottom_right',
--alignment = 'middle_right',
minimum_width = 220, minimum_height = 5, --650,
maximum_width = 220,
gap_x = 20,
gap_y = 80,
double_buffer = true,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = 'none',
imlib_cache_size = 0,
--%C+%t+%w+%P+%h
};
conky.text = [[
${goto 40}${font LED_mono:size=30}${color1}88:88:88${goto 40}${color9}${time %T}${color}${font}
${font monofur:size=9}${alignc}Conky v${conky_version}${font}
Kernel
===
|
| ${kernel}
|
Weather
|
|
${font Fira Mono:size=8} + ${goto 5}${texeci 1200 curl 'wttr.in/lichtenstein_sachsen?q?0T?Q'}${font}
|
|
System
|
| System: ${goto 100}${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3}
| CPU Temp:${goto 100}${hwmon 1 temp 3}° GPU Temp: ${hwmon 2 temp 1}°
| root:${goto 100}${fs_free /root} / ${fs_size /root}
| RAM:${goto 100}${mem}${goto 148}/ ${memmax}
| load:${goto 100}${loadavg}
|
Net
|
| Up:${goto 100}${upspeedf enp2s0}${goto 170}${totalup enp2s0}
| DL:${goto 100}${downspeedf enp2s0}${goto 170}${totaldown enp2s0}
|
Processes
|
| NAME ${goto 165}PID ${goto 200}TOP
| ${top name 1} ${alignr} ${top pid 1} ${top cpu 1}
| ${top name 2} ${alignr} ${top pid 2} ${top cpu 2}
| ${top name 3} ${alignr} ${top pid 3} ${top cpu 3}
| ${top name 4} ${alignr} ${top pid 4} ${top cpu 4}
| ${top name 5} ${alignr} ${top pid 5} ${top cpu 5}
|
===
]];
Last edited by unklar (2023-12-19 16:57:44)
Offline
grunble grumble .....
Unable to connect
An error occurred during a connection to wttr.in.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the web.
GRRRRRRRRRRRRRRRR!
The rest works though
https://ibb.co/FYJJ3cb
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
grunble grumble .....
Unable to connect
An error occurred during a connection to wttr.in.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the web.GRRRRRRRRRRRRRRRR!
The rest works though
https://ibb.co/FYJJ3cb
----------------------------------------
Another example of what the future could look like with Conky...
conky.config = {
background = true,
-- font settings
use_xft = true,
font = 'FiraMono:size=10', --monospace:size=11',
uppercase = false,
-- update every 3 secs
update_interval = 1,
-- stay running forever
total_run_times = 0,
-- draw to root window
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
--own_window_hints = 'skip_taskbar,skip_pager,undecorated',
own_window_colour = '#000000',
own_window_class = 'Conky',
-- avoid flickering
double_buffer = true,
-- size
minimum_width = 250, minimum_height = 5,
maximum_width = 250,
-- position
alignment = 'top_left',
gap_x = 20,
gap_y = 100,
-- colors
default_color = 'white',
default_shade_color = 'black',
default_outline_color = 'black',
color0 = '#ffffff',--white
color1 = '#144556',--dunkelblue
color2 = '#33b0dc',--hellblue
color3 = '#ff8c00',--dark orange
color4 = '#00ffff',--cain
color5 = '#c0c0c0',--silver
color6 = '#808080',--gray
-- borders
draw_borders = false,
--stippled_borders = 8,
border_inner_margin = 4,
--border_width = 1,
-- shades
draw_shades = true,
-- outline
draw_outline = false,
-- spacer
use_spacer = none,
-- buffers
no_buffers = true,
-- sampling
cpu_avg_samples = 2,
net_avg_samples = 2,
};
conky.text = [[
${font FiraMono:size=13}Beardog - dk${font}
vT-Core1: ${alignr}${hwmon 5 temp 2}°C
vT-Core2: ${alignr}${hwmon 5 temp 3}°C
GPU : ${alignr}${color4}${if_match ${platform thinkpad_hwmon/hwmon/hwmon4 temp 2} < 53}${platform thinkpad_hwmon/hwmon/hwmon4 temp 2}°C${else}${color3}${if_match ${platform thinkpad_hwmon/hwmon/hwmon4 temp 2} > 53}${platform thinkpad_hwmon/hwmon/hwmon4 temp 2}°C${else}${platform thinkpad_hwmon/hwmon/hwmon4 temp 2}°C${endif}${endif}${color}
MBoard : ${alignr}${hwmon 0 temp 2}°C
0 CPU Avg ${cpu cpu0}% ${alignr}${loadavg}
1 CPU1 ${cpu cpu1}% ${alignr}${freq 1} MHz
2 CPU2 ${cpu cpu2}% ${alignr}${freq 2} MHz
CPU FAN : ${alignr}${hwmon 4 fan 1} RPM
Disk sda:
#smartctl ${alignr}${color green}${execpi 60 /usr/sbin/smartctl -A /dev/sda | awk 'FNR==21 {print $10}'} °C${color}
drivetemp ${alignr}${hwmon 2 temp 1} °C
${membar 0}
${goto 5}LAN ${alignr}${addr enp0s25}
${goto 5}Down ${alignr}${downspeed enp0s25}
${goto 5}Up ${alignr}${upspeed enp0s25}
${goto 5}Total Down ${alignr}${totaldown enp0s25}
${goto 5}Total Up ${alignr}${totalup enp0s25}
${goto 5}wifi ${alignr}${addr wlp3s0}
${goto 5}Down ${alignr}${downspeed wlp3s0}
${goto 5}Up ${alignr}${upspeed wlp3s0}
${goto 5}Total Down ${alignr}${totaldown wlp3s0}
${goto 5}Total Up ${alignr}${totalup wlp3s0}
${goto 5}AP ${goto 70}${wireless_essid wlp3s0} Speed: ${alignr}${wireless_bitrate wlp3s0}
${goto 5}Mode ${goto 70}${wireless_mode wlp3s0} Quality: ${alignr}${wireless_link_qual_perc wlp3s0}%${font}
]];
This is a Tilling window manager.
Many people say that Conky is no longer needed with a Tilling window manager. That may be true. But, the notorious Conky fans are always looking for ways to pursue their favorite pastime
So there are usually around 10 workspaces as standard and the 10th is given a different window geometry by the developers than the other 9. Who uses 10 workspaces, which is why I thought they should only be used for Conky.
dk has this line in his dkrc script:
dkcmd set ws=10 layout=grid pad left=200 right=200 top=100 bottom=100 gap=50
and so I changed left to 20 to get closer to the left edge.
I'm sure there are countless possibilities. Conky will be even more individual
A few comments on Wayland above.
At the beginning I read from a developer(?) of Conky that the code had to be completely reinvented because of wayland. It is striking that it is silent 'around it'.If you look at conky -v, there is still no mention of support in Wayland.
So far I have tested text conky's in Wayland. This is mandatory in the upper part of the configuration:
out_to_wayland = true,
That then the entry :
own_window_type = 'override',
are also necessary in sway and hyprland to avoid the window rules has nothing to do with wayland for me.
Last edited by unklar (2023-12-21 13:18:20)
Offline
This is a Tilling window manager.
(to be continued)
I've seen some stuff about DK Interesting.
Also Care to share that wallpaper?
I like that terminal line as well, on-bord graphics for the moment leave me limited:
21 Dec 23 @ 08:54:04 ~
$ for m in /sys/class/hwmon/* ; do echo -n "$m = " ; cat $m/name ; done
/sys/class/hwmon/hwmon0 = k10temp
/sys/class/hwmon/hwmon1 = asus
/sys/class/hwmon/hwmon2 = amdgpu
21 Dec 23 @ 08:55:59 ~
$
So the CPU and amdgpu have a "0.+°" difference. and nothing else:
21 Dec 23 @ 08:55:59 ~
$ sensen
sensors && echo =-=-=-=-=-=-= && inxi -s -c24
amdgpu-pci-0700
Adapter: PCI adapter
vddgfx: N/A
vddnb: N/A
edge: +38.0°C
k10temp-pci-00c3
Adapter: PCI adapter
Tctl: +38.5°C
=-=-=-=-=-=-=
Sensors:
System Temperatures: cpu: 38.8 C mobo: N/A gpu: amdgpu temp: 38.0 C
Fan Speeds (RPM): N/A
21 Dec 23 @ 09:03:43 ~
$
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Also Care to share that wallpaper?
You can use TinEye or here (because I can't remember)
So the CPU and amdgpu have a "0.+°" difference. and nothing else:
Look in Thunar under the path 'amdgpu'. You may need to use 'edge'.
Edit:
You should find something with hwmon
CPU${hwmon 0 temp x}
GPU${hwmon 2 temp x}
or with sensors
CPU${execi 1 sensors | grep Tctl: | cut -c xx-xx}
GPU${execi 1 sensors amdgpu-pci-0700 | grep 'edge' | cut -cxx-xx}
Last edited by unklar (2023-12-21 15:13:40)
Offline
Love how your "can't remember" is a direct link. Thank you.
OH, I have CPU° and amdgpu° in a conky, I was just making a comment that with an on-board graphics card I do not get as much info as if I had an actual card plugged in.
TEXT
${color6}↑${color}${execpi 60 uptime|awk -F, '{sub(".*up ",x,$1);print $1}'}\
${color6}|${color}\
CPU ${hwmon 2 temp 1}°\
${color6}|${color}\
${if_match ${cpu cpu0}<10}⁰⁰${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}⁰${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%\
${color6}|${color}\
${if_match ${cpu cpu1}<10}¹¹${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100}¹${cpu cpu1}\
${else}${cpu cpu1}${endif}${endif}%\
${color6}|${color}\
${if_match ${cpu cpu2}<10}²²${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100}²${cpu cpu2}\
${else}${cpu cpu2}${endif}${endif}%\
${color6}|${color}\
${if_match ${cpu cpu3}<10}³³${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100}³${cpu cpu3}\
${else}${cpu cpu3}${endif}${endif}%\
${color6}|${color}\
${if_match ${cpu cpu4}<10}⁴⁴${cpu cpu4}\
${else}${if_match ${cpu cpu4}<100}⁴${cpu cpu4}\
${else}${cpu cpu4}${endif}${endif}%\
${color6}|${color}\
gpu ${hwmon 0 temp 1}°\
${color6}|${color}\
${tztime UTC %H}${color6}|${color}\
${time %H·%M}${color6}${exec seconds}${color}${time %S}
CHIMO!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
unklar wrote:You can use TinEye or here (because I can't remember)
lol lol lol Love how your "can't remember" is a direct link. Thank you.
that was the pure truth!
OH, I have CPU° and amdgpu° in a conky, I was just making a comment that with an on-board graphics card I do not get as much info as if I had an actual card plugged in.
So you've tested me again. Passed?
The code is again an ingenious idea to prevent the output from 'jumping'.
Thank you, my friend.
Offline
Sector11 wrote:unklar wrote:You can use TinEye or here (because I can't remember)
lol lol lol Love how your "can't remember" is a direct link. Thank you.
that was the pure truth!
And I thought you were "pulling my leg".
OH, I have CPU° and amdgpu° in a conky, I was just making a comment that with an on-board graphics card I do not get as much info as if I had an actual card plugged in.
So you've tested me again. Passed? https://i.imgur.com/4QX485D.png
The code is again an ingenious idea to prevent the output from 'jumping'.
Thank you, my friend.
I have been using 'variations' of that for years.
Started with spaces (mono font is necessary in all)
CPU AVG: ${if_match ${cpu cpu0}<10} ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%\
Used dashes:
CPU A: ${if_match ${cpu cpu0}<10}--${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}-${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%\
To the " · "
CPU 0: ${if_match ${cpu cpu0}<10}··${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}·${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%\
And for this one I thought let's get rid of the "CPU X" altogether,
since [Alt Gr]+[^]+1 to 0 are on my keyboard as ¹ to ⁰
${if_match ${cpu cpu0}<10}⁰⁰${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}⁰${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%\
Worked well I think.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@Sector11, Brilliant!
I played a little more for Santa Claus.
-- pkill -xf "conky -c /home/unklar/S11/cmus_conkyrc" &
-- @unklar 2020-01-02; 2021-03-16; Dec.2023;
conky.config = {
use_xft = true,
--xftfont Input Mono:size=8
--xftfont monofur:size=9
--xftfont monospace:size=8
--xftfont DejaVu Sans Mono:size=8.5
font = 'Hack-Regular:size=9',
xftalpha = 0.8,
text_buffer_size = 2048,
update_interval = 1,
total_run_times = 0,
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
--own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
--own_window_argb_visual yes
--own_window_argb_value 150
--default_bar_size 0 5
draw_shades = false,
draw_outline = false,
draw_borders = false,
stippled_borders = 0,
--border_inner margin 5
border_width = 1,
default_color = '#000000', --lua#ffffff
--default_shade_color 000000
--default_outline_color ffffff
--own_window_colour 333333
color1 = '#d0d6cd', --#778899', --#b9c2cb', -- -- #C0C0C0', lua#7b7b7b',
color9 = '#000000', --lua#ffffff',
alignment = 'top_left',
-- alignment = 'top_right',
--alignment bottom_left
-- alignment = 'bottom_right',
-- alignment = 'middle_right',
minimum_width = 220, minimum_height = 5, --650,
maximum_width = 220,
gap_x = 20,
gap_y = 40,
double_buffer = true,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = 'none',
imlib_cache_size = 0,
----LUA----
--lua_load = '$HOME/.conky/scripts/draw_bg.lua',
--lua_draw_hook_pre = 'draw_bg 10 0 0 0 0 0x000000 0.6',
--%C+%t+%w+%P+%h
--
};
conky.text = [[
${goto 40}${font LED_mono:size=30}${color1}88:88:88${goto 40}${color9}${time %T}${color}${font}
${font monofur:size=9}${alignc}Conky v${conky_version}${font}
Kernel
===
|
| ${image ~/.conky/images/dk-logo.png -p 20,100 -s 25x25}${goto 60}${execi 86400 cat `ls -atr /etc/lsb-release | tail -1` | grep "DISTRIB_ID" | cut -d= -f2}
| ${goto 60}${kernel}
|
Weather
|
|
${font Fira Mono:size=8} + ${goto 5}${texeci 1200 curl 'wttr.in/lichtenstein_sachsen?q?0T?Q'}${font}
|
|
System
|
| System: ${goto 100}${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3}
| CPU Temp:${goto 100}${hwmon 1 temp 3}° GPU Temp: ${hwmon 2 temp 1}°
| root:${goto 100}${fs_free /root} / ${fs_size /root}
| RAM:${goto 100}${mem}${goto 148}/ ${memmax}
| Boot: ${goto 100}${execi 86400 who -u | cut -c23-38}
| load:${goto 100}${loadavg}
| Package:${goto 100}${execi 3600 $HOME/.conky/scripts/apps}
|
Net
|
| Up:${goto 100}${upspeedf enp2s0}${goto 170}${totalup enp2s0}
| DL:${goto 100}${downspeedf enp2s0}${goto 170}${totaldown enp2s0}
|
Processes
|
| NAME ${goto 165}PID ${goto 200}TOP
| ${top name 1} ${alignr} ${top pid 1} ${top cpu 1}
| ${top name 2} ${alignr} ${top pid 2} ${top cpu 2}
| ${top name 3} ${alignr} ${top pid 3} ${top cpu 3}
| ${top name 4} ${alignr} ${top pid 4} ${top cpu 4}
| ${top name 5} ${alignr} ${top pid 5} ${top cpu 5}
|
===
#${font monofur:size=12}@Sector11${alignr}updates [${color2}${if_match ${execi 300 aptitude search "~U" | wc -l | tail}==0}${execi 300 aptitude search "~U" | wc -l | tail}${color}]${else}${color red}${execi 300 aptitude search "~U" | wc -l | tail}${color}${color} ]${endif}
#${swapbar 2}
#@arpinux${alignr}${texeci 600 nakedupdate -c}${font}
]];
Offline
NICE!
And you know me, it's no coincidence at all that I'm going to get involved with conky when and if I can.
So with that in mind and since wttr.in is working today:
23 Dec 23 @ 13:31:33 ~
$ alias now
alias now='curl wttr.in/Buenos+Aires?q?0T?Q'
23 Dec 23 @ 13:31:39 ~
$ curl wttr.in/buenos_aires_argentina?q?0T?Q
\ / Sunny
.-. 20 °C
― ( ) ― ↗ 4 km/h
`-’ 10 km
/ \ 0.0 mm
23 Dec 23 @ 13:33:39 ~
$ now
\ / Sunny
.-. 26 °C
― ( ) ― ↓ 7 km/h
`-’ 10 km
/ \ 0.0 mm
23 Dec 23 @ 13:34:09 ~
$
The wttr.in command for my "now" alias doesn't work in conky. Hmmmmm
I had to bend, fold and test it in my test conky.
Still I'm happy
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
23 Dec 23 @ 12:56:04 ~
$ bsas
Weather report: Buenos+Aires
\ / Sunny
.-. 26 °C
― ( ) ― ↓ 7 km/h
`-’ 10 km
/ \ 0.0 mm
┌─────────────┐
┌──────────────────────────────┬───────────────────────┤ Sat 23 Dec ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ \ / Sunny │ \ / Sunny │ _`/"".-. Thundery outbr…│ \ / Clear │
│ .-. +25(26) °C │ .-. +26(29) °C │ ,\_( ). 29 °C │ .-. +25(27) °C │
│ ― ( ) ― ↘ 6-7 km/h │ ― ( ) ― ↓ 7-14 km/h │ /(___(__) ← 12-19 km/h │ ― ( ) ― ← 18-28 km/h │
│ `-’ 10 km │ `-’ 10 km │ ⚡‘‘⚡‘‘ 9 km │ `-’ 10 km │
│ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.0 mm | 0% │ / \ 0.0 mm | 0% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
┌─────────────┐
┌──────────────────────────────┬───────────────────────┤ Sun 24 Dec ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ \ / Partly cloudy │ _`/"".-. Patchy rain po…│ \ / Sunny │ \ / Clear │
│ _ /"".-. +23(25) °C │ ,\_( ). +25(26) °C │ .-. +26(27) °C │ .-. +24(25) °C │
│ \_( ). ↙ 13-20 km/h │ /(___(__) ↓ 6-8 km/h │ ― ( ) ― ← 19-26 km/h │ ― ( ) ― ← 10-18 km/h │
│ /(___(__) 10 km │ ‘ ‘ ‘ ‘ 10 km │ `-’ 10 km │ `-’ 10 km │
│ 0.0 mm | 0% │ ‘ ‘ ‘ ‘ 0.0 mm | 70% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
┌─────────────┐
┌──────────────────────────────┬───────────────────────┤ Mon 25 Dec ├───────────────────────┬──────────────────────────────┐
│ Morning │ Noon └──────┬──────┘ Evening │ Night │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│ \ / Sunny │ \ / Sunny │ \ / Sunny │ \ / Clear │
│ .-. 21 °C │ .-. 25 °C │ .-. 25 °C │ .-. 21 °C │
│ ― ( ) ― ↑ 26-30 km/h │ ― ( ) ― ↑ 28-32 km/h │ ― ( ) ― ↑ 26-31 km/h │ ― ( ) ― ↑ 24-34 km/h │
│ `-’ 10 km │ `-’ 10 km │ `-’ 10 km │ `-’ 10 km │
│ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │ / \ 0.0 mm | 0% │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
Location: CABA, Comuna 6, CABA, Argentina [-34.6075797,-58.4375796]
Follow @igor_chubin for wttr.in updates
23 Dec 23 @ 13:39:10 ~
$
Looks perfect in a terminal.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hello
I have this in terminal
romuald@RogStrix:~$ curl fr.wttr.in/Sarreguemines?format=%c
⛅️ romuald@RogStrix:~$
But this in conky , it's a problem with the font , anyone know which font to use in conky
Conkyrc
${alignc}Sarreguemines${font Cantarell regular:size=30}${voffset -40}
${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%c}$font
${texeci 3610 curl fr.wttr.in/Sarreguemines?format=%C}
Humidité : $alignr ${texeci 3620 curl fr.wttr.in/Sarreguemines?format=%h}
Température : $alignr ${texeci 3630 curl fr.wttr.in/Sarreguemines?format=%t}
Ressentie : $alignr ${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%f}
Vent : $alignr ${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%w}
Précipitation : $alignr ${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%p}
Pression : $alignr ${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%P}
Indice UV : $alignr ${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%u} /12
Lever soleil : $alignr ${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%S | cut -c1-5}
Coucher soleil : $alignr ${texeci 3600 curl fr.wttr.in/Sarreguemines?format=%s | cut -c1-5}
]];
Many tanks.
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Hi loutch, Bonjour loutch
ConkyWeather.ttf works for me: Top: Buenos Aires, bottom Sarreguemines
My way: one call to wttr.com > save to a file, then use the file:
BsAs: ${execpi 1800 curl wttr.in/BuenosAires?format="+%c\n+%C\n+%h\n+%t\n+%f\n+%w\n+%p\n+%P\n+%u\n+%S\n+%s\n">/media/5/Conky/starclock.conky.test.txt}
1 ${font ConkyWeather regular:size=30}${execpi 300 sed -n '1p' /media/5/Conky/starclock.conky.test.txt}${font}
2 ${execpi 300 sed -n '2p' /media/5/Conky/starclock.conky.test.txt}
3 ${execpi 300 sed -n '3p' /media/5/Conky/starclock.conky.test.txt}
4 ${execpi 300 sed -n '4p' /media/5/Conky/starclock.conky.test.txt}
5 ${execpi 300 sed -n '5p' /media/5/Conky/starclock.conky.test.txt}
6 ${execpi 300 sed -n '6p' /media/5/Conky/starclock.conky.test.txt}
7 ${execpi 300 sed -n '7p' /media/5/Conky/starclock.conky.test.txt}
8 ${execpi 300 sed -n '8p' /media/5/Conky/starclock.conky.test.txt}
9 ${execpi 300 sed -n '9p' /media/5/Conky/starclock.conky.test.txt}
10 ${execpi 300 sed -n '10p' /media/5/Conky/starclock.conky.test.txt}
11 ${execpi 300 sed -n '11p' /media/5/Conky/starclock.conky.test.txt}
= = = = =
Sarreguemines: ${execpi 1800 curl wttr.in/Sarreguemines?format="+%c\n+%C\n+%h\n+%t\n+%f\n+%w\n+%p\n+%P\n+%u\n+%S\n+%s\n">/media/5/Conky/Sarreguemines.wttr.txt}
1 ${font ConkyWeather regular:size=30}${execpi 300 sed -n '1p' /media/5/Conky/Sarreguemines.wttr.txt}${font}
2 ${execpi 300 sed -n '2p' /media/5/Conky/Sarreguemines.wttr.txt}
3 ${execpi 300 sed -n '3p' /media/5/Conky/Sarreguemines.wttr.txt}
4 ${execpi 300 sed -n '4p' /media/5/Conky/Sarreguemines.wttr.txt}
5 ${execpi 300 sed -n '5p' /media/5/Conky/Sarreguemines.wttr.txt}
6 ${execpi 300 sed -n '6p' /media/5/Conky/Sarreguemines.wttr.txt}
7 ${execpi 300 sed -n '7p' /media/5/Conky/Sarreguemines.wttr.txt}
8 ${execpi 300 sed -n '8p' /media/5/Conky/Sarreguemines.wttr.txt}
9 ${execpi 300 sed -n '9p' /media/5/Conky/Sarreguemines.wttr.txt} / 12
10 ${execpi 300 sed -n '10p' /media/5/Conky/Sarreguemines.wttr.txt}
11 ${execpi 300 sed -n '11p' /media/5/Conky/Sarreguemines.wttr.txt}
My original code from my StarClock conky
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Re
Many tanks works great with ConkyWeather.ttf .
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Sorry, it doesn't work for me.
For years, it has only affected the E symbol (for heavy frost), which is displayed with a box.
https://forums.bunsenlabs.org/viewtopic … 974#p69974 (ignore the red arrow)
If I enter 'ConkyWeather regular:size=30', I get the letters B (from curr_cond - line 22) and E (from dayli_forecast - line 106)
Last edited by unklar (2024-01-08 18:42:29)
Offline