You are not logged in.

#1981 2024-01-22 14:42:14

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

Thank you for taking the time to test, my friend. wink

Sector11 wrote:

In "conktrc" I get this error, running "just the graph.lua" :

This is exactly the same error that I have.

If he(lua) can do that 'flagOK' against null, there can only be one value or argument,  ('name' or 'arg' ) in the 'graph_settings' can only be wrong.

    if flagOK>0 then 
        --abort script if error in one of the tables
        print ("ERROR : Check the graph_setting table")
        return
    end

I'll have to consult @wlourf again...

to work at all in "conkyrc" by itself even with an I/O stress test

Interesting.
I always use

doas hdparm -Tt /dev/sdb

I've been on and off this all day, RL talking me away from the computer.  And just recently I noticed this in BOTH conkys (v9 of course)
..

own_window_class Conky
own_window yes
own_window_argb_visual yes
own_window_argb_value 180
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar

I know that you keep pointing out this mistake. However, people keep making this mistake in their configurations.  wink

Last edited by unklar (2024-01-22 14:49:05)

Offline

#1982 2024-01-22 16:23:54

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

If you comment out the area of 'graph.lua' from line 253 onwards, the configuration runs without errors (by the way, it looks as if it was added later).

However, the bar is not displayed.
If you execute 'baragraph.lua' alone, the bar appears.
HHYtVDTt.png

Offline

#1983 2024-01-22 17:24:26

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar  ....

Must comment out the area you mentioned.
wlourf's scripts, graph and bargraph, both running in 1 conky
And the conky-blue attempt - problem with the bar
RL calls - later will do the purging!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1984 2024-01-22 19:02:13

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

If you comment out the area of 'graph.lua' from line 253 onwards, the configuration runs without errors (by the way, it looks as if it was added later).

However, the bar is not displayed.
If you execute 'baragraph.lua' alone, the bar appears.
https://i.imgur.com/HHYtVDTt.png

Show me the start of your 253 and did you keep the final

end

I cannot for the life of me get the 'bargraph' to work.
Just get the black bar.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1985 2024-01-22 19:11:22

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

Thank you for taking the time to test, my friend. wink

Not a problem.  After all, it's a conky challange with a friend.

to work at all in "conkyrc" by itself even with an I/O stress test

Interesting.
I always use

doas hdparm -Tt /dev/sdb

Hmmmmmmmmmmm

   $ doas hdparm -Tt /dev/sda
bash: doas: command not found
 
   $ ser doas
alias ser = aptitude search
p   doas
p   opendoas
 
   $ sudo hdparm -Tt /dev/sdb
[sudo] password for sector11: 
sudo: hdparm: command not found
 
   $ get hdparm
 
   $ sudo hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   20442 MB in  2.00 seconds = 10237.57 MB/sec
 Timing buffered disk reads: 552 MB in  3.00 seconds = 183.95 MB/sec
 
 22 Jan 24 @ 15:29:38 ~
   $ sho doas
Description: transitional package
 
   $ get doas

   $ doas hdparm -Tt /dev/sda
doas: doas is not enabled, /etc/doas.conf: No such file or directory

I'll just use sudo  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1986 2024-01-22 19:41:50

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

Sector11 wrote:
unklar wrote:

If you comment out the area of 'graph.lua' from line 253 onwards, the configuration runs without errors (by the way, it looks as if it was added later).

However, the bar is not displayed.
If you execute 'baragraph.lua' alone, the bar appears.
https://i.imgur.com/HHYtVDTt.png

Show me the start of your 253 and did you keep the final

end

I cannot for the life of me get the 'bargraph' to work.
Just get the black bar.

253, that is

--   if flagOK>0 then 
        --abort script if error in one of the tables
--        print ("ERROR : Check the graph_setting table")
--        return
--    end

Offline

#1987 2024-01-22 19:49:16

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

Sector11 wrote:
unklar wrote:

Thank you for taking the time to test, my friend. wink

Not a problem.  After all, it's a conky challange with a friend.

to work at all in "conkyrc" by itself even with an I/O stress test

Interesting.
I always use

doas hdparm -Tt /dev/sdb

Hmmmmmmmmmmm

   $ doas hdparm -Tt /dev/sda
bash: doas: command not found
 
   $ ser doas
alias ser = aptitude search
p   doas
p   opendoas
 
   $ sudo hdparm -Tt /dev/sdb
[sudo] password for sector11: 
sudo: hdparm: command not found
 
   $ get hdparm
 
   $ sudo hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   20442 MB in  2.00 seconds = 10237.57 MB/sec
 Timing buffered disk reads: 552 MB in  3.00 seconds = 183.95 MB/sec
 
 22 Jan 24 @ 15:29:38 ~
   $ sho doas
Description: transitional package
 
   $ get doas

   $ doas hdparm -Tt /dev/sda
doas: doas is not enabled, /etc/doas.conf: No such file or directory

I'll just use sudo  big_smile

Brilliant!

doas is the equivalent of sudo from siduction.

It should be available in every distri. I liked the simple setup so much (much easier than sudo. In siduction sudo is not preconfigured, there is only su or su - )  tongue

Offline

#1988 2024-01-22 20:38:40

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

So, I also played with these variants - no errors and no display of the bars. Regardless of whether you use post (afterwards) or pre (before the start)  lol

--	lua_load = '~/.conky/conky_blue/scripte/conky_loader.lua',
--	lua_draw_hook_pre = 'loader_lua',
	lua_load = '~/.conky/conky_blue/scripte/graph.lua ~/.conky/conky_blue/scripte/bargraph.lua',
	lua_draw_hook_pre = 'main_graph main_bars',
--	lua_draw_hook_post = 'main_bars',

Offline

#1989 2024-01-22 22:10:18

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:
Sector11 wrote:
unklar wrote:

If you comment out the area of 'graph.lua' from line 253 onwards, the configuration runs without errors (by the way, it looks as if it was added later).

However, the bar is not displayed.
If you execute 'baragraph.lua' alone, the bar appears.
https://i.imgur.com/HHYtVDTt.png

Show me the start of your 253 and did you keep the final

end

I cannot for the life of me get the 'bargraph' to work.
Just get the black bar.

253, that is

--   if flagOK>0 then 
        --abort script if error in one of the tables
--        print ("ERROR : Check the graph_setting table")
--        return
--    end

OH!  I though you meant to the end of the file  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1990 2024-01-23 02:42:48

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

And here I am again...
I simply cannot get the scripts to work in that/those conkys.

So I'm in the process of Sector11izing them. (modifying it).
unklar, your I/O stress test is "READING" the disk, the way I did it "WRITES" to the disk (/dev/null).  Make for a nice different when you see the tweak below.

So cleaning it up, getting rid of voffset and offset command (YUK hate 'em - personal opinion)
And cleaning up some really funny lines with a lot of empty spaces that just do not make sense.
Line 61

# NETWORK

and carries on with spaces to column 153 ???

Line 68 starts like this:

# ---- This monitors enp3s0. Replace accordingly (th

and ends at column 285  ???

# RAM/SWAP

carries on to 160

Line 67

${voffset -1}$stippled_hr${font}

and carries on with blank spaces to column 254

Anyway - here's my tweaking so far.

Now - it's bed time.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1991 2024-01-23 15:25:30

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

This morning I 'touched up' my Retired Calendar
New-Retired-Cal.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1992 2024-01-23 17:48:54

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

New conky for 2024 nothing fancy .

conkyrc

conky.config = {
	background = true,
	use_xft = true,
	font = 'FuraCode Nerd Font:pixelsize=10',
	xftalpha = 1,
	update_interval = 1.0,
	total_run_times = 0,
	own_window = true,
	own_window_transparent = true,
--own_window_color 000000
own_window_argb_visual = true,
--own_window_argb_value = 250,
	own_window_type = 'normal',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
	double_buffer = true,
	minimum_width = 250, minimum_height = 1000,
        maximum_width = 250,
	text_buffer_size = 2048,
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,
	default_color = 'white',
	default_outline_color = 'white',
	alignment = 'top_left',
	gap_x = 30,
	gap_y = 00,
	no_buffers = true,
	uppercase = false,
	cpu_avg_samples = 2,
	override_utf8_locale = true,
imlib_cache_flush_interval = 60,
	imlib_cache_size = 10000,


-- Taille des pointillés
	stippled_borders = 5,
  use_xft = true,
  xftalpha = 0.2,
  uppercase = false,
  font = 'Arial:size=10',
  font1 = 'ArtificialIntelligence-Regular:size=20',
  font2 = 'open-iconic:size=20',
  font3 = 'Castorgate:size=12',
  font4 = 'Famirids:size=25',

    -- COLOUR SETTINGS
  default_color = 'FFFFFF',
  default_shade_color = '333333',
  -- default_outline_color = '111111',
  default_outline_color = '010101',
 color0 = 'ed2323',
  color1 = 'aaaaaa',
  color2 = '6495ee',
  color3 = 'C01900',
  color4 = '6F8812',
  color5 = '77BEFF',
  color8 = 'red',
  color9 = 'ffffff',

lua_load = '~/.conky/lua/image.lua',

};

conky.text = [[${execi 3700 bash $HOME/conky-openmeteo/Suisse/suisse.sh}${voffset -10}
${alignc}${color}${font4}${time %H:%M:%S}${font}
${voffset -9}
${alignc}${font :size=12}${time %A %d %B %Y}
${alignc}${font Bold:size=12}${color2}Paramètre Machine
 
${font :size=8}${color1}Noyau ${font3} ${color}${font :size=8} ${alignr}$kernel
${font :size=8}${color1}Utilisation ${font3} ${color}${font :size=8} ${alignr}$uptime_short
${font1}${color}s ${font Bold:size=10}${color2}Mémoire 
 ${voffset -20}
 ${font :size=8}${color1}Utilisée :${color} ${alignr}$mem
 ${font :size=8}${color1}Maximum :${color}${font} ${alignr}$memmax${font}
 ${font :size=8}${color1}RAM en % :${color}${font} ${alignr}$memperc %
 ${color3}${membar 4}${color3}
 ${voffset -20}
 ${font1}${color}x ${font Bold:size=10}${color2}CPU ${color4}
 ${voffset -15}
 ${font :size=8}${font}${color1}CPU :${color}${font} ${alignr}${color}Intel Core i7-6700K CPU @ 4.00GHz${color}${font}
 ${voffset -15}
 ${font :size=8}${font}${color1}CPU en % :${color}${font} ${alignr}${color}$cpu %
 ${color3}${cpubar 4}
 ${voffset -15}
 ${font}${color1}01 - 04:${color}${font} ${goto 100}${cpu cpu1}% ${goto 150}${cpu cpu2 }% ${goto 200}${cpu cpu3 }% ${goto 250}${cpu cpu4 }%
 ${font}${color1}05 - 08:${color}${font} ${goto 100}${cpu cpu5}% ${goto 150}${cpu cpu6 }% ${goto 200}${cpu cpu7 }% ${goto 250}${cpu cpu8 }%
 ${voffset -8}
 ${font}${color1}CPU Temp Core 1:${color}${font} ${font :size=8}${alignr}${hwmon 4 temp 1} °${color}C${color}
 ${font}${color1}CPU Temp Core 2:${color}${font} ${font :size=8}${alignr}${hwmon 4 temp 2} °${color}C${color}
 ${font1}${color}t ${font Bold:size=10}${color2}Utilisation du disque ${color4}
 ${voffset -15}
 ${font :size=8}${color1}HD / :${color}${font} ${alignr}${fs_used /} ${color1}/${color} ${fs_size /}
 ${font :size=8}${color1}HD en % :${color}${font} ${alignr} ${fs_free_perc /} %${font}
 ${voffset -12}
 ${color3}${fs_bar 4 /}

  ${alignc}${font Bold:size=12}${color2}Calendrier 
 ${font FuraCode Nerd Font:pixelsize=12}
 ${alignc}${if_match ${time %u}==1}${color0}Lu${color1} Ma Me Je Ve Sa Di ${else}\
${if_match ${time %u}==2}${color9}Lu ${color0}Ma${color1} Me Je Ve Sa Di${else}\
${if_match ${time %u}==3}${color9}Lu Ma ${color0}Me${color1} Je Ve Sa Di${else}\
${if_match ${time %u}==4}${color9}Lu Ma Me ${color0}Je${color1} Ve Sa Di${else}\
${if_match ${time %u}==5}${color9}Lu Ma Me Je ${color0}Ve${color1} Sa Di${else}\
${if_match ${time %u}==6}${color9}Lu Ma Me Je Ve ${color0}Sa${color1} Di${else}\
${if_match ${time %u}==7}${color9}Lu Ma Me Je Ve Sa ${color0}Di${color1}${else}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}  ${color9}${execpi 3600 LAR=`date +%-d`; ncal -bhM | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${alignc}  /g'}${color} 
${alignc}Bonne fête @ ${texeci 3600 wget -O - -q  https://fetedujour.fr/  --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep "<span>Fête du jour" | head -1 | cut -d">" -f4 | cut -d"<" -f1 }

${font Bold:size=12}${alignc}${color2}Météo 
${font :size=9}${color1}Lieu ${font3} ${color}${alignr}${font Bold:size=11}Sarreguemines
${font :size=9}${color1}Température ${font3} ${color}${alignr}${font Bold:size=9}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.current_condition.tmp'}°C
${font :size=9}${color1}Condition ${font3} ${color}${alignr}${font Bold:size=9}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.current_condition.condition'}
${font :size=9}${color1}Direction ${font3} ${color}${alignr}${font Bold:size=9}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.current_condition.wnd_dir'}
${font :size=9}${color1}Rafale ${font3} ${color}${alignr}${font Bold:size=9}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.current_condition.wnd_gust'} km/h
${font :size=9}${color1}Vitesse du vent ${font3} ${color}${alignr}${font Bold:size=9}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.current_condition.wnd_spd'} km/h
${font :size=9}${color1}Humidité ${font3} ${color}${alignr}${font Bold:size=9}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.current_condition.humidity'} %
${font :size=9}${color1}Pression ${font3} ${color}${alignr}${font Bold:size=9}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.current_condition.pressure' | cut -d'.' -f1} mb

${font :size=9}${color1}Date      ${font :size=8}${alignr}${goto 90}${color}${execi 3600 echo `date --date="0 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="0 day" | awk '{print $2}'`}${alignr}${goto 155}${color}${texeci 3600 echo `date --date="1 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="1 day" | awk '{print $2}'`}${alignr}${goto 220}${color}${execi 3600 echo `date --date="2 day" | awk '{print $1}' | cut -c1-3`}.${execi 3600 echo `date --date="2 day" | awk '{print $2}'`}
${font :size=9}${color8}Temp max  ${font :size=8}${alignr}${goto 100}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.tmax'}°    ${alignr}${goto 170}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_1.tmax'}°    ${alignr}${goto 230}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_2.tmax'}°
${font :size=9}${color2}Temp min  ${font :size=8}${alignr}${goto 100}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.tmin'}°    ${alignr}${goto 170}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_1.tmin'}°    ${alignr}${goto 230}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_2.tmin'}°
${font :size=9}${color1}Condition ${font :size=6}${alignr}${goto 080}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.condition'}${alignr}${goto 145}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_1.condition'}${alignr}${goto 210}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_2.condition'}

${font :size=9}${color1}Heure ${font :size=8}    ${alignr}${goto 90}${color}06.00${alignr}${goto 155}${color}12.00${alignr}${goto 220}${color}18.00
${font :size=9}${color1}Temp  ${font :size=10}   ${alignr}${goto 100}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.hourly_data."6H00".TMP2m' | awk '{printf("%d\n",$1)}'}° ${alignr}${goto 170}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.hourly_data."12H00".TMP2m' | awk '{printf("%d\n",$1)}'}° ${alignr}${goto 230}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.hourly_data."18H00".TMP2m' | awk '{printf("%d\n",$1)}'}°
#${font :size=9}${color1}Condition ${font :size=7}${alignr}${goto 90}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.hourly_data."6H00".CONDITION'}                          ${alignr}${goto 170}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.hourly_data."12H00".CONDITION'}                          ${alignr}${goto 250}${color}${execi 3600 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.fcst_day_0.hourly_data."18H00".CONDITION'}


${font :size=9}${color1} ${goto 50}${font :size=10}Soleil ↑ ${color}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.city_info.sunrise'}\
               ${color1}${goto 190}${font :size=10}↓ ${color}${execi 360 cat $HOME/conky-openmeteo/rawdata/rawsuisse | jq --raw-output '.city_info.sunset'}

 ${lua fDrawImage ~/.conky/lastrodamo/meteo/icons/computer.png 0 65 40 40}
 ${lua fDrawImage ~/.conky/lastrodamo/meteo/icons/weather.png  0 660 40 40}
 ${lua fDrawImage ~/conky-openmeteo/Suisse/now.png 80 750 140 95}
 ${lua fDrawImage $HOME/conky-openmeteo/Suisse/h6.png  075 970 55 35}
 ${lua fDrawImage $HOME/conky-openmeteo/Suisse/h12.png 135 970 55 35}
 ${lua fDrawImage $HOME/conky-openmeteo/Suisse/h18.png 205 970 55 35}

]];

Capture-d-cran-2024-01-23-18-45-39.png

@+


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

#1993 2024-01-23 22:13:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

loutch wrote:

Hello

New conky for 2024 nothing fancy .

Nice what is:

lua_load = '~/.conky/lua/image.lua',

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1994 2024-01-24 07:43:49

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Lua script to have image in conky it's better for transparent conky and clear wallpaper.

--créer par  Didier-T

require 'cairo'
home = os.getenv ('HOME')

--Fonction d'affichage
function conky_fDrawImage(path,x,y,w,h,arc)

	path = string.gsub(path, "~", home)
	path = string.gsub(path, "$HOME", home)

	local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
	
	local function fDrawImage(path,x,y,w,h,arc)
		x=x+(w/2)
		y=y+(h/2)
		local img =  cairo_image_surface_create_from_png(path)
		local w_img, h_img = cairo_image_surface_get_width (img), cairo_image_surface_get_height (img)

		local cr = cairo_create (cs)
		cairo_translate (cr, x, y)

		if arc then
			cairo_rotate (cr, arc)
		end

		cairo_scale (cr, w/w_img, h/h_img)
		cairo_set_source_surface (cr, img, -w_img/2, -h_img/2)
		cairo_paint (cr)
		cairo_destroy(cr)
		cairo_surface_destroy (img)
	end
	fDrawImage(path,x,y,w,h,arc)
	cairo_surface_destroy(cs)
	return ""
end


@+


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

#1995 2024-01-24 14:16:04

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

loutch wrote:

Hello

Lua script to have image in conky it's better for transparent conky and clear wallpaper.

You are awesome loutch, just awesome.  Thank you.
And Didier-T another conky legend.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1996 2024-01-24 14:17:35

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

So today I thought I try something with the "lua conky" ...

Installed conky:

 24 Jan 24 @ 11:00:22 ~
   $ conky -v
conky 1.18.3 compiled 2023-03-07 for Linux x86_64

copied "convert.lua" from /usr/share/doc/conky-all to

/home/sector11/bin/convert.lua

- and it has permission to run.

So I give it a run!

 24 Jan 24 @ 10:55:33 ~/bin
   $ convert.lua ~/.conkyrc ~/.conkyrc.10
bash: /home/sector11/bin/convert.lua: cannot execute: required file not found

REBOOT and try again: same results

IT IS THERE:

 24 Jan 24 @ 11:20:52 ~
   $ ff ~/ convert.lua
find folder filename
find /home/sector11/ -name convert.lua
/home/sector11/bin/convert.lua
 
 24 Jan 24 @ 11:22:11 ~
   $ 

I am not a happy camper.

EDIT EDIT EDIT:
So I'm back:

   $ conky -v
Conky 1.9.0 compiled Sun Jul  2 19:19:46 UTC 2017 for Linux 4.4.73-18.17-default (x86_64)

Last edited by Sector11 (2024-01-24 14:40:10)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1997 2024-01-24 16:31:55

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

Sector11 wrote:

So today I thought I try something with the "lua conky" ...

Installed conky:

 24 Jan 24 @ 11:00:22 ~
   $ conky -v
conky 1.18.3 compiled 2023-03-07 for Linux x86_64

copied "convert.lua" from /usr/share/doc/conky-all to

/home/sector11/bin/convert.lua

- and it has permission to run.

So I give it a run!

 24 Jan 24 @ 10:55:33 ~/bin
   $ convert.lua ~/.conkyrc ~/.conkyrc.10
bash: /home/sector11/bin/convert.lua: cannot execute: required file not found

REBOOT and try again: same results

IT IS THERE:

 24 Jan 24 @ 11:20:52 ~
   $ ff ~/ convert.lua
find folder filename
find /home/sector11/ -name convert.lua
/home/sector11/bin/convert.lua
 
 24 Jan 24 @ 11:22:11 ~
   $ 

I am not a happy camper.

EDIT EDIT EDIT:
So I'm back:

   $ conky -v
Conky 1.9.0 compiled Sun Jul  2 19:19:46 UTC 2017 for Linux 4.4.73-18.17-default (x86_64)

You need a lua interpreter to convert the syntax (here to conky v1.18.3):  big_smile

~$ apt policy lua5.2 lua5.3 lua5.4
lua5.2:
  Installiert:           5.2.4-3
  Installationskandidat: 5.2.4-3
  Versionstabelle:
 *** 5.2.4-3 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
lua5.3:
  Installiert:           (keine)
  Installationskandidat: 5.3.6-2
  Versionstabelle:
     5.3.6-2 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
lua5.4:
  Installiert:           (keine)
  Installationskandidat: 5.4.4-3
  Versionstabelle:
     5.4.4-3 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages

Offline

#1998 2024-01-24 17:17:48

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:

You need a lua interpreter to convert the syntax (here to conky v1.18.3):  big_smile

Wonder why they were not a "DEPENDS" when installing the "lua" conky.
{mumbling cuss words under breath}

 24 Jan 24 @ 14:14:55 ~
   $ apt policy lua5.2 lua5.3 lua5.4
lua5.2:
  Installed: 5.2.4-3
  Candidate: 5.2.4-3
  Version table:
 *** 5.2.4-3 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
lua5.3:
  Installed: 5.3.6-2
  Candidate: 5.3.6-2
  Version table:
 *** 5.3.6-2 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
lua5.4:
  Installed: 5.4.4-3
  Candidate: 5.4.4-3
  Version table:
 *** 5.4.4-3 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
        100 /var/lib/dpkg/status
 
 24 Jan 24 @ 14:19:02 ~
   $ 

Thank you my friend.
CHIMO!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1999 2024-01-31 12:44:42

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

The initial idea was to display the selected locations worldwide on this map with the time and current weather. Just like @Sector11 did back then with his 'Map'.

However, I quickly realized that this would be a very tedious task with ${voffset} in the configuration of the Conky to bring the locations to their position.

So I decided to do it with this configuration, which has the advantage that it is not covered by other windows.
BJ6fEtLt.png

I found the format at @chubin:

curl -s 'wttr.in/{Honululu,Vancouver,New_York,Buenos_Aires,London,Berlin,Kastoria,Moscow,Beijing,Tokyo,Melbourne,Auckland}?format=3'

In the terminal, for example, this results in:

Honululu: ☀️   +28°C
Vancouver: ☀️   +11°C
New_York: ☁️   +3°C
Buenos_Aires: ☀️   +30°C
London: ⛅️  +8°C
Berlin: ☀️   +7°C
Kastoria: ☀️   +0°C
Moscow: ☁️   +1°C
Beijing: ?  -5°C
Tokyo: ☀️   +12°C
Melbourne: ⛅️  +16°C
Auckland: ☀️   +19°C

(the forum falsifies the code)
Since the sympoles look like the font 'symbola', this fits.

The problem is that with 'sed' as well as with 'awk' I can't get rid of the boxes in the conky, which are not visible in the terminal/text file.
Other mono fonts do not change this. Does anyone have a command that cuts this out correctly.   wink

NtU0q8yt.png
sed

${texeci 600 curl -s 'wttr.in/{Honululu,Vancouver,New_York,Buenos_Aires,London,Berlin,Kastoria,Moscow,Beijing,Tokyo,Melbourne,Auckland}?format=3' > ~/TEST/Orte} 
${goto 30}${font symbola:size=20}${execpi 60 cat ~/TEST/Orte | sed -n '1p' | cut -c10-25}${goto 150}${execpi 60 cat ~/TEST/Orte | sed -n '2p' | cut -c11-26}${font}\ 
#${goto 120}${execpi 60 cat ~/TEST/Orte | sed -n '3p' | cut -c10-25} 
#${goto 120}${execpi 60 cat ~/TEST/Orte | sed -n '4p' | cut -c14-29} 
#${goto 150}${execpi 60 cat ~/TEST/Orte | sed -n '5p' | cut -c8-22} 
#${goto 180}${execpi 60 cat ~/TEST/Orte | sed -n '6p' | cut -c8-23} 
#${goto 210}${execpi 60 cat ~/TEST/Orte | sed -n '7p' | cut -c10-25} 
#${goto 240}${execpi 60 cat ~/TEST/Orte | sed -n '8p' | cut -c8-22} 
#${goto 270}${execpi 60 cat ~/TEST/Orte | sed -n '9p' | cut -c9-24} 
#${goto 300}${execpi 60 cat ~/TEST/Orte | sed -n '10p' | cut -c7-22} 
#${goto 330}${execpi 60 cat ~/TEST/Orte | sed -n '11p' | cut -c11-26} 
#${goto 360}${execpi 60 cat ~/TEST/Orte | sed -n '12p' | cut -c10-24}${font} 

awk

conky.config = {
-- pkill -xf "conky -c /home/unklar/TEST/Time_rc10" &
-- Original to conky1.9 @Sector11
-- @unklar 10.10.2019; 12.11.2023; 25.01.2024
	background = true,

-- font settings
	use_xft = true,
--font monospace:size=9
--font = 'DejaVu Sans Mono:size=10',
	font = 'monofur:size=11',
	uppercase = false,
	override_utf8_locale = true,	

	update_interval = 1,

	total_run_times = 0,

	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'skip_taskbar,skip_pager,undecorated',
--own_window_colour = '#778899',
	own_window_argb_visual = true,
--own_window_argb_value 180
--own_window_class Conky
--own_window_title TEST

	minimum_width = 1500, minimum_height = 150,
--maximum_width 356

-- position
--alignment middle_middle
--alignment top_left
	alignment = 'top_left',
	gap_x = 250,
	gap_y = 10,

-- colors
	default_color = '#ffffff',
	default_shade_color = '#000000',
	default_outline_color = '#000000',
	color0 = '#ffffff',--white
	color1 = '#144556',--dunkelblue
	color2 = '#33b0dc',--hellblue
	color3 = '#ff8c00',--dark orange
	color4 = '#00ffff',--cain
	color5 = '#c0c0c0',--silver
	color6 = '#808080',--gray

	draw_borders = false,
--stippled_borders 8
	border_inner_margin = 4,
	border_width = 1,

	draw_shades = false,
	draw_outline = false,
	use_spacer = 'left',

	double_buffer = true,
	no_buffers = true,

	cpu_avg_samples = 2,
	net_avg_samples = 2,
--max_specials 1024
	max_user_text = 48552,
	
--lua_load = '$HOME/.conky/scripts/draw_bg.lua',
--lua_draw_hook_pre = 'draw_bg 10 0 0 0 0 0x000000 0.6',

};

conky.text = [[${texeci 600 curl -s 'wttr.in/{Honululu,Vancouver,New_York,Buenos_Aires,London,Berlin,Kastoria,Moscow,Beijing,Tokyo,Melbourne,Auckland}?format=3' > ~/TEST/Orte}
${color6}${alignc}${font monofur:size=12}${tztime Pacific/Honolulu %d. %B %Y} «--${color3}|||${color}--» ${tztime Pacific/Kiritimati %d. %B %Y}${color6}${font}
${goto 30}${if_match ${tztime Pacific/Honolulu %d} == ${tztime Pacific/Kiritimati %d}}${color}Honolulu ${tztime Pacific/Honolulu %R}${color6}${else}Honolulu ${tztime Pacific/Honolulu %R}${endif} \
| ${if_match ${tztime America/Vancouver %d} == ${tztime Pacific/Kiritimati %d}}${color}Vancouver ${tztime America/Vancouver %R} ${color6}${else}Vancouver ${tztime America/Vancouver %R}${endif} \
| ${if_match ${tztime America/New_York %d} == ${tztime Pacific/Kiritimati %d}}${color}New York ${tztime America/New_York %R}${color6}${else} New York ${tztime America/New_York %R}${endif} \
| ${if_match ${tztime America/Argentina/Buenos_Aires %d} == ${tztime Pacific/Kiritimati %d}}${color}Buenos Aires ${tztime America/Argentina/Buenos_Aires %R}${color6}${else}Buenos Aires ${tztime America/Argentina/Buenos_Aires %R}${endif} \
| ${if_match ${tztime Europe/London %d} == ${tztime Pacific/Kiritimati %d}}${color}London ${tztime Europe/London %R}${color6}${else}London ${tztime Europe/London %R}${endif} \
| ${if_match ${tztime Europe/Berlin %d} == ${tztime Pacific/Kiritimati %d}}${color}Berlin ${tztime Europe/Berlin %R}${color6}${else}Berlin ${tztime Europe/Berlin %R}${endif} \
| ${if_match ${tztime Europe/Athens %d} == ${tztime Pacific/Kiritimati %d}}${color}Kastroria ${tztime Europe/Athens %R}${color6}${else}Kastoria ${tztime Europe/Athens %R}${endif} \
| ${if_match ${tztime Europe/Moscow %d} == ${tztime Pacific/Kiritimati %d}}${color}Moscow ${tztime Europe/Moscow %R}${color6}${else}Moscow ${tztime Europe/Moscow %R}${endif} \
| ${if_match ${tztime Asia/Shanghai %d} == ${tztime Pacific/Kiritimati %d}}${color}Beijing ${tztime Asia/Shanghai %R}${color6}${else}Beijing ${tztime Asia/Shanghai %R}${endif} \
| ${if_match ${tztime Asia/Tokyo %d} == ${tztime Pacific/Kiritimati %d}}${color}Tokyo ${tztime Asia/Tokyo %R}${color6}${else}Tokyo ${tztime Asia/Tokyo %R}${endif} \
| ${if_match ${tztime Australia/Melbourne %d} == ${tztime Pacific/Kiritimati %d}}${color}Melbourne ${tztime Australia/Melbourne %R}${color6}${else}Melbourne ${tztime Australia/Melbourne %R}${endif} \
| ${if_match ${tztime Pacific/Auckland %d} == ${tztime Pacific/Kiritimati %d}}${color}Auckland ${tztime Pacific/Auckland %R}${color6}${else}Auckland ${tztime Pacific/Auckland %R}${endif}

${voffset -10}${goto 30}${font symbola:size=13}${execpi 60 cat ~/TEST/Orte | awk 'NR==1 {print $2,$3}'}${goto 150}${execpi 60 cat ~/TEST/Orte | awk 'NR==2 {print $2,$3}'}\
${goto 280}${execpi 60 cat ~/TEST/Orte | awk 'NR==3 {print $2,$3}'}${goto 410}${execpi 60 cat ~/TEST/Orte | awk 'NR==4 {print $2,$3}'}\
${goto 545}${execpi 60 cat ~/TEST/Orte | awk 'NR==5 {print $2,$3}'}${goto 645}${execpi 60 cat ~/TEST/Orte | awk 'NR==6 {print $2,$3}'}\
${goto 765}${execpi 60 cat ~/TEST/Orte | awk 'NR==7 {print $2,$3}'}${goto 878}${execpi 60 cat ~/TEST/Orte | awk 'NR==8 {print $2,$3}'}\
${goto 980}${execpi 60 cat ~/TEST/Orte | awk 'NR==9 {print $2,$3}'}${goto 1090}${execpi 60 cat ~/TEST/Orte | awk 'NR==10 {print $2,$3}'}\
${goto 1200}${execpi 60 cat ~/TEST/Orte | awk 'NR==11 {print $2,$3}'} ${goto 1325}${execpi 60 cat ~/TEST/Orte | awk 'NR==12 {print $2,$3}'}${font}
]];

-----------------------------------
Edit: @chubin also has a json format.

curl wttr.in/Berlin?format=j1

However, a code of 1367 lines is output there for one location.

This can be shortened with

curl wttr.in/Berlin?format=j2

and there are only 137 lines left.

However, the method of cutting out and displaying seems even more complicated to me.

Last edited by unklar (2024-01-31 12:58:33)

Offline

#2000 2024-01-31 14:55:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

I get it messed up even in the terminal:
2024-01-31-114631.jpg

but not here:

 31 Jan 24 @ 11:42:11 ~
   $ curl -s 'wttr.in/{Honululu,Vancouver,New_York,Buenos_Aires,London,Berlin,Kastoria,Moscow,Beijing,Tokyo,Melbourne,Auckland}?format=3'
Honululu: ☀️   +29°C
Vancouver: ?   +11°C
New_York: ☁️   +2°C
Buenos_Aires: ☀️   +25°C
London: ☁️   +8°C
Berlin: ☁️   +5°C
Kastoria: ☀️   +8°C
Moscow: ☁️   -1°C
Beijing: ☀️   -1°C
Tokyo: ?   +15°C
Melbourne: ⛅️  +17°C
Auckland: ☁️   +20°C
 
 31 Jan 24 @ 11:42:37 ~
   $ 

Cannot get it to work in my test conky either.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB