You are not logged in.

#1601 2022-01-09 14:31:49

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

Re: Show us your conky

@ unklar

Danke

Keine Woche nur einige Tage 4-5 .

@+


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

#1602 2022-01-10 03:34:36

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

Re: Show us your conky

4 or 5 days ... even more impressed.

I don't think my system would handle that for the graphics.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1603 2022-01-10 07:34:30

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

Re: Show us your conky

Hello

I don't really have any credit, most of it was done by Met30 creator of the pack so I had an excellent base to work from.


je n'ai pas vraiment de mérite , l'essentiel a été fait par Met30 createur du pack donc j'avais une excellente base de travail

@+


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

#1604 2022-01-10 10:04:35

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

Re: Show us your conky

Sector11 wrote:

4 or 5 days ... even more impressed.

I don't think my system would handle that for the graphics.

You should trust your computer, after all, the image was made in 1.9 specially.  big_smile
Tu devrais faire confiance à ta machine, après tout, elle a été faite spécialement en 1.9   big_smile

Offline

#1605 2022-01-10 20:20:03

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

Re: Show us your conky

Hello

No conky-clic just 3 dashbord

drone 50 png

Capture-d-cran-2022-01-10-21-09-40.png

Capture-d-cran-2022-01-10-21-10-02.png

radiotrayng

Capture-d-cran-2022-01-10-21-10-31.png

Capture-d-cran-2022-01-10-21-11-17.png

slideshow

Capture-d-cran-2022-01-10-21-11-34.png

Capture-d-cran-2022-01-10-21-11-49.png

@+

Last edited by loutch (2022-01-10 20:22:17)


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

#1606 2022-01-10 23:51:23

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

Re: Show us your conky

cool Just plain  cool


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1607 2022-02-08 11:37:39

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

Re: Show us your conky

I thought I should get to work on bringing really (for me) sophisticated and visually very good Conky configurations back "up to date". So that these do not disappear e.g. due to discontinued weather services in the "eternal hunting grounds".

With these I have started.
9cXElTat.png
This is on antiX, because here still the Syntax1.9 is delivered, which is recognition value. Converting the configuration to syntax1.10 is generally no problem with the convert.lua script from /usr/share/doc/conky.

tZCCqWlt.png
This clock originally ran with the intellicast weather service. It was practically a joint development by @mrpeachy; Sector11; arclance; McLovin and Didier-T from the crunchbang forum. For several years this service is no longer available.
I have equipped it with the Accuweather service.

needed:
-the scripts from @TeoBigusGeekus Accuweather and MoonGiant
-the font monofur
-these configurations

conky2015

# pkill -xf "conky -c /media/DATEN/francescoPC/Conky/Sector11/12-1-Sector11-1/McLovin/McLovin_Chronograph.conky" &
# 2012 Sector11
# mühsam gesucht @unklar im Dec.2016 | auf Accuweather im Feb.2022
######################
# - Conky settings - #
######################

background yes
update_interval 1
cpu_avg_samples 1
total_run_times 0
override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 1024 #10240
imlib_cache_size 0 #10240

minimum_size 350 350
#maximum_width 350

#####################
# - Text settings - #
#####################
use_xft yes
xftfont monofur:size=10
#xftfont Antipasto:size=10
#xftfont CorporateMonoExtraBold:size=10
xftalpha 1 #.8

uppercase no

# Text alignment, other possible values are commented
#alignment middle_left
#alignment middle_middle
#alignment middle_right
#alignment top_middle
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment bottom_middle

gap_x 50
gap_y 50


######################
# - Color settings - #
######################
default_color c3c3c3
default_shade_color gray
default_outline_color black

color0 c3c3c3 #mid gray
color1 FF0000 #red
color2 09FF00 #bright green
color3 007EFF #bright blue
color4 E3E3E3 #very light gray
color5 FF8600 #an orange shade
color6 CA8718 #a dust like color
color7 FFE500 #a darker yellow color
color8 C3FF00 #lime green
color9 00FCFF #sky blue
#############################
# - Window specifications - #
#############################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager  #undecorated,
#own_window_colour gray
#own_window_class Conky
#own_window_title Chronograph
#own_window_argb_visual yes
#own_window_argb_value 200


border_inner_margin 0
border_outer_margin 0

#########################
# - Graphics settings - #
#########################
draw_shades no #yes
draw_outline no
draw_borders no
stippled_borders 0
draw_graph_borders no

####################
# - LUA Settings - #
####################
lua_load ~/LUA/Chronograph.lua
lua_draw_hook_post main


TEXT
${texeci 500 $HOME/Moongiant_conky_script/moongiant}
${image $HOME/Moongiant_conky_script/0.png -p 140,60 -s 70x70}
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f2015}
${image $HOME/Accuweather_conky_script/forecast_2015/wind_0.png -p 34,113 -s 120x120}
${image $HOME/Accuweather_conky_script/forecast_2015/forecast_0.png -p 115,203 -s 125x75}\


${goto 70}${font monofur:size=9}${execpi 600 sed -n '21p' $HOME/Moongiant_conky_script/raw}${font}

${voffset 130}${goto 50}Wind ${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond}${goto 250}Temp ${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}°
${goto 60}@ ${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}${goto 203}RealFeel ${color7}±${texeci 600 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond}°${color}
${alignc} ${font monofur:size=9}${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/daily_forecast}${font}
${goto 90}P ${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}${goto 200}S ${texeci 600 sed -n '13p' $HOME/Accuweather_conky_script/curr_cond}
${goto 120}H ${texeci 600 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}${goto 180}W ${texeci 600 sed -n '21p' $HOME/Accuweather_conky_script/curr_cond}
${voffset -130}

conky2016 (lower TEXT; above is identical)

TEXT
${texeci 500 $HOME/Moongiant_conky_script/moongiant}
${image $HOME/Moongiant_conky_script/0.png -p 140,60 -s 70x70}
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f2016}
${image $HOME/Accuweather_conky_script/forecast_2016/wind_0.png -p 54,134 -s 80x80}
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png -p 115,190 -s 105x95}\


${goto 70}${font monofur:size=9}${execpi 600 sed -n '21p' $HOME/Moongiant_conky_script/raw}${font}

${voffset 130}${goto 50}Wind ${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond}${goto 250}Temp ${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}°
${goto 60}@ ${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}${goto 203}RealFeel ${color7}±${texeci 600 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond}°${color}
${alignc} ${font monofur:size=9}${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/daily_forecast}${font}
${goto 90}P ${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}${goto 200}S ${texeci 600 sed -n '13p' $HOME/Accuweather_conky_script/curr_cond}
${goto 120}H ${texeci 600 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}${goto 180}W ${texeci 600 sed -n '21p' $HOME/Accuweather_conky_script/curr_cond}
${voffset -130}

Chronograph.lua

--[[ multiple analogue clocks by mrpeachy - 18 Jun 2012
 21 Jun 2012 - Chronograph modifications by Sector11
 22 Jun 2012 - again with mrpeachy's help day names, numbers and month names
 02 Nov 2012 - edited by McLovin to add the outside rings, and minute numbers
 12 Nov 2012 - memory leak plugged - mrpeachy via arclance

use in conkyrc

lua_load /path/Chronograph.lua
lua_draw_hook_pre main
TEXT


-- INDEX (use find with):

-- ###### 12 OR 24 CLOCK FACE
-- SET BORDER OPTIONS ######  ALL CLOCKS

-- ### START CLOCK A ######################################
-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
-- CLOCK A HOUR HAND
-- CLOCK A MINUTE HAND SETUP
-- CLOCK A SECOND HAND SETUP
-- CLOCK A ###### 24 HR TIME

-- ### START DIAL B ### Top - Week Day Names Dial #########
-- ### START DIAL C ### Right - Month Names Dial ##########
-- ### START DIAL D ### Left - Day Numbers Dial ###########

-- ### START CLOCK E ######################################
-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
-- CLOCK E HOUR HAND
-- CLOCK E MINUTE HAND SETUP
-- CLOCK E SECOND HAND SETUP
-- CLOCK E ###### 12 HR TIME

NOTE:  Putting ### CLOCK A ### last insures that it's functions are written
       over the other dials.
]]

require 'cairo'

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
-- ########################################################
-- SETTINGS AREA
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image ~/Conky/images/red_1.png -p 0,0 -s 35x35}")

-- ###### 12 OR 24 CLOCK FACE #############################
local clock_type_A=12 -- Large Main 24 HR Clock
local clock_type_E=12 -- Bottom - 12 HR Clock

-- ###### CLOCK SETTINGS ##################################
-- SET BORDER OPTIONS FOR "CLOCKS" ########################
local clock_border_width=0
-- set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1  -- full opaque white
-- gap from clock border to minute marks
local b_to_m=1

-- ########################################################
-- ### START DIAL B ### Top - Week Day Names Dial #########
-- DIAL POSITION FOR TEXT
local center_x=175
local center_y=95
local radius=50
-- FONT
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,42/255,149/255,180/255,1) --(cr,194/255,204/255,255/255,1)  --(cr,42/255,149/255,180/255,1)	-- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"Sun","Mon","Tue","Wed","Thr","Fri","Sat",}		-- English
--text_days={"Dom","Lun","Mar","Mie","Jue","Vie","Sab",}		-- Spanish
--text_days={"dim","lun","mar","mer","jeu","ven","sam",}		-- French
for i=1,7 do
-- work out points
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
--local extents=cairo_text_extents_t:create()
--tolua.takeownership(extents)
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
cairo_set_source_rgba (cr,195/255,195/255,195/255,1)
local radius=38
for i=1,7 do
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current day of week
cairo_set_source_rgba (cr,1,0,0,1)
local hand_length=30
local day_number=tonumber(os.date("%w"))
local point=(math.pi/180)*((360/7)*(day_number))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
local hand_width=2
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)

-- ### END DIAL B #########################################

-- ########################################################
-- ### START DIAL C ### Right - Month Names Dial ##########
-- DIAL POSITION FOR TEXT
local center_x=260
local center_y=175
local radius=45
-- FONT
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,42/255,149/255,180/255,1) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",}  -- English
--text_days={"Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic",} -- Spanish
--text_days={"jan","fév","mar","avr","mai","jui","jul","aôu","sep","oct","nov","déc",} -- French
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
--local extents=cairo_text_extents_t:create()
--tolua.takeownership(extents)
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
cairo_set_source_rgba (cr,169/255,169/255,169/255,1)
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current month
cairo_set_source_rgba (cr,1,0,0,1)
local this_month=tonumber(os.date("%m"))
local hand_length=28 --radius for this calculation
local point=(math.pi/180)*((360/12)*(this_month-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)

-- ### END CLOCK C ########################################

-- ########################################################
-- ### START DIAL D ### Left - Day Numbers Dial ###########
-- GET NUMBER OF DAYS IN CURRENT MONTH
-- calculate Feb, then set up table
year4num=os.date("%Y")
t1=os.time({year=year4num,month=03,day=01,hour=00,min=0,sec=0});
t2=os.time({year=year4num,month=02,day=01,hour=00,min=0,sec=0});
febdaynum=tonumber((os.difftime(t1,t2))/(24*60*60))
-- MONTH TABLE
monthdays={31,febdaynum,31,30,31,30,31,31,30,31,30,31}
this_month=tonumber(os.date("%m"))
number_days=monthdays[this_month]
-- TEXT positioning
local center_x=95
local center_y=175
local radius=50
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 9)
cairo_set_source_rgba (cr,42/255,149/255,180/255,1) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
for i=1,number_days do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
--only print even numbers
if math.mod(i, 1) == 0 then
--set text when even
text=string.format("%01d",i) --formats numbers to double digits
else
--set text when odd
text=""
end--odd even matching
--local extents=cairo_text_extents_t:create()
--tolua.takeownership(extents)
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
cairo_set_source_rgba (cr,169/255,169/255,169/255,1)
local radius=42
for i=1,number_days do
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current DAY
cairo_set_source_rgba (cr,1,0,0,1)
local this_day=tonumber(os.date("%d"))
local hand_length=40--radius for this calculation
local point=(math.pi/180)*((360/number_days)*(this_day-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)
-- ### END CLOCK D ########################################

-- ########################################################
-- ### START CLOCK E ######################################
-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
local number_marks_E=12
-- set mark length
local m_length_E=0
-- set mark width
local m_width_E=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,0,1-- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK E HOUR HAND
-- set length of hour hand
hh_length_E=25
-- set hour hand width
hh_width_E=2
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
hhr,hhg,hhb,hha=1,1,0,1-- fully opaque white
-- SETUP MINUTE HANDS #####################################
-- CLOCK E MINUTE HAND SETUP
-- set length of minute hand
mh_length_E=35
-- set minute hand width
mh_width_E=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,1,0,1-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK E SECOND HAND SETUP
-- set length of seconds hand
sh_length_E=32
-- set hour hand width
sh_width_E=1
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK E ###### 12 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=45
clock_centerx=175
clock_centery=260
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,169/255,169/255,169/255,1)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_E
-- set line cap type
cairo_set_line_cap  (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_E)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR SECOND MARKS
for i=1,number_marks_E do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line-- MARKS AROUND CLOCK A
cairo_stroke (cr)
end-- of for loop
--[[ TIME CALCULATIONS CLOCK E
if clock_type_E==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_E==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds and draw it
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_E))-- use equation ~ eliminate decimals
-- set radius to calculate hand points
radius=hh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_E)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_E)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)
-- DRAW SECOND HAND
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_E)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr)


-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=260
local radius=45
-- FONT
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 11)
cairo_set_source_rgba (cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
--text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
-- FOR A 12 HOUR CLOCK WITH THE NUMBERS 13-00
text_days={"00","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
--local extents=cairo_text_extents_t:create()
--tolua.takeownership(extents)
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end ]]

-- ### END CLOCK E ########################################
-- ########################################################
-- ### START CLOCK A ######################################
-- SET MARKS ##############################################
-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
local number_marks_A=12
-- set mark length
local m_length_A=0
-- set mark width
local m_width_A=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1 -- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK A HOUR HAND
-- set length of hour hand
hh_length_A=120
-- set hour hand width
hh_width_A=4
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
cairo_set_source_rgba (cr,69/255,169/255,19/255,1)
-- SETUP MINUTE HANDS #####################################
-- CLOCK A MINUTE HAND SETUP
-- set length of minute hand
mh_length_A=140
-- set minute hand width
mh_width_A=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,0,0,1-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK A SECOND HAND SETUP
-- set length of seconds hand
sh_length_A=150
-- set hour hand width
sh_width_A=2
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK A ###### 12 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=200
clock_centerx=175
clock_centery=175
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_A
-- set line cap type
cairo_set_line_cap  (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_A)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR HOUR MARKS
for i=1,number_marks_A do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line
cairo_stroke (cr)
end-- of for loop
-- HOUR MARKS
-- TIME CALCULATIONS CLOCK A
if clock_type_A==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_A==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_A))-- use equation ~ eliminate decimals
-- set radius to calculate hand points
radius=hh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of hour hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_A)
--cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_source_rgba (cr,169/255,169/255,169/255,1)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds just as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_A)
--cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_source_rgba (cr,169/255,169/255,169/255,1)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)
-- DRAW SECOND HAND
--[[
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))BOLD
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_A)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr)
]]
--[[ ####################################################################
-- outer part of a Hour hand
--position
local center_x=175
local center_y=175
--get seconds value
local seconds=tonumber(os.date("%I"))
--calculate rotation of second hand in degrees
local arc=(math.pi/180)*((360/12)*hours)
--calculate point 1
local radius1=90
local x1=0+radius1*math.sin(arc)
local y1=0-radius1*math.cos(arc)
--calculate point 2
local radius2=140
local x2=0+radius2*math.sin(arc)
local y2=0-radius2*math.cos(arc)
--draw line connecting points
cairo_move_to (cr, center_x+x1,center_y+y1)
cairo_line_to (cr, center_x+x2, center_y+y2)
cairo_set_source_rgba (cr,255/255,0/255,0/255,1)
cairo_stroke (cr)]]
-- ####################################################################
-- outer part of a second hand
--position
local center_x=175
local center_y=175
--get seconds value
local seconds=tonumber(os.date("%S"))
--calculate rotation of second hand in degrees
local arc=(math.pi/180)*((360/60)*seconds)
--calculate point 1
local radius1=90
local x1=0+radius1*math.sin(arc)
local y1=0-radius1*math.cos(arc)
--calculate point 2
local radius2=140
local x2=0+radius2*math.sin(arc)
local y2=0-radius2*math.cos(arc)
--draw line connecting points
cairo_move_to (cr, center_x+x1,center_y+y1)
cairo_line_to (cr, center_x+x2, center_y+y2)
cairo_set_source_rgba (cr,255/255,0/255,0/255,1)
cairo_stroke (cr)

-- ####################################################################
-- inner part of a second hand
--position
local center_x=175
local center_y=175
--get seconds value
local seconds=tonumber(os.date("%S"))
--calculate rotation of second hand in degrees
local arc=(math.pi/180)*((360/60)*seconds)
--calculate point 1
local radius1=1
local x1=0+radius1*math.sin(arc)
local y1=0-radius1*math.cos(arc)
--calculate point 2
local radius2=90
local x2=0+radius2*math.sin(arc)
local y2=0-radius2*math.cos(arc)
--draw line connecting points
cairo_move_to (cr, center_x+x1,center_y+y1)
cairo_line_to (cr, center_x+x2, center_y+y2)
cairo_set_source_rgba (cr,169/255,169/255,169/255,1)
cairo_stroke (cr)
-- ####################################################################
-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=175
local radius=165
-- FONT
--[[cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 15)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,24 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/24)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
--local extents=cairo_text_extents_t:create()
--tolua.takeownership(extents)
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=150
for i=1,24 do
local point=(math.pi/180)*((360/24)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- ####################################################################]]

-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=175
local radius=165
-- FONT
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 20)
cairo_set_source_rgba (cr,42/255,149/255,180/255,1) --(cr,42/255,149/255,180/255,1)_light blue --(cr,194/255,204/255,255/255,1)_light-gray	-- (cr,1,1,1,1)_white
-- TABLE OF TEXT -- in order
text_days={"12","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
--local extents=cairo_text_extents_t:create()
--tolua.takeownership(extents)
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
--[[ CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end]]

-- POSITION FOR TEXT MINUTE NUMBERS
local center_x=175
local center_y=175
local radius=160
-- FONT
cairo_select_font_face (cr, "monofur", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,1,1,1,128/255) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"","1","2","3","4","","6","7","8","9","","11","12","13","14","","16","17","18","19","","21","22","23","24","","26","27","28","29","","31","32","33","34","","36","37","38","39","","41","42","43","44","","46","47","48","49","","51","52","53","54","","56","57","58","59","",}
for i=1,60 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/60)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end

-- INNER POINTS POSITION, radius smaller than text circle
cairo_set_source_rgba (cr,1,1,1,1)
local radius=150
for i=1,60 do
local point=(math.pi/180)*((360/60)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
--[[ HOUR POINTS CIRCLES,  ##########Uncoment section to draw rings around numbers
local radius=162
for i=1,60 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,12,0,2*math.pi)
cairo_stroke (cr)
end]]
-- ### END CLOCK A ########################################

-- ########################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function 

Edit: "v9000" cutout   wink

Last edited by unklar (2022-06-19 11:49:24)

Offline

#1608 2022-02-08 16:59:13

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

Re: Show us your conky

WOW!!!!   beautiful!  Well done unklar.

BTW: v9000 is not a person.  It was a lua script MrPeachy wrote

big_smile

Must get that going again.  I loved that clock!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1609 2022-02-08 18:15:32

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

Re: Show us your conky

Sector11 wrote:

WOW!!!!   beautiful!  Well done unklar.

BTW: v9000 is not a person.  It was a lua script MrPeachy wrote

big_smile

Must get that going again.  I loved that clock!

Aha, sorry, I always went by this entry in the scripts and thought @o9000 was identical to him.  cool

--[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbanglinux.org/forums/topic/16100/weather-in-conky/

snip

Offline

#1610 2022-02-08 20:53:39

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

Re: Show us your conky

It's OK.  v9000 lasted quite a while.

aka means Also Known As: v9000

So the v9000.lua script is "the weather only" lua script, it got weather from wunderground.

I take it from the quote you have it.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1611 2022-02-08 21:07:05

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

Re: Show us your conky

I found this clock that required 'minor' tweaks to get running.
2022-02-08-180051-S11.jpg
Tweaks were: CPUs and temps, the clock worked outta the box.

Now I'm going to grab unklar's work above and make a weather clock again.

Thank you unklar.

 08 Feb 22 @ 17:46:46 ~
   $ ff /media/5 v9000*.lua
find folder filename
find /media/5 -name v9000*.lua
/media/5/Conky/templates/v9000_template_new.lua
/media/5/Conky/LUA/v9000.lua
/media/5/v9000_mine/TARS/v9_test/v9000.lua
/media/5/v9000_mine/v9000.lua
/media/5/v9000/v9000_es.lua
/media/5/v9000/destripato/v9000.lua
/media/5/v9000/v9000-Alert.lua
/media/5/v9000/v9000.lh.lua
/media/5/v9000/v9000.lua
/media/5/v9000/v9000_orig.lua
/media/5/v9000/The_New_v9000_Script/v9000.lua
/media/5/conky/setherd/v9000.lua
/media/5/conky/LCARS/v9000.lua
/media/5/conky/wea_DR/v9000.lua
/media/5/conky/Il_Tempo/v9000.lua
/media/5/conky/lowph/v9000.lua
/media/5/conky/jed/v9000-10d-template.lua
/media/5/conky/cyber-v9000/v9000.lua
/media/5/v9000i/v9000_config.lua
/media/5/v9_test/v9000_template_new.lua
/media/5/v9_test/additional_files/v9000.lua

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1612 2022-02-08 21:46:28

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

Re: Show us your conky

Sector11 wrote:

It's OK.  v9000 lasted quite a while.

aka means Also Known As: v9000

So the v9000.lua script is "the weather only" lua script, it got weather from wunderground.

I take it from the quote you have it.  smile

^Yes, for a friend I have it here and it has the name
chrono-weather.lua

--[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbanglinux.org/forums/topic/16100/weather-in-conky/

 the file:
 http://dl.dropbox.com/u/19008369/v9000.tar.gz

 mrppeachys LUA Tutorial
 http://crunchbanglinux.org/forums/topic/17246/how-to-using-lua-scripts-in-conky/

--sun_rise[n]
--sun_set[n]
--moon_rise[n]
--moon_set[n]
--now["time"]
--now["fc_hour1_time"]
--now["fc_hour2_time"]
--now["fc_hour3_time"]

]]
_G.weather_script = function()--#### DO NOT EDIT THIS LINE ##############
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="monofur"--font must be in quotes
default_font_size=16
default_color=0xffffff	--white
default_alpha=1		--fully opaque
default_image_width=60
default_image_height=60
-- ## New Options ###
default_face="normal"
-- "normal" for normal/normal
-- "bold" for normal/bold
-- "italic" for italic/normal
-- "bolditalic" for italic/bold
--END OF DEFAULTS #######################################################
--[[ SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="monofur"--font must be in quotes
default_font_size=15
default_color=0xffffff--white
default_alpha=1--fully opaque
default_image_width=50
default_image_height=50
--END OF DEFAULTS #######################################################]]
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE
-- Icon and Image section
image({x=120,y=180,h=110,w=110,file=now["weather_icon"]})
image({x=52,y=132,h=85,w=85,file=now["wind_icon"]})
image({x=140,y=60,h=70,w=70,file=moon_icon[1]})

-- Temp / FeelsLike & CONDITIONS TEXT
out({c=0xE3E3E3,a=1,f="monofur",fs=13,x=60,y=90,txt=moon_phase[1] })
out({c=0x21768E,a=1,f="monofur",fs=30,x=265,y=253,txt=now["temp"].."°"})
out({c=0xE3E3E3,a=1,f="monofur",fs=18,x=220,y=249,txt="Temp:"})
out({c=0x21768E,a=1,f="monofur",fs=20,x=263,y=270,txt=now["feels_like"].."°"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=210,y=270,txt="Feels:"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=215,y=283,txt="Hi:"})
out({c=0xC94029,a=1,f="monofur",fs=15,x=255,y=283,txt=high_temp[1].."°"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=210,y=295,txt="Lo:"})
out({c=0x21768E,a=1,f="monofur",fs=15,x=240,y=295,txt=low_temp[1].."°"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=40,y=128,txt="Wind:"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=50,y=240,txt=now["wind_nesw"].." @"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=90,y=240,txt=now["wind_mph"]})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=55,y=255,txt="Wind Chill:"}) 
out({c=0x21768E,a=1,f="monofur",fs=15,x=145,y=255,txt=now["wind_chill"].."°"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=70,y=270,txt="Hum:"})
out({c=0x21768E,a=1,f="monofur",fs=15,x=110,y=270,txt=now["humidity"].."%"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=80,y=285,txt="Precip:"})
out({c=0x21768E,a=1,f="monofur",fs=15,x=140,y=285,txt=precipitation[1].."%"})
out({c=0xE3E3E3,a=1,f="monofur",fs=15,x=100,y=300,txt="Dew-P:"})
out({c=0x21768E,a=1,f="monofur",fs=15,x=155,y=300,txt=now["dew_point"].."°"})
--########################################################################################
-- 3 hour output
out({c=0x94C2FF,a=1,f="monofur",fs=16,x=25,y=380,txt="Next 3"})
out({c=0x94C2FF,a=1,f="monofur",fs=16,x=25,y=395,txt="Hours"})
-- 1st hour
out({c=0xFF9600,x=75,y=365,txt=now["fc_hour1_time"]..":00"})
image({w=60,h=60,x=60,y=365,file=now["fc_hour1_wicon"]}) -- image({w=30,h=30,x=223,y=55,file="/home/sector11/Conky/images/red_1.png"})
out({c=0xAFAFAF,x=85,y=425,txt=now["fc_hour1_temp"] .."°"})
-- 2nd hour
out({c=0xFF9600,x=178,y=365,txt=now["fc_hour2_time"]..":00"})
image({w=60,h=60,x=160,y=365,file=now["fc_hour2_wicon"]}) -- image({w=30,h=30,x=223,y=130,file="/home/sector11/Conky/images/red_1.png"})
out({c=0xAFAFAF,x=185,y=425,txt=now["fc_hour2_temp"] .."°"})
-- 3rd hour
out({c=0xFF9600,x=278,y=365,txt=now["fc_hour3_time"]..":00"})
image({w=60,h=60,x=260,y=365,file=now["fc_hour3_wicon"]}) -- image({w=30,h=30,x=223,y=215,file="/home/sector11/Conky/images/red_1.png"})
out({c=0xAFAFAF,x=285,y=425,txt=now["fc_hour3_temp"] .."°"})


--########################################################################################
for i=start_day,number_of_days-(start_day-1) do --start of day repeat, do not edit #######
tlx=top_left_x_coordinate[i] --sets top left x position for each repeat ##################
tly=top_left_y_coordinate[i] --sets top left y position for each repeat ##################
--########################################################################################

--########################################################################################
end--of forecast repeat section ##########################################################
--########################################################################################

--########################################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
end--of weather_display function do not edit this line ##################
--####################################################################### 

Tweaks were: CPUs and temps, the clock worked outta the box.

I really don't remember ever seeing a configuration of yours didn't work after unpacking.  big_smile

Offline

#1613 2022-02-09 10:48:25

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

Re: Show us your conky

https://forums.bunsenlabs.org/viewtopic … 76#p120476
o5goPcwt.png

Originally this widget goes back to that.
I have added the latest Accuweather service to it.

it needs:
-the Accuweather script from @TBG
-the images
-the fonts Liberation Mono and LED_Mono
-these configuration files

2015

##pkill -xf "conky -q -c /home/unklar/S11/ConkyHTCSpill/conkyrc" &
##Original von Sector11 Mai 2016
##modifiziert von unklar Juni 2016, September 2016, April 2021, Februar 2022
##Idee von HTC Januar 2012  http://grynays.deviantart.com/art/Conky-HTC-Home-Spill-290958248

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,undecorated,below   #,sticky
#own_window_colour 000000
#own_window_class Conky
#own_window_title HTCSpill
#own_window_argb_visual yes 
#own_window_argb_value 100

minimum_size 235 240
maximum_width 235

gap_x 50
gap_y 35
alignment bl #br

override_utf8_locale yes

use_xft yes
xftfont Liberation Mono:bold:size=8  #9
#xftfont Fantasque Sans Mono:bold:size=9
#xftfont Monofur:bold:size=9
#xftfont DejaVu Sans Mono:bold:size=9
xftalpha 1.0

draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 98FB98 #PaleGreen
color1 778899 #LightSlateGray
color2 FFD700 #Gold
color3 B0E0E6 #PowderBlue
color4 F4A460 #SandyBrown
color5 DEB887 #BurlyWood
color6 00BFFF #DeepSkyBlue
color7 5F9EA0 #CadetBlue
color8 FFA500 #Orange
color9 FF4500 #OrangeRed

#draw_borders yes
#stippled_borders 5
border_inner_margin 0
border_outer_margin 0
#border_width 2
#draw_graph_borders yes 

background yes

use_spacer none

no_buffers yes

imlib_cache_size 0
#imlib_cache_flush_interval 900

double_buffer yes

##---LUA---##
#lua_load ~/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
update_interval 1

#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.8}\
TEXT
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f2015}\
${image $HOME/ConkyHTCSpill/images/base2.png -p -12,30 -s 260x145}\
${image $HOME/ConkyHTCSpill/images/base2.png -p -12,180 -s 260x62}\
${image $HOME/ConkyHTCSpill/images/flip_bg.png -p 18,7 -s 100x110}\
${image $HOME/ConkyHTCSpill/images/flip_bg.png -p 118,7 -s 100x110}\


${font LED_Mono:size=60}${color1}${goto 26}${time %H}${goto 126}${time %M}${font}
${goto 28}${texeci 600 sed -n '4p' $HOME/Accuweather_conky_script/curr_cond|cut -c-13}\
${goto 135}${time %a.}${time %e.}${time %b}${color}
 ${color0}${texeci 600 sed -n '1p' $HOME/Accuweather_conky_script/aktualisiert}${color}
 Wind ${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond}\
${alignr 5}${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}° \
${color2}±${texeci 600 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond}°${color}
 @ ${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}\
${alignr 10}H ${texeci 600 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}
 ${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}\
${alignr 5}${color9}${texeci 600 sed -n '3p' $HOME/Accuweather_conky_script/daily_forecast}° \
${color7}${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/daily_forecast}°${color}
${image $HOME/Accuweather_conky_script/forecast_2015/wind_0.png -p 53,110 -s 60x60}\
${image $HOME/Accuweather_conky_script/forecast_2015/forecast_0.png -p 85,103 -s 125x75}\
${image $HOME/Accuweather_conky_script/forecast_2015/forecast_2.png -p 5,175 -s 46x27}\
${image $HOME/Accuweather_conky_script/forecast_2015/forecast_3.png -p 51,175 -s 46x27}\
${image $HOME/Accuweather_conky_script/forecast_2015/forecast_4.png -p 97,175 -s 46x27}\
${image $HOME/Accuweather_conky_script/forecast_2015/forecast_5.png -p 143,175 -s 46x27}\
${image $HOME/Accuweather_conky_script/forecast_2015/forecast_6.png -p 188,175 -s 46x27}\
${voffset 10}${alignc}#${voffset -8}



${goto 6}${font Liberation Mono:bold:size=8}${texeci 600 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 52}${texeci 600 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 99}${texeci 600 sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 144}${texeci 600 sed -n '32p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '33p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 190}${texeci 600 sed -n '39p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '40p' $HOME/Accuweather_conky_script/daily_forecast}° ${font}
${goto 12}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z | cut -c1-3}\
${goto 58}${texeci 600 sed -n '15p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}\
${goto 105}${texeci 600 sed -n '22p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}\
${goto 150}${texeci 600 sed -n '29p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}\
${goto 196}${texeci 600 sed -n '36p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}

2016 (lower TEXT; above is identical)

TEXT
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f2016}\
${image $HOME/ConkyHTCSpill/images/base2.png -p -12,30 -s 260x145}\
${image $HOME/ConkyHTCSpill/images/base2.png -p -12,180 -s 260x62}\
${image $HOME/ConkyHTCSpill/images/flip_bg.png -p 18,7 -s 100x110}\
${image $HOME/ConkyHTCSpill/images/flip_bg.png -p 118,7 -s 100x110}\


${font LED_Mono:size=60}${color1}${goto 26}${time %H}${goto 126}${time %M}${font}
${goto 28}${texeci 600 sed -n '4p' $HOME/Accuweather_conky_script/curr_cond|cut -c-13}\
${goto 135}${time %a.}${time %e.}${time %b}${color}
 ${color0}${texeci 600 sed -n '1p' $HOME/Accuweather_conky_script/aktualisiert}${color}
 Wind ${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond}\
${alignr 5}${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}° \
${color2}±${texeci 600 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond}°${color}
 @ ${texeci 600 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}\
${alignr 10}H ${texeci 600 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}
 ${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}\
${alignr 5}${color9}${texeci 600 sed -n '3p' $HOME/Accuweather_conky_script/daily_forecast}° \
${color7}${texeci 600 sed -n '5p' $HOME/Accuweather_conky_script/daily_forecast}°${color}
${image $HOME/Accuweather_conky_script/forecast_2016/wind_0.png -p 70,120 -s 35x35}\
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png -p 110,100 -s 85x80}\
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_2.png -p 5,175 -s 35x35}\
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_3.png -p 51,175 -s 35x35}\
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_4.png -p 97,175 -s 35x35}\
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_5.png -p 143,175 -s 35x35}\
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_6.png -p 188,175 -s 35x35}\
${voffset 10}#${alignc}#${voffset -8}



${goto 6}${font Liberation Mono:bold:size=8}${texeci 600 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 52}${texeci 600 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 99}${texeci 600 sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 144}${texeci 600 sed -n '32p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '33p' $HOME/Accuweather_conky_script/daily_forecast}°\
${goto 190}${texeci 600 sed -n '39p' $HOME/Accuweather_conky_script/daily_forecast}°/\
${texeci 600 sed -n '40p' $HOME/Accuweather_conky_script/daily_forecast}° ${font}
${goto 12}${texeci 600 sed -n '8p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z | cut -c1-3}\
${goto 58}${texeci 600 sed -n '15p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}\
${goto 105}${texeci 600 sed -n '22p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}\
${goto 150}${texeci 600 sed -n '29p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}\
${goto 196}${texeci 600 sed -n '36p' $HOME/Accuweather_conky_script/daily_forecast|tr a-z A-Z| cut -c1-3}

Last edited by unklar (2022-06-19 11:53:20)

Offline

#1614 2022-02-09 12:53:03

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

Re: Show us your conky

unklar wrote:

I really don't remember ever seeing a configuration of yours didn't work after unpacking.  big_smile

Most that do not work out of the box are weather scripts. But I have a lot here that do not work. withouty 'minor' tewaks dure yo Mobo and CPU changes.  I no nonger run "nvidia-settings" it does not like my new card - YET!

I have gotten use to using the accuweather_rss script these days.
It just does not fail.

And tossed in "reminds" sun and moon data.
2022-02-09-094939-S11.jpg

# pkill -xf "conky -c /home/sector11/.conkyrc" &

# 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 Default Conky
own_window_argb_visual yes
own_window_argb_value 100

# minimum_size 195 945
# minimum_size 195
maximum_width 195

gap_x 10  ## ← →
gap_y 15  ## ↑ ↓

alignment tl

# 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

#${alignc}The Wewather${execi 900 bash /media/5/Conky/accuweather_rss/acc_RSS}

# /usr/share/zoneinfo/

#${goto 24}FT → ${color8}${tztime Europe/Berlin %d %m}${color} \
#@ ${color8}${tztime Europe/Berlin %H:%M}${color}
#${goto 24}LK → ${color8}${time %d %m}${color} \
#@ ${color8}${time %H:%M}${color}
#${goto 24}L3 → ${color8}${tztime Europe/London %d %m}${color} \
#@ ${color8}${tztime Europe/London %H:%M}${color}
#${goto 24}GP ↓
#${alignc}MM → ${color8}${tztime US/Central %d %m}${color} \
#@ ${color8}${tztime US/Central %H:%M}${color}
#${goto 24}SS ↑
#${alignc}${swapbar 0,80}
#${alignc}${tztime /usr/share/zoneinfo/Iran %d·%m @ %H:%M}
#${alignc}${swapbar 0,80}

TEXT
${alignc}The Weather${execi 900 bash /media/5/Conky/accuweather_rss/acc_RSS}
${goto 84}${font conkyweather:size=30}${color8}${execpi 600  sed -n '2p' /media/5/Conky/accuweather_rss/weather}${color}${font}
${goto 10}${execpi 600 sed -n '1p' /media/5/Conky/accuweather_rss/weather|cut -d ' ' -f2-|fold -s -w21}

${alignc}${swapbar 0,15} FORECAST ${swapbar 0,15}
${alignc}${swapbar 0,15} Today ${swapbar 0,15}
${alignc}${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2" "$6}'`}${color}
${alignc}H: ${execpi 600 sed -n '4p' /media/5/Conky/accuweather_rss/weather|cut -d ' ' -f 2}     \
L: ${execpi 600 sed -n '4p' /media/5/Conky/accuweather_rss/weather|cut -d ' ' -f 5}
${goto 84}${font conkyweather:size=30}${color8}${execpi 600  sed -n '5p' /media/5/Conky/accuweather_rss/weather}${color}${font}
${execpi 600 sed -n '4p' /media/5/Conky/accuweather_rss/weather|cut -d ' ' -f7-|fold -s -w21}
${alignc}${swapbar 0,80}
${alignc}${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2" "$6}'`}${color}
${alignc}H: ${execpi 600 sed -n '7p' /media/5/Conky/accuweather_rss/weather|cut -d ' ' -f 2}     \
L: ${execpi 600 sed -n '7p' /media/5/Conky/accuweather_rss/weather|cut -d ' ' -f 5}
${goto 84}${color5}${font conkyweather:size=30}${execpi 600  sed -n '8p' /media/5/Conky/accuweather_rss/weather}${color}${font}${color}
${execpi 600 sed -n '7p' /media/5/Conky/accuweather_rss/weather|cut -d ' ' -f7-|fold -s -w21}
${alignc}${swapbar 0,80}
${font fira mono:medium:size=14}${alignc}${color5}Sun Info${color}${font}
${font fira mono:medium:size=10}${pre_exec remind -q -r ~/.reminders.sun.v | sed -e "/.*(today):/d" -e '/^$/d'}${font}
${alignc}${swapbar 0,80}
${font fira mono:medium:size=14}${alignc}${color5}Moon Phases${color}${font}
${font fira mono:medium:size=10}${pre_exec remind -q -r ~/.reminders.moon.v | sed -e "/.*(today):/d" -e '/^$/d'}${font}
${swapbar 0}
${alignc}${color5}Phase 1 2020·03·20${color}
 ${pre_exec dateutils.ddiff 2020-03-20 'now' -f '%yy·%mm·%dd'}\
${alignr 5}${pre_exec dateutils.ddiff 2020-03-20 'now' -f '%d'}
${swapbar 0}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1615 2022-02-09 13:38:27

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

Re: Show us your conky

Sector11 wrote:

I have gotten use to using the accuweather_rss script these days.
It just does not fail.

I admit to having somewhat neglected this script from the master and I vow to do better.  smile
Do I see correctly that you indicate below your Corona suffer time so far?

Offline

#1616 2022-02-09 14:18:09

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

Re: Show us your conky

https://forums.bunsenlabs.org/viewtopic … 76#p120476
YtyqArIt.png


The idea came from my friend @loutch from the french mageia forum.

necessary are
-the Accuweather script from @TBG
-the fonts GE Inspira and Ubuntu
-these configuration files

2015

# pkill -xf "conky -c /path/to/conkyrc
# unklar 10.02.2022

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,below   #undecorated,
#own_window_colour 000000
#own_window_argb_visual yes
#own_window_argb_value 80
#own_window_class Conky

minimum_size 660 220
#maximum_width 655
gap_x 450 # l|r
gap_y 50 # u|d
alignment tl
#alignment ml

use_xft yes
xftfont GE Inspira:size=9
xftalpha 1

override_utf8_locale yes

draw_shades no
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color ffffff
color1 778899
color2 FFA07A
color3 87CEFA
color4 48D1CC
color5 FFDEAD
color6 00BFFF
color7 ffffff
color8 FFD700
color9 ffffff

draw_borders no
stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2
draw_graph_borders no
background no
use_spacer none
no_buffers yes
double_buffer yes

update_interval 1
#lua_load ~/LUA/draw-bg.lua
lua_load ~/LUA/image.lua
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
TEXT
##### Start #####
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f2015 -h2015}
##### Zeit #####
${voffset -35}${font GE Inspira:size=55}${time %H}:${time %M}${font GE Inspira:size=20}${color 808080}${goto 180}${time %S}${color}${font}
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${goto 310}${time %a., %d. %B %Y}${font}
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind :        ${execi 90 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond} ${execi 90 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}
${goto 310}Humidity :  ${execi 90 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}
${goto 310}Pressure :   ${execi 90 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}
#### Stadt ####
${voffset -5}${font GE Inspira:size=14}Pisa/Toskana : ${font}${color5} ${execi 90 sed -n '1p' $HOME/Accuweather_conky_script/aktualisiert}${color}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond} °C ${font} Gefühlt :  ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond} °C
${goto 555}${voffset -124}${font ubuntu:size=11}N ${font}
${goto 522}${voffset 8}${font Ubuntu:size=6}NNW ${goto 583}NNE${font}
${goto 493}${voffset -6}${font Ubuntu:size=9}NW ${goto 611}NE${font}
${goto 486}${voffset 10}${font Ubuntu:size=6}WNW ${goto 618}ENE${font}
${goto 468}${voffset 5}${font Ubuntu:size=11}W ${goto 641}E${font}
${goto 486}${voffset 9}${font Ubuntu:size=6}WSW ${goto 618}ESE${font}
${goto 493}${voffset 16}${font Ubuntu:size=9}SW ${goto 611}SE${font}
${goto 522}${voffset -4}${font Ubuntu:size=6}SSW ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S ${font}
#### Anzeige der nächsten drei Stunden und drei Tage ####
${voffset -80}${goto 20}${color5}${tztime GMT-3 %H} h\
${goto 95}${tztime GMT-4 %H} h\
${goto 170}${tztime GMT-5 %H} h\
${goto 245}${color}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2}'`}\
${goto 320}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2}'`}
##### Temperaturanzeige  #####
${voffset 25}
Temp${goto 40}${execi 90 sed -n '4p' $HOME/Accuweather_conky_script/hourly}°\
${goto 100}${execi 90 sed -n '34p' $HOME/Accuweather_conky_script/hourly}°\
${goto 180}${execi 90 sed -n '64p' $HOME/Accuweather_conky_script/hourly}°\
${goto 245}${color9}${execi 90 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}°${color}\
${goto 320}${color9}${execi 90 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}°${color}\
${goto 400}${color9}${execi 90 sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}°${color}
#### Icons aktuelle Bedingungen und Wind ####
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2015/forecast_0.png 180 5 132 80 0}${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2015/wind_0.png 465 12 190 190 0}\
#### Icons für die nächsten 3 Stunden und 3 Tage ####
${lua fDrawImage $HOME/Accuweather_conky_script/hourly_2015/hourly_2.png 0 145 70 40 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/hourly_2015/hourly_3.png 75 145 70 40 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/hourly_2015/hourly_4.png 150 145 70 40 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2015/forecast_2.png 225 145 70 40 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2015/forecast_3.png 300 145 70 40 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2015/forecast_4.png 380 145 70 40 0}
${voffset -800}

2016(lower TEXT; above is identical)

TEXT
##### Start #####
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f2016 -h2016}
##### Zeit #####
${voffset -35}${font GE Inspira:size=55}${time %H}:${time %M}${font GE Inspira:size=20}${color 808080}${goto 180}${time %S}${color}${font}
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${goto 310}${time %a., %d. %B %Y}${font}
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind :        ${execi 90 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond} ${execi 90 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}
${goto 310}Humidity :  ${execi 90 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}
${goto 310}Pressure :   ${execi 90 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}
#### Stadt ####
${voffset -5}${font GE Inspira:size=14}Pisa/Toskana : ${font}${color5} ${execi 90 sed -n '1p' $HOME/Accuweather_conky_script/aktualisiert}${color}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond} °C ${font} Gefühlt :  ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond} °C
${goto 555}${voffset -124}${font ubuntu:size=11}N ${font}
${goto 522}${voffset 8}${font Ubuntu:size=6}NNW ${goto 583}NNE${font}
${goto 493}${voffset -6}${font Ubuntu:size=9}NW ${goto 611}NE${font}
${goto 486}${voffset 10}${font Ubuntu:size=6}WNW ${goto 618}ENE${font}
${goto 468}${voffset 5}${font Ubuntu:size=11}W ${goto 641}E${font}
${goto 486}${voffset 9}${font Ubuntu:size=6}WSW ${goto 618}ESE${font}
${goto 493}${voffset 16}${font Ubuntu:size=9}SW ${goto 611}SE${font}
${goto 522}${voffset -4}${font Ubuntu:size=6}SSW ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S ${font}
#### Anzeige der nächsten drei Stunden und drei Tage ####
${voffset -80}${goto 20}${color5}${tztime GMT-3 %H} h\
${goto 95}${tztime GMT-4 %H} h\
${goto 170}${tztime GMT-5 %H} h\
${goto 245}${color}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2}'`}\
${goto 320}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2}'`}
##### Temperaturanzeige  #####
${voffset 25}
Temp${goto 40}${execi 90 sed -n '4p' $HOME/Accuweather_conky_script/hourly}°\
${goto 100}${execi 90 sed -n '34p' $HOME/Accuweather_conky_script/hourly}°\
${goto 180}${execi 90 sed -n '64p' $HOME/Accuweather_conky_script/hourly}°\
${goto 245}${color9}${execi 90 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}°${color}\
${goto 320}${color9}${execi 90 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}°${color}\
${goto 400}${color9}${execi 90 sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}°${color}
#### Icons aktuelle Bedingungen und Wind ####
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png 205 5 105 105 0}${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2016/wind_0.png 495 42 135 135 0}\
#### Icons für die nächsten 3 Stunden und 3 Tage ####
${lua fDrawImage $HOME/Accuweather_conky_script/hourly_2016/hourly_2.png 0 140 50 45 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/hourly_2016/hourly_3.png 75 140 50 45 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/hourly_2016/hourly_4.png 150 140 50 45 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2016/forecast_2.png 225 140 50 45 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2016/forecast_3.png 300 140 50 45 0}\
${lua fDrawImage $HOME/Accuweather_conky_script/forecast_2016/forecast_4.png 380 140 50 45 0}
${voffset -800}

image.lua

--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 

weather_rc(lower TEXT; above is identical) the Ubuntu font and the image.lua script are not necessary here  wink

TEXT
##### Start #####
${texeci 500 bash $HOME/Accuweather_conky_script/accuweather -f}
##### Zeit #####
${voffset -35}${font GE Inspira:size=55}${time %H}:${time %M}${font GE Inspira:size=20}${color 808080}${goto 180}${time %S}${color}${font}
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${goto 310}${time %a., %d. %B %Y}${font}
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind :        ${execi 90 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond} ${execi 90 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}
${goto 310}Humidity :  ${execi 90 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}
${goto 310}Pressure :   ${execi 90 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond}
#### Stadt ####
${voffset -5}${font GE Inspira:size=14}Pisa/Toskana : ${font}${color5} ${execi 90 sed -n '1p' $HOME/Accuweather_conky_script/aktualisiert}${color}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond} °C ${font} Gefühlt :  ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond} °C
${font}
#### Anzeige der nächsten drei Stunden und drei Tage ####
${voffset -20}${goto 20}${color5}${tztime GMT-3 %H} h\
${goto 95}${tztime GMT-4 %H} h\
${goto 170}${tztime GMT-5 %H} h\
${goto 245}${color}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2}'`}\
${goto 320}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2}'`}
##### Temperaturanzeige  #####
${voffset 25}
Temp${goto 40}${execi 90 sed -n '4p' $HOME/Accuweather_conky_script/hourly}°\
${goto 100}${execi 90 sed -n '34p' $HOME/Accuweather_conky_script/hourly}°\
${goto 180}${execi 90 sed -n '64p' $HOME/Accuweather_conky_script/hourly}°\
${goto 245}${color9}${execi 90 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}°${color}\
${goto 320}${color9}${execi 90 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}°${color}\
${goto 400}${color9}${execi 90 sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}°${color}/${color7}${execi 90 sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}°${color}
#### Icons aktuelle Bedingungen und Wind ####
${voffset -200}${goto 205}${font conkyweather:size=70}${execi 90  sed -n '22p' $HOME/Accuweather_conky_script/curr_cond}\
${voffset 60}${goto 490}${font ConkyWindNESW:size=120}${execi 90 sed -n '27p' $HOME/Accuweather_conky_script/curr_cond}
#### Icons für die nächsten 3 Stunden und 3 Tage ####
${voffset -130}${goto 10}${font conkyweather:size=32}${execi 90  sed -n '722p' $HOME/Accuweather_conky_script/hourly}\
${goto 85}${font conkyweather:size=32}${execi 90  sed -n '723p' $HOME/Accuweather_conky_script/hourly}\
${goto 160}${font conkyweather:size=32}${execi 90  sed -n '724p' $HOME/Accuweather_conky_script/hourly}\
${goto 235}${font conkyweather:size=32}${execi 90  sed -n '107p' $HOME/Accuweather_conky_script/daily_forecast}\
${goto 310}${font conkyweather:size=32}${execi 90  sed -n '108p' $HOME/Accuweather_conky_script/daily_forecast}\
${goto 390}${font conkyweather:size=32}${execi 90  sed -n '109p' $HOME/Accuweather_conky_script/daily_forecast}
${voffset -800}

Last edited by unklar (2022-06-19 12:08:59)

Offline

#1617 2022-02-09 17:18:27

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

Re: Show us your conky

unklar wrote:
Sector11 wrote:

I have gotten use to using the accuweather_rss script these days.
It just does not fail.

I admit to having somewhat neglected this script from the master and I vow to do better.  smile
Do I see correctly that you indicate below your Corona suffer time so far?

Yea that RSS script seems solid as a rock - a BIG ROCK!

RE: COVID time
Yes 2020·03·20 was the day Argentina went into "COVID Phase 1" protocol.  I never thought of it as "suffer time", but that fits in many respects.  However I do consider it the amount of time we are doing what is needed to "stay safe".

We, MIL, my wife and I, have been living in that Phase 1 since then.
We are all "high risk" so I added it to a conky just as a reminder

I found and installed "dateutils" when Mark's TimeDate.py file stopped working.

dateutils are a bunch of tools that revolve around fiddling with dates
and times in the command line with a strong focus on use cases that
arise when dealing with large amounts of financial data.

* Menu:

* Introduction::        Motivation, background, etc.
* Calendars::           Calendar concepts and format specs
* Format specifiers and units:: How to control input and output
* Localised input and output::  Date/times specific to regions
* Algorithms::          Some notes on the algorithms used
* dateadd::             Add durations to dates or times
* dateconv::            Convert dates between calendars or time zones
* datediff::            Compute durations between dates and times
* dategrep::            Find date or time matches in input stream
* dateround::           Round dates or times to designated values
* dateseq::             Generate sequences of dates or times
* datesort::            Sort the contents of files chronologically
* datetest::            Compare dates or times
* datezone::            Convert date/times to timezones in bulk
* strptime::            Command line version of the C function

For some reason "datediff" does not work in Debian but dateutils.diff does  smile

Have another conky that used dateutills a lot, SAMPLE:

    ${color2}E V E N T S: ${color0}y·m·d ${color2}${alignr 10}Days${color}\
${image /media/5/Conky/images/deep_skyblue_1.png -p 230,00 -s 1x999}
  AA: 15/01/86:${color0}${pre_exec dateutils.ddiff 1986-01-15 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 1986-01-15 'today' -f ' %d'}${color}
  NS: 20/10/18:${color0}${pre_exec dateutils.ddiff 2018-10-20 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 2018-10-20 'today' -f ' %d'}${color}
${color6}${membar 0,42}${color6} BruLoo ${color6}${membar 0}${color}
  VJ: 13/11/02:${color0}${pre_exec dateutils.ddiff 2002-11-13 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 2002-11-13 'today' -f ' %d'}${color}
 ANN: 19/08/03:${color0}${pre_exec dateutils.ddiff 2003-08-19 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 2003-08-19 'today' -f ' %d'}${color}
${color6}${membar 0,42}${color6} Quit Smoking ${color6}${membar 0}${color}
 S11: 08/06/09:${color0}${pre_exec dateutils.ddiff 2009-06-08 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 2009-06-08 'today' -f ' %d'}${color}
 S12: 29/06/09:${color0}${pre_exec dateutils.ddiff 2009-06-29 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 2009-06-29 'today' -f ' %d'}${color}
${color6}${membar 0,42}${color6} Stents ${color6}${membar 0}${color}
  Op: 08/03/16:${color0}${pre_exec dateutils.ddiff 2016-03-08 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 2016-03-08 'today' -f ' %d'}${color}
${color6}${membar 0,42}${color6} Birthdays ${color6}${membar 0}${color}
 S11: 12/05/49:${color0}${pre_exec dateutils.ddiff 1949-05-12 'today' -f ' %y·%m·%d'}${color2}\
${alignr 10}${pre_exec dateutils.ddiff 1949-05-19 'today' -f ' %d'}${color}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1618 2022-02-09 17:19:56

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

Re: Show us your conky

unklar wrote:

loutch is another Master Conkystador!  No doubt about it.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1619 2022-02-24 14:45:36

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

Re: Show us your conky

Debian has today in sid(uction) conkyV 1.12.2 released.

These are the differences to 1.11.6

--- conk11	2022-02-24 14:31:29.562225073 +0100
+++ conk12	2022-02-24 14:32:15.208581780 +0100
@@ -1,5 +1,5 @@
 unklarer@sidLXDE:~$ conky -v
-conky 1.11.6 compiled 2020-08-17 for Linux x86_64
+conky 1.12.2 compiled 2022-02-23 for Linux x86_64
 
 Compiled in features:
 
@@ -43,6 +43,7 @@
   * Xft
   * ARGB visual
   * Own window
+  * HSV Gradient
 
  Music detection:
   * Audacious
@@ -57,4 +58,4 @@
   * Localedir: /usr/share/locale
   * Maximum netdevices: 256
   * Maximum text size: 16384
-  * Size text buffer: 256
\ Kein Zeilenumbruch am Dateiende.
+  * Size text buffer: 256

Last edited by unklar (2022-02-24 14:56:09)

Offline

#1620 2022-03-01 13:01:41

ceeslans
Member
Registered: 2015-09-30
Posts: 195

Re: Show us your conky

unklar wrote:

Debian has today in sid(uction) conkyV 1.12.2 released.
...

@Stevo at MX  backported conky v1.12.2-1 and packaged it  for testing in MX21 - which is based on debian stable.
It is available in their testrepo if you want to try it on Lithium

Last edited by ceeslans (2022-03-01 19:55:13)

Offline

Board footer

Powered by FluxBB