You are not logged in.
^Conky's with weather from chubin and our friend TeoBigusGeekus(weatherfont), sometimes with frame, sometimes without.
chubin
# pkill -xf "conky -c /home/unklar/S11/cmus_conkyrc9" &
# @unklar 2021-07-18
use_xft yes
#xftfont Input Mono:size=8
#xftfont monofur:size=9
xftfont Hack-Regular:size=8
xftalpha 0.8
text_buffer_size 2048
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager #sticky,
#own_window_argb_visual yes
#own_window_argb_value 150
#default_bar_size 0 5
draw_shades no
draw_outline no
draw_borders yes #no
stippled_borders 0
border_inner_margin 5
border_width 2
default_color ffffff
#default_shade_color 000000
#default_outline_color ffffff
#own_window_colour 333333
color1 66FFFF
color8 778899 #LightSlateGrey
color9 C0C0C0 #Silver
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment middle_right
minimum_size 220 0
maximum_width 220
gap_x 20
gap_y 120
double_buffer yes
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
imlib_cache_size 0
TEXT
${goto 40}${font LED_mono:size=30}${color8}88:88:88${goto 40}${color}${time %T}${color}${font}
${alignc}Conky v${conky_version}
Kernel
|
| ${nodename}
| ${kernel}
|
Weather
|
|
+ ${goto 5}${texeci 1200 curl 'wttr.in/lichtenstein_sachsen?q?0T?Q'}
|
|
Mail
|
| Unread:
|
System
|
| CPU: ${goto 100}${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2} |
| Entropy:${goto 100}${entropy_avail} / ${entropy_poolsize} - ${entropy_perc}%
| CPU Temp:${goto 100}${platform thinkpad_hwmon/hwmon/hwmon5 temp 2}° Fan: ${platform thinkpad_hwmon/hwmon/hwmon5 fan 1}rpm
| root:${goto 100}${fs_free /root} / ${fs_size /root}
| RAM:${goto 100}${memperc}%
| Boot: ${goto 100}${execi 86400 who -b | cut -c23-}
| load:${goto 100}${loadavg}
|
Net
|
| Ssid:${goto 100}${wireless_essid wlan0}
| Signal:${goto 100}${wireless_link_qual_perc wlan0} %
| Up:${goto 100}${upspeed wlan0}${goto 170}${totalup wlan0}
| DL:${goto 100}${downspeed wlan0}${goto 170}${totaldown wlan0}
|
Processes
|
| NAME ${goto 160}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}
|
TBG
# pkill -xf "conky -c /home/unklar/S11/cmus_conkyrc9" &
# @unklar 2021-07-18
use_xft yes
#xftfont Input Mono:size=8
#xftfont monofur:size=9
xftfont Hack-Regular:size=8
xftalpha 0.8
text_buffer_size 2048
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager #sticky,
#own_window_argb_visual yes
#own_window_argb_value 150
#default_bar_size 0 5
draw_shades no
draw_outline no
draw_borders yes #no
stippled_borders 0
border_inner_margin 5
border_width 2
default_color ffffff
#default_shade_color 000000
#default_outline_color ffffff
#own_window_colour 333333
color1 66FFFF
color8 778899 #LightSlateGrey
color9 C0C0C0 #Silver
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment middle_right
minimum_size 220 0
maximum_width 220
gap_x 20
gap_y 120
double_buffer yes
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
imlib_cache_size 0
TEXT
${goto 40}${font LED_mono:size=30}${color8}88:88:88${goto 40}${color}${time %T}${color}${font}
${alignc}Conky v${conky_version}
Kernel
|
| ${nodename}
| ${kernel}
|
W E A T H E R
${goto 150}${font ConkyWindNESW:size=30}${texeci 600 sed -n '27p' $HOME/Accuweather_conky_script/curr_cond}${font}$color${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f}
${voffset -30}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}
${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond} ${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond}
${swapbar 1,190}
NOW:${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}°${goto 150}${texeci 600 sed -n '1p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}:${color}${texeci 600 sed -n '4p' $HOME/Accuweather_conky_script/daily_forecast}°/${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/daily_forecast}°
${font conkyweather:size=30}${texeci 600 sed -n '22p' $HOME/Accuweather_conky_script/curr_cond}${goto 150}${texeci 600 sed -n '106p' $HOME/Accuweather_conky_script/daily_forecast}${font}
${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}${goto 95}${texeci 600 sed -n '15p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}${goto 160}${texeci 600 sed -n '22p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z|cut -c1-3}$color
${font conkyweather:size=22}${texeci 600 sed -n '107p' $HOME/Accuweather_conky_script/daily_forecast}${goto 95}${texeci 600 sed -n '108p' $HOME/Accuweather_conky_script/daily_forecast}${goto 160}${texeci 600 sed -n '109p' $HOME/Accuweather_conky_script/daily_forecast}${font}
${texeci 600 sed -n '4p' $HOME/Accuweather_conky_script/daily_forecast}°/${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 95}${texeci 600 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}°/${texeci 600 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 160}${texeci 600 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}°/${texeci 600 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}°
System
|
| CPU: ${goto 100}${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2} |
| Entropy:${goto 100}${entropy_avail} / ${entropy_poolsize} - ${entropy_perc}%
| CPU Temp:${goto 100}${platform thinkpad_hwmon/hwmon/hwmon3 temp 2}° Fan: ${platform thinkpad_hwmon/hwmon/hwmon3 fan 1}rpm
| root:${goto 100}${fs_free /root} / ${fs_size /root}
| RAM:${goto 100}${memperc}%
| Boot: ${goto 100}${execi 86400 who -b | cut -c23-}
| load:${goto 100}${loadavg}
|
Net
|
| Ssid:${goto 100}${wireless_essid wlan0}
| Signal:${goto 100}${wireless_link_qual_perc wlan0} %
| Up:${goto 100}${upspeed wlan0}${goto 170}${totalup wlan0}
| DL:${goto 100}${downspeed wlan0}${goto 170}${totaldown wlan0}
|
Processes
|
| NAME ${goto 160}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}
-edit
the package is from here:
conky-legacy-all_1.9.0-6_amd64.deb
and is installed like this:
sudo apt install ./conky-legacy-all_1.9.0-6_amd64.deb
Last edited by unklar (2021-07-20 15:07:27)
Offline
{snip}
-edit
the package is from here:
conky-legacy-all_1.9.0-6_amd64.deb
and is installed like this:sudo apt install ./conky-legacy-all_1.9.0-6_amd64.deb
Nice stuff my friend.
And thank you for that ↑↑↑→→ added to my collection
Also one little OOPS! I noticed in the conkys:
border_inner margin 5
Should be
border_inner_margin 5
according to the MAN page
aaaaaaaaand tweaked a little to work here ... more to come.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
{snip}
Also one little OOPS! I noticed in the conkys:
border_inner margin 5
Should be
border_inner_margin 5
according to the MAN page
Thank you, my friend.
Four eyes see more than two.
That's what happens when you copy from 1.10 and only remove ' and =.
Offline
Thank you, my friend.
Four eyes see more than two.
That's what happens when you copy from 1.10 and only remove ' and =.
Happy Friends Day my Friend.
Four eyes, yes, especially at the age of our eyes.
I did some tweaking and ended up with "~/.conkyrc2" because I like that weather call.
# pkill -xf "conky -c /home/sector11/.conkyrc2" &
# Begin Window Settings
own_window yes
own_window_type normal
own_window_transparent no # for ARGB
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Empty Conky
own_window_argb_visual yes
own_window_argb_value 120
minimum_size 195 0
maximum_width 195
gap_x 300 ## ← → ## TEMP - FOR DISPLAY ONLY
gap_y 15 ## ↑ ↓
alignment tr
# End Window Settings
# Font Settings
use_xft yes
xftfont Fira Mono:medium:size=11
xftalpha 1
override_utf8_locale yes
uppercase no
# End Font Settings
# Colour Settings
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC #Gainsboro
color0 C0C0C0 #Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
# End Colour Settings
# Borders Section
draw_borders no
stippled_borders 5
border_inner_margin 6
border_outer_margin 0
border_width 0
draw_graph_borders yes
# End Borders Section
# Miscellaneous Section
background yes
use_spacer none
no_buffers yes
short_units yes
imlib_cache_size 0
double_buffer yes
# End Miscellaneous Section
update_interval 1
TEXT
${image /media/5/Conky/images/Conky_v1.1.0.1.png -p 0,35 -s 60x60}\
${image /media/5/Conky/images/Conky_v1.1.0.1.png -p 135,35 -s 60x60}\
${goto 27}${font LED_mono:size=30}${color1}88:88:88${goto 27}${color5}${time %T}${color}${font}
${alignc}${swapbar 0,90}
${font fira mono:medium:size=14}${alignc}${color5}${time %b %Y}${font}
${alignc}${swapbar 0,90}
${alignc}${if_match ${time %w}==0}${color5}ΚΥ${color1} ΔΕ ΤΡ ΤΕ ΠΕ ΠΑ ΣΑ${else}\
${if_match ${time %w}==1}${color1}ΚΥ ${color5}ΔΕ${color1} ΤΡ ΤΕ ΠΕ ΠΑ ΣΑ${else}\
${if_match ${time %w}==2}${color1}ΚΥ ΔΕ ${color5}ΤΡ${color1} ΤΕ ΠΕ ΠΑ ΣΑ${else}\
${if_match ${time %w}==3}${color1}ΚΥ ΔΕ ΤΡ ${color5}ΤΕ${color1} ΠΕ ΠΑ ΣΑ${else}\
${if_match ${time %w}==4}${color1}ΚΥ ΔΕ ΤΡ ΤΕ ${color5}ΠΕ${color1} ΠΑ ΣΑ${else}\
${if_match ${time %w}==5}${color1}ΚΥ ΔΕ ΤΡ ΤΕ ΠΕ ${color5}ΠΑ${color1} ΣΑ${else}\
${color1}ΚΥ ΔΕ ΤΡ ΤΕ ΠΕ ΠΑ ${color5}ΣΑ${color1}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}${if_match ${time %w}==0}${color5}Su${color1} Mo Tu We Th Fr Sa${else}\
${if_match ${time %w}==1}${color1}Su ${color5}Mo${color1} Tu We Th Fr Sa${else}\
${if_match ${time %w}==2}${color1}Su Mo ${color5}Tu${color1} We Th Fr Sa${else}\
${if_match ${time %w}==3}${color1}Su Mo Tu ${color5}We${color1} Th Fr Sa${else}\
${if_match ${time %w}==4}${color1}Su Mo Tu We ${color5}Th${color1} Fr Sa${else}\
${if_match ${time %w}==5}${color1}Su Mo Tu We Th ${color5}Fr${color1} Sa${else}\
${color1}Su Mo Tu We Th Fr ${color5}Sa${color1}${endif}${endif}${endif}${endif}${endif}${endif}
${color1}${goto 24}${execpi 300 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color5}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 24}/g'}${color}
${alignc}${swapbar 0,80}
${alignc}${color5}W E A T H E R${color}
${font Fira Mono:medium:size=9}\
${goto 5}${texeci 1200 curl 'wttr.in/Buenos+Aires?q?0T?Q'}${font}
${alignc}${swapbar 0,80}
${alignc}${color5}S Y S I N F O
${pre_exec lsb_release -is}${color} ${pre_exec lsb_release -rs}${alignr 5}${pre_exec lsb_release -cs}
${alignc}${kernel}
${alignc}Conky v${conky_version}
${alignc}${swapbar 0,80}
${color5}Your Host:${color}${alignr 5}${nodename}
${color5}Uptime:${color}${alignr 5}${uptime_short}
${swapbar 0}
${color5}Temp:${alignr 10}${color}${execi 2 sensors | grep Tdie: | cut -c16-19}°
${color5}Freq:${alignr 10}${color}${freq_g} GHz
${color5}Avg load:${color}${goto 90}${if_match ${cpu cpu0}<10} ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%${alignr 5}${freq_g}
${alignc}${swapbar 0,80}
${color5}CPU 1${color}${goto 90}${if_match ${cpu cpu1}<10} ${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100} ${cpu cpu1}\
${else}${cpu cpu1}${endif}${endif}%${alignr 5}${freq_g 1}
${color5}CPU 2${color}${goto 90}${if_match ${cpu cpu2}<10} ${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100} ${cpu cpu2}\
${else}${cpu cpu2}${endif}${endif}%${alignr 5}${freq_g 2}
${color5}CPU 3${color}${goto 90}${if_match ${cpu cpu3}<10} ${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100} ${cpu cpu3}\
${else}${cpu cpu3}${endif}${endif}%${alignr 5}${freq_g 3}
${color5}CPU 4${color}${goto 90}${if_match ${cpu cpu4}<10} ${cpu cpu4}\
${else}${if_match ${cpu cpu4}<100} ${cpu cpu4}\
${else}${cpu cpu4}${endif}${endif}%${alignr 5}${freq_g 4}
${alignc}${swapbar 0,80}
${alignc}${pre_exec lspci|grep 01.00.0 |awk '{print $8,$9,$10}'}
${color5}Temp:${alignr 5}${color}${nvidia temp}°
${color5}Fan:${alignr 5}${color}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeedRPM -t} RPM
${color5}Freq:${alignr 5}${color}${nvidia gpufreq} Mhz
${color5}Memory:${alignr 5}${color}${nvidia memfreq} Mhz
${alignc}${swapbar 0,80}
${color5}HDD 1TB${alignr 5}${color}${hddtemp /dev/sda}.0°
${alignc}${swapbar 0,80}
RAM${color5}${goto 60}MEM${alignr 5}MAX
${memperc}%${color}${goto 60}${mem}${alignr 5}${memmax}
Free${goto 60}${memfree}${color}${alignr 5}EF ${memeasyfree}
${alignc}${swapbar 0,80}
${alignc}${color5}Net Data
${color5}↑ NOW ↑${alignr 5}↑ TODAY ↑${color}
${upspeed enp6s0}${alignr 5}${totalup enp6s0}
${color5}↓ ↓ ↓ ↓${alignr 5}↓ ↓ ↓ ↓ ↓${color}
${downspeed enp6s0}${alignr 5}${totaldown enp6s0}
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
unklar wrote:Thank you, my friend.
Four eyes see more than two.
That's what happens when you copy from 1.10 and only remove ' and =.Happy Friends Day my Friend.
Four eyes, yes, especially at the age of our eyes.
I did some tweaking and ended up with "~/.conkyrc2" because I like that weather call.
https://scrot.cloud/images/2021/07/20/2021-07-20_120420_S11.th.jpg
Thanks, I wish you the same, stay healthy!
Very stylish configuration that I like very much.
Four eyes, yes, especially at the age of our eyes.
Yes, you are right. According to conky-dateutil, after all, today we are 52382 days young, my friend and the conky eyes (sometimes) really see everything.
]:D
Offline
@ unklar
Thanks, I've used that "layout" for a few years now.
dateutil certainly doesn't let us forget little things like that, but by "we are" being 52382 days young I hope you mean combined days because I'm not a day over 26361
Just a young pup yet!
Conky knows all!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Long time nothing written here...
the modified conkyrc of the fluxbox theme
--[[
fluxbox conkyrc 3hg @ 2017-2020 © WTFPL
set own_window_type from 'desktop' to 'override' tu use in i3wm
modified @unklar 2021-09-12
]]
conky.config = {
background = true,
use_xft = true,
font = 'Hack:pixelsize=12',
xftalpha = 1,
update_interval = 1.0,
total_run_times = 0,
own_window = true,
own_window_transparent = false,
own_window_colour = '2e3440',
own_window_type = 'normal',
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager', --sticky,
own_window_class = 'conky',
own_window_title = 'conky_flux',
own_window_argb_visual = true,
own_window_argb_value = 220,
double_buffer = true,
maximum_width = 150,
minimum_width = 150,
draw_shades = false,
draw_outline = false,
draw_borders = false,
border_inner_margin = 5,
border_width = 1,
draw_graph_borders = false,
default_color = 'd8dee9',
color1 = 'eceff4',
color2 = 'ababab',
color3 = '7d7d7d',
color4 = '5e81ac',
default_shade_color = '000000',
default_outline_color = 'ffffff',
alignment = 'tr',
gap_x = 15,
gap_y = 15,
no_buffers = true,
uppercase = false,
text_buffer_size = 1024,
top_name_width = 10,
imlib_cache_size = 0,
cpu_avg_samples = 2,
show_graph_scale = false,
show_graph_range = false,
short_units = true,
override_utf8_locale = true,
use_spacer = 'none',
if_up_strictness = address,
};
conky.text = [[
${alignc}${font Hack:pixelsize=15}nakeDeb ${execi 86400 cat /etc/nakedeb_version}${font}
${alignc}${kernel}
Boot ${alignr}${execi 86400 who -b | cut -c23-}
AOC ${alignr}${tztime Europe/Berlin %H:%M}
AEP ${alignr}${tztime America/Argentina/Buenos_Aires %H:%M}
KSO ${alignr}${tztime Europe/Athens %H:%M}
${voffset 5}${color4}${font Hack:pixelsize=10}Weather ${voffset -3}${hr 1}${color}
${voffset 5}+ ${goto 5}${texeci 1200 curl 'wttr.in/lichtenstein_sachsen?q?0T?Q'}
${voffset 5}${color4}${font Hack:pixelsize=10}System ${voffset -3}${font}${hr 1}${color}
${voffset 5}CPU ${color1}${cpu}${color}%\
${alignr}${cpugraph 10,75 ebcb8b bf616a -t}${color}
load${alignr}${loadavg 1} ${color2}${loadavg 2} ${color3}${loadavg 3}
${color}Fan ${alignr}${platform thinkpad_hwmon/hwmon/hwmon3 fan 1} rpm
CPU ${alignr}${platform thinkpad_hwmon/hwmon/hwmon3 temp 1} °C
${color1}${top name 1}${alignr}${top cpu 1}%${color}
${color2}${top name 2}${alignr}${top cpu 2}%${color}
${color3}${top name 3}${alignr}${top cpu 3}%${color}
${voffset 5}${color4}${font Hack:pixelsize=10}Ram ${voffset -2}${font}${hr 1}${color}
${voffset 5}RAM ${color1}${exec free -h --si | awk 'NR=2{printf $3}' | cut -c5-7}${alignr}${memmax} ${color}
${color1}${top_mem name 1}${alignr}${top_mem mem 1}%${color}
${color2}${top_mem name 2}${alignr}${top_mem mem 2}%${color}
${color3}${top_mem name 3}${alignr}${top_mem mem 3}%${color}
${voffset 5}${color4}${font Hack:pixelsize=10}Disk ${voffset -2}${font}${hr 1}${color}
${voffset 5}SYS ${color1}${fs_used_perc /}${color}%${alignr}${fs_used /}/${fs_size /}
I/O ${color1}${diskio}${color}\
${alignr}${diskiograph 10,80 2e3440 a3be8c}
${voffset 5}${color4}${font Hack:pixelsize=10}Net ${color4}${voffset -2}${hr 1}${color}
${voffset 5}${if_up ens1}${font forkawesome:pixelsize=12} ${font}${upspeedf ens1}${voffset -1} ${alignr}${upspeedgraph ens1 10,80 FFFFF0 FF8800 -t -l}
${font forkawesome:pixelsize=12} ${font}${downspeedf ens1}${voffset -1} ${alignr}${downspeedgraph ens1 10,80 FFFFF0 FF8800 -t -l}${else}
${if_up wlp2s2} ${font forkawesome:pixelsize=12} ${font}${voffset -1} ${alignr}${upspeedgraph wlp2s2 10,80 FFFFF0 FF8800 -t -l}
${font forkawesome:pixelsize=12} ${font}${voffset -1} ${alignr}${downspeedgraph wlp2s2 10,80 FFFFF0 FF8800 -t -l}${endif}${endif}
${voffset 5}${color4}${font Hack:pixelsize=10}help ${voffset -2}${font}${hr 1}${color}
${voffset 5}help?? ${alignr} nakedhelp
Alt+m${alignr} fluxmenu
Alt+d${alignr} rofi-menu
Alt+p${alignr} fbrun
Alt+Enter${alignr} terminal
${alignc}${color4}${font forkawesome:pixelsize=26}${font}
]];
Offline
back to 10!
I know ... it's a shame .... but I like mine as they are.
They have not changed in ... well more than a month.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^^Hello, my friend,
this is just for camouflage. For the youth. The old always come later 'on. 8.(
Offline
Ahhhhhhhh a wise man once said:
Use the 9th, conkystador, use the 9th!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^^Hello, my friend,
this is just for camouflage. For the youth. The old always come later 'on.
8.(
Can you still remember
My conky: S11_WTD.conky
World Time Date & Forecast - CCCC: S11, ragamatrix, Habitual & TeoBigusGeekus
Habitual wrote the daylight.sh script that gets the daylight/cloud cover image: /media/5/Conky/images/world_1600.jpg
- in 2010 - it's old, still works.
I found the a simple weather site in China (Today's Hi/Low, simple condition) and the 'data collection' script was done by Teo: majorcities
draw-bg.lua does the fake beveled edge.
conky ${tztime} gets the time for each location
${if_match} compares the date of each ${tztime [place] %d} with ${tztime NZ %d} (New Zealand) to display colour for the dates of the two days.
A whole bunch of ${goto xxx} commands with a few ${voffsets xx} to fine tune things
A few days ago, a user here in the German arch forum posted a phyton script to show the International Space Station ISS on the desktop live (as a "wandering red pixel").
I tested this on Debian/siduction/LXDE and it works(left to check in browser). link
I would like to have this in Conky. Unfortunately I don't know python, because the window doesn't appear in conky, but further on the desk. The background image, what the script fetches, is also not my case. I'm sure you know better ones (see above) .
Anyway, this is what I have:
iss.py
#!/usr/bin/python3
import json
import sys
import time
from io import BytesIO
from pathlib import Path
from subprocess import run
import requests
from PIL import Image, ImageDraw
SCREEN_SIZE = 720, 480
REFRESH_TIME = 5
POS_COLOR = 255, 0, 0
WORLD_PNG_URL = (
'https://eoimages.gsfc.nasa.gov/images/imagerecords/147000/147190/'
'eo_base_2020_clean_3600x1800.png'
)
ISS_POS_URL = 'http://api.open-notify.org/iss-now.json'
def make_paths():
home = Path.home()
cachedir = home / '.cache'
if cachedir.exists():
dir_ = cachedir / 'py-iss-bg'
else:
dir_ = home / '.py-iss-bg'
paths = {
'dir': dir_,
'world': dir_ / 'world.png',
'data': dir_ / 'pos.json',
'stop': dir_ / 'stop',
'bg_file': home / '.iss.png',
}
dir_.mkdir(exist_ok=True)
return paths
def get_clean_image(path):
if not path.is_file():
req = requests.get(WORLD_PNG_URL)
img = Image.open(BytesIO(req.content))
req.close()
img = img.resize(SCREEN_SIZE)
img.save(str(path))
else:
img = Image.open(str(path))
return img
def get_current_iss_data(save_path=None):
req = requests.get(ISS_POS_URL)
data = req.json()
req.close()
if save_path is not None:
with save_path.open('w') as fp:
json.dump(data, fp, indent=2)
return data
def draw_position(img, lat, lon, save_path=None):
width, height = img.size
x = int(width * (180 + lon) / 360)
y = int(height * (90 - lat) / 180)
draw = ImageDraw.Draw(img)
draw.rectangle([(x, y), (x+3, y+3)], fill=POS_COLOR, outline=POS_COLOR)
if save_path is not None:
img.save(str(save_path), 'PNG')
else:
img.save(sys.stdout, 'PNG')
def set_background(img_path):
# Command to change wallpaper for cinnamon
# cmd = ['gsettings', 'set', 'org.cinnamon.desktop.background',
# 'picture-uri', f'file://{img_path}']
cmd = ['pcmanfm', '-w', str(img_path)]
run(cmd)
def main():
paths = make_paths()
timestamp = 0
while True:
if paths['stop'].exists():
paths['stop'].unlink()
break
start = time.monotonic()
data = get_current_iss_data(paths['data'])
if data['timestamp'] > timestamp:
timestamp = data['timestamp']
lat = float(data['iss_position']['latitude'])
lon = float(data['iss_position']['longitude'])
clean_image = get_clean_image(paths['world'])
draw_position(clean_image, lat, lon, paths['bg_file'])
set_background(paths['bg_file'])
sleep_time = start + REFRESH_TIME - time.monotonic()
if sleep_time > 0:
time.sleep(sleep_time)
if __name__ == '__main__':
main()
whitie_test-conky9
# test-conky auf der Basis des Python-Script von @Withie
# https://forum.archlinux.de/d/34146-iss-in-echtzeit-auf-dem-bildschirmhintergrund/4
# und den Daten von @Habitual, Sector11, @ragamatrix, @TeoBigusGeekus
# @unklar 2021-09-
background yes
cpu_avg_samples 2
net_avg_samples 2
default_color ffffff
default_outline_color 000000
default_shade_color 000000
color0 ffffff #white
color1 144556 #dark blue
color2 33b0dc #hellblue
color3 ff8c00 #dark orange
color4 00ffff #cain
color5 c0c0c0 #silver
color6 808080 #gray
double_buffer yes
no_buffers yes
#border_width 1
#draw_borders no
#draw_graph_borders yes
#draw_outline no
#draw_shades no
#extra_newline no
use_xft yes
xftfont monofur:size=10
xftalpha 1
override_utf8_locale yes
uppercase no
use_spacer none
alignment top_left
gap_x 40
gap_y 40
minimum_size 720 480
maximum_width 720
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent no
own_window_hints skip_taskbar,skip_pager,below
own_window_argb_visual yes
#own_window_argb_value 180
#own_window_colour 144556
own_window_title ISS-TEST
show_graph_range no
show_graph_scale no
stippled_borders 0
update_interval 1
#default drawing
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
TEXT
${execi 86400 $HOME/bin/daylight.sh}\
${execi 86400 $HOME/worldmap/iss.py}\
${image $HOME/.iss.png -s 720x480 -p 0,0}
8) 10
--https://forum.archlinux.de/d/34146-iss-in-echtzeit-auf-dem-bildschirmhintergrund/4
--whitie_test10 @unklar 2021-09-
--.....
conky.config = {
background = true,
cpu_avg_samples = 2,
net_avg_samples = 2,
default_color = '#ffffff',
default_outline_color = '#000000',
default_shade_color = '#000000',
color0 = '#ffffff',--#white
color1 = '#144556',--#dark blue
color2 = '#33b0dc',--#hellblue
color3 = '#ff8c00',--#dark orange
color4 = '#00ffff',--#cain
color5 = '#c0c0c0',--#silver
color6 = '#808080',--#gray
double_buffer = true,
no_buffers = true,
--border_width = 1,
--draw_borders = false,
--draw_graph_borders = true,
--draw_outline = false,
--draw_shades = false,
--extra_newline = false,
use_xft = true,
font = 'monofur:size=10',
uppercase = false,
use_spacer = 'none',
alignment = 'top_left',
gap_x = 40,
gap_y = 40,
minimum_height = 480,
minimum_width = 720,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'normal',
own_window_transparent = false, --true,
own_window_hints = 'skip_taskbar,skip_pager',
own_window_argb_visual = true,
--own_window_argb_value = 180,
own_window_colour = '#144556',
own_window_title = 'ISS-TEST',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
--if_up_strictness = 'address',
-- default drawing
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
--default_bar_width = 150, default_bar_height = 5,
--default_graph_width = 150, default_graph_height = 12,
--default_gauge_width = 20, default_gauge_height = 20,
}
conky.text = [[
${execi 86400 $HOME/bin/daylight.sh}\
${execi 86400 $HOME/worldmap/iss.py}\
${image $HOME/.iss.png -s 720x480 -p 0,0}
]];
it is expected:
jq
python (in Debian python3)
python-requests (in Debian python3-requests)
pcmanfm (does it have to be this file manager?)
This would give "the old" with the "young" again a puzzle , whereby, who knows python (where is xaos52 - The Good Doctor - ?) .
Offline
unklar wrote:^^Hello, my friend,
this is just for camouflage. For the youth. The old always come later 'on.
8.(
Can you still remember
Sector11 wrote:My conky: S11_WTD.conky
World Time Date & Forecast - CCCC: S11, ragamatrix, Habitual & TeoBigusGeekus
OH yea I remember that well.
Now it isn't W(eather)T(ime)D(ate) any more as a few of those scripts went up in smoke when the sites they grabbed into from changed. Today, S11_WTD.conky, is an empty shell of what it use to be..
And for me:
python is a snake
java means coffee and
C+ is a school grade that makes parent frown in a bad way.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^Got a little further... Unfortunately not yet in the Conky, but always new instances of the image viewer.
#!/usr/bin/python3
import json
import sys
import time
from io import BytesIO
from pathlib import Path
from subprocess import run
import requests
from PIL import Image, ImageDraw
SCREEN_SIZE = 800, 444
REFRESH_TIME = 5
POS_COLOR = 255, 0, 0
WORLD_PNG_URL = (
'http://static.die.net/earth/mercator/800.jpg'
'800_800x444.jpg'
)
ISS_POS_URL = 'http://api.open-notify.org/iss-now.json'
def make_paths():
home = Path.home()
cachedir = home / '.cache'
if cachedir.exists():
dir_ = cachedir / 'py-iss-bg'
else:
dir_ = home / '.py-iss-bg'
paths = {
'dir': dir_,
'world': dir_ / '800.jpg',
'data': dir_ / 'pos.json',
'stop': dir_ / 'stop',
'bg_file': home / '800.png',
}
dir_.mkdir(exist_ok=True)
return paths
def get_clean_image(path):
if not path.is_file():
req = requests.get(WORLD_PNG_URL)
img = Image.open(BytesIO(req.content))
req.close()
img = img.resize(SCREEN_SIZE)
img.save(str(path))
else:
img = Image.open(str(path))
return img
def get_current_iss_data(save_path=None):
req = requests.get(ISS_POS_URL)
data = req.json()
req.close()
if save_path is not None:
with save_path.open('w') as fp:
json.dump(data, fp, indent=2)
return data
def draw_position(img, lat, lon, save_path=None):
width, height = img.size
x = int(width * (180 + lon) / 360)
y = int(height * (90 - lat) / 180)
draw = ImageDraw.Draw(img)
draw.rectangle([(x, y), (x+3, y+3)], fill=POS_COLOR, outline=POS_COLOR)
if save_path is not None:
img.save(str(save_path), 'PNG')
else:
img.save(sys.stdout, 'PNG')
def set_background(img_path):
# Command to change wallpaper for cinnamon
# cmd = ['gsettings', 'set', 'org.cinnamon.desktop.background',
# 'picture-uri', f'file://{img_path}']
cmd = ['pcmanfm', '--desktop-off', str(img_path)]
run(cmd)
def main():
paths = make_paths()
timestamp = 0
while True:
if paths['stop'].exists():
paths['stop'].unlink()
break
start = time.monotonic()
data = get_current_iss_data(paths['data'])
if data['timestamp'] > timestamp:
timestamp = data['timestamp']
lat = float(data['iss_position']['latitude'])
lon = float(data['iss_position']['longitude'])
clean_image = get_clean_image(paths['world'])
draw_position(clean_image, lat, lon, paths['bg_file'])
set_background(paths['bg_file'])
sleep_time = start + REFRESH_TIME - time.monotonic()
if sleep_time > 0:
time.sleep(sleep_time)
if __name__ == '__main__':
main()
Offline
The chinese site that I grabbed the temps from, with Teo's expert help, has revamped their site.
It's not all on one page any more.
This is the revamped site:
https://www.hko.gov.hk/en/wxinfo/worldwx/wwi.htm
The script that gets the image, still works BUT the image saved is world_1600.jpg is a text file ???
~/bin/daylight.sh
#!/bin/bash
rm -f /media/5/Conky/images/world_1600.jpg
#wget -U Mozilla/5.0 --quiet -r -O /media/5/Conky/images/world_640.jpg http://static.die.net/earth/mercator/640.jpg
#wget -U Mozilla/5.0 --quiet -r -O /media/5/Conky/images/world_800.jpg http://static.die.net/earth/mercator/800.jpg
#wget -U Mozilla/5.0 --quiet -r -O /media/5/Conky/images/world_1024.jpg http://static.die.net/earth/mercator/1024.jpg
#wget -U Mozilla/5.0 --quiet -r -O /media/5/Conky/images/world_1280.jpg http://static.die.net/earth/mercator/1280.jpg
#wget -U Mozilla/5.0 --quiet -r -O /media/5/Conky/images/world_1600.jpg http://static.die.net/earth/mercator/1600.jpg
wget -U Mozilla/5.0 --quiet -r -O /media/5/Conky/images/world_1600.jpg http://static.die.net/earth/mercator/1600.jpg
# or # wget -U Mozilla/5.0 http://static.die.net/earth/mercator/640.jpg
## kill -HUP `ps axu | grep conky | grep daylight | grep -v grep | awk '{print $2}'` >/dev/null 2>&1
# killall -HUP conky
http://static.die.net/earth/mercator/1600.jpg
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hello, my friend.
I have no difficulties here with 1600.jpg and the others. The trick is, you have to remove everything in the browser line from the question mark ? after the first call and do the call again.
Probably the cancer of the Internet "Cloudfare" is involved in the first call and falsified.
Offline
hahahaha And right there "Probably the cancer of the Internet "Cloudfare" is involved in the first call and falsified." I am confuzzed and understand that this is beyond my programming skill set.
confuzzed: My wife, Anne, may she rest in peace, use to say confuzzed instead of confused. She came from Cape Breton in Canada and they tesnd to talk a little funny but are like Newfoundlanders just the friendliest of people.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
Nice.
Entropy?
/Martin
"Problems worthy of attack
prove their worth by hitting back."
Piet Hein
Offline
I'm getting deeper into conky lua scripting and hit my first major bump.
It is possible to draw SVG images with lua.
But I haven't been able to get any sort of documentation or even a list of available functions for this. All I found is this - the example script works, but whatever I do I cannot figure out how to draw the image at a specific x,y location. It always draws the image at 0,0.
It is possible that I'm missing something obvious, but afaics the function rsvg_handle_render_cairo_sub does not take any positional x,y arguments, and I see nothing else that would do that.
I did try a few things, like cairo_move_to() before rendering the image, to no avail.
Maybe I have to first create some sort of rectangle within an existing cairo surface and tell the rsvg function(s) to paint to that?
Does anybody have some advice for me?
Or possible some lua script floating around that uses rsvg? You could run a search on your conky folder:
grep rsvg -r /path/to/conky-folder
Thanks.
Offline