You are not logged in.

#51 2015-11-21 17:27:37

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

»»»»» Conky v1.9 «««««
unklar wrote:

Great masters, thank you
I'll be at your own pace by not ... wink

Patience...   hmm

The error is because you got the updated script, but didn't change the lines that call the various elements in the conky.  Some of them changed.  Grab the companion script as well to see what does what.

Here is the finished product - showing my location: Buenos Aires, Argentina.
2015_11_21_14_26_20_Scrot11.jpg

Put this conky: unklar.clock.conky in ~/.Conky and run with the NEW "LEDS" script.  I had to make changes to that because I changed the conky a bit.  This way I didn't touch your original conkys.

~/.Conky/unklar.clock.conky

# pkill -xf "conky -q -c $HOME/.Conky/unklar.clock.conky" &
## /home/sector11/.Conky/unklar.clock.conky
# — Conky settings — #

background yes

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

#temperature_unit celcius

# — Window specifications — #

own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 290 250
maximum_width 290

alignment top_right

gap_x 30
gap_y 75


# — Graphics settings — #
draw_shades no
draw_outline no
#draw_borders no
draw_graph_borders no

###  Borders Section  ########################################################
draw_borders no #yes
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###

# — Text settings — #
use_xft yes
xftfont hooge 05_53:size=6
xftalpha 0.5

default_color FFFFFF

uppercase no
use_spacer right

color0 white
color1 orange
color2 green

# — Lua Load — #

lua_load $HOME/.Conky/cronograph/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
lua_load $HOME/.Conky/cronograph/scripts/multi_rings.lua
lua_draw_hook_post main
#${execi 500 bash /media/5/Conky/1b2_accuweather_conkyweather_font/1b2}\
TEXT
${execi 500 bash /media/5/Conky/1b2_accuweather_conkyweather_font/1b2}\
${voffset 29}${offset 112}BAT:
${voffset 17}${goto 65}${font hooge 05_53:size=12}${time %H:%M}${font}${goto 185}UPTIME:
${voffset 2}${goto 65}${time %a %d %b}${goto 185}${uptime}
${voffset 2}${goto 65}${time %Y}
${voffset -6}${goto 145}HD
${voffset 12}${alignc}${fs_free}/${fs_size}
${voffset 36}${goto 91}${cpu cpu0}%${goto 221}${memperc}%
${voffset 10}${goto 76}CPU${goto 205}MEM
${voffset 20}${goto 65}${font hooge 05_53:size=12}${execpi 600 sed -n '29p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°\
${goto 200}${execpi 600 sed -n '30p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}°
${voffset -47}${goto 125}${font conkyweather:size=40}${execpi 600 sed -n '27p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}${font}
${voffset -03}${alignc}${execpi 600 sed -n '28p' /media/5/Conky/1b2_accuweather_conkyweather_font/curr_cond}
${goto 85}${font conkyweather:size=20}${execpi 600 sed -n '6p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}\
${goto 135}${execpi 600 sed -n '11p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}\
${goto 185}${execpi 600 sed -n '16p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}${font}\
${voffset 6}${goto 84}${execpi 600 sed -n '8p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°/\
${execpi 600 sed -n '9p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°\
${goto 140}${execpi 600 sed -n '13p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°/\
${execpi 600 sed -n '14p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°\
${goto 190}${execpi 600 sed -n '18p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°/\
${execpi 600 sed -n '19p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days}°\
${voffset 7}${goto 85}${execpi 600 sed -n '5p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days | cut -c-3}\
${goto 140}${execpi 600 sed -n '10p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days | cut -c-3}\
${goto 190}${execpi 600 sed -n '15p' /media/5/Conky/1b2_accuweather_conkyweather_font/first_days | cut -c-3}\
${if_match ${battery_percent BAT0}>0}${if_match ${battery_percent BAT0}<=15}${image $HOME/.Conky/cronograph/images/Red.png -p 129,18 -s 40x40}${endif}${endif}\
${if_match ${battery_percent BAT0}>15}${if_match ${battery_percent BAT0}<=20}${image $HOME/.Conky/cronograph/images/Orange.png -p 129,18 -s 40x40}${endif}${endif}\
${if_match ${battery_percent BAT0}>20}${if_match ${battery_percent BAT0}<=35}${image $HOME/.Conky/cronograph/images/Yellow.png -p 129,18 -s 40x40}${endif}${endif}\
${if_match ${battery_percent BAT0}>35}${if_match ${battery_percent BAT0}<=100}${image $HOME/.Conky/cronograph/images/Dark_Green.png -p 129,18 -s 40x40}${endif}${endif}\
${execpi 1 cat $HOME/.Conky/cronograph/scripts/LEDS}

This goes with the other 'scripts': /home/sector11/.Conky/cronograph/scripts/LEDS

${image $HOME/.Conky/cronograph/images/Blank.png -p 11,123 -s 40x40}${if_match ${execi 1 num=$(date +%-S);rem=$(( num % 2 ));if [ $rem -eq 0 ] ; then echo 0 ; else  echo 1 ; fi}==0}${image $HOME/.Conky/cronograph/images/Blue.png -p 11,123 -s 40x40}${endif}
${image $HOME/.Conky/cronograph/images/Blank.png -p 235,123 -s 40x40}${if_match ${execi 1 num=$(date +%-S);rem=$(( num % 2 ));if [ $rem -eq 0 ] ; then echo 0 ; else  echo 1 ; fi}==0}${image $HOME/.Conky/cronograph/images/Blue.png -p 235,123 -s 40x40}${endif}
${image $HOME/.Conky/cronograph/images/Blank.png -p 123,237 -s 40x40}${if_match ${execi 1 num=$(date +%-S);rem=$(( num % 2 ));if [ $rem -eq 0 ] ; then echo 0 ; else  echo 1 ; fi}==0}${image $HOME/.Conky/cronograph/images/Blue.png -p 123,237 -s 40x40}${endif}

You will need to change the path to the 1b2 script and other lines that use

/media/5/Conky/1b2_accuweather_conkyweather_font/

to match where you have the info.

I have another idea I'm going to try as well.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#52 2015-11-21 18:58:15

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

Houston, I see light at the end of the tunnel. neutral
lCPHNgwK

Offline

#53 2015-11-21 19:27:44

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

Playing with putting the "Now" weather font between the circles. using a test weatherfont "f" (full clouds) - the real '27p' call is directly to the right of it. Played with the idea of having the clock hands on top of the images and conky, but the hands then cover the temps:
2015_11_21_16_21_47_Scrot11.png 2015_11_21_16_22_23_Scrot11.png
... a simple matter of reversing the _pre and _post in the two lua calls above TEXT.
So I think the original is better, do we need to see the centre dot?  Besides for sunny days we'll see it.
2015_11_21_16_35_12_Scrot11.jpg

Also coloured the Temp 'light blue' and the Feels Like a 'silver'. 

@unklar

use this:

minimum_size 300 300
maximum_width 300

or maybe 310 all around to get the full circles visible.

and change the battery image calls to: "-p 129,18" to get the top dot to move into place.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#54 2015-11-21 21:08:42

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

BINGO!
Many thanks to Sir Sector11! smile
uhr1.th.jpg
Changes:
conkyrc >> ..-p 123,10

# pkill -xf "conky -q -c $HOME/.Conky/cronograph/conkyrc" &
## /home/sector11/.Conky/unklar.clock.conky
# — Conky settings — #

background yes

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

#temperature_unit celcius

# — Window specifications — #

own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 310 310
maximum_width 310

alignment top_right

gap_x 30
gap_y 75


# — Graphics settings — #
draw_shades no
draw_outline no
#draw_borders no
draw_graph_borders no

###  Borders Section  ########################################################
draw_borders no #yes
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###

# — Text settings — #
use_xft yes
xftfont hooge 05_53:size=6
xftalpha 0.5

default_color FFFFFF

uppercase no
use_spacer right

color0 white
color1 orange
color2 green

# — Lua Load — #

lua_load $HOME/.Conky/cronograph/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
lua_load $HOME/.Conky/cronograph/scripts/multi_rings.lua
lua_draw_hook_post main
#${execi 500 bash /.Conky/cronograph/accuweather/1b2}\
TEXT
${execi 500 bash $HOME/.Conky/cronograph/accuweather/1b2}\
${voffset 29}${offset 112}BAT:
${voffset 17}${goto 65}${font hooge 05_53:size=12}${time %H:%M}${font}${goto 185}UPTIME:
${voffset 2}${goto 65}${time %a %d %b}${goto 185}${uptime}
${voffset 2}${goto 65}${time %Y}
${voffset -6}${goto 145}HD
${voffset 12}${alignc}${fs_free}/${fs_size}
${voffset 36}${goto 91}${cpu cpu0}%${goto 221}${memperc}%
${voffset 10}${goto 76}CPU${goto 205}MEM
${voffset 20}${goto 90}${font hooge 05_53:size=12}${execpi 600 sed -n '29p' $HOME/.Conky/cronograph/accuweather/curr_cond}°\
${goto 200}${execpi 600 sed -n '30p' $HOME/.Conky/cronograph/accuweather/curr_cond}°
${voffset -47}${goto 125}${font conkyweather:size=40}${execpi 600 sed -n '27p' $HOME/.Conky/cronograph/accuweather/curr_cond}${font}
${voffset -03}${alignc}${execpi 600 sed -n '28p' $HOME/.Conky/cronograph/accuweather/curr_cond}
${goto 85}${font conkyweather:size=20}${execpi 600 sed -n '6p' $HOME/.Conky/cronograph/accuweather/first_days}\
${goto 135}${execpi 600 sed -n '11p' $HOME/.Conky/cronograph/accuweather/first_days}\
${goto 185}${execpi 600 sed -n '16p' $HOME/.Conky/cronograph/accuweather/first_days}${font}\
${voffset 6}${goto 84}${execpi 600 sed -n '8p' $HOME/.Conky/cronograph/accuweather/first_days}°/\
${execpi 600 sed -n '9p' $HOME/.Conky/cronograph/accuweather/first_days}°\
${goto 140}${execpi 600 sed -n '13p' $HOME/.Conky/cronograph/accuweather/first_days}°/\
${execpi 600 sed -n '14p' $HOME/.Conky/cronograph/accuweather/first_days}°\
${goto 190}${execpi 600 sed -n '18p' $HOME/.Conky/cronograph/accuweather/first_days}°/\
${execpi 600 sed -n '19p' $HOME/.Conky/cronograph/accuweather/first_days}°\
${voffset 7}${goto 85}${execpi 600 sed -n '5p' $HOME/.Conky/cronograph/accuweather/first_days | cut -c-3}\
${goto 140}${execpi 600 sed -n '10p' $HOME/.Conky/cronograph/accuweather/first_days | cut -c-3}\
${goto 190}${execpi 600 sed -n '15p' $HOME/.Conky/cronograph/accuweather/first_days | cut -c-3}\
${if_match ${battery_percent BAT0}>0}${if_match ${battery_percent BAT0}<=15}${image $HOME/.Conky/cronograph/images/Red.png -p 123,10 -s 40x40}${endif}${endif}\
${if_match ${battery_percent BAT0}>15}${if_match ${battery_percent BAT0}<=20}${image $HOME/.Conky/cronograph/images/Orange.png -p 123,10 -s 40x40}${endif}${endif}\
${if_match ${battery_percent BAT0}>20}${if_match ${battery_percent BAT0}<=35}${image $HOME/.Conky/cronograph/images/Yellow.png -p 123,10 -s 40x40}${endif}${endif}\
${if_match ${battery_percent BAT0}>35}${if_match ${battery_percent BAT0}<=100}${image $HOME/.Conky/cronograph/images/Dark_Green.png -p 123,10 -s 40x40}${endif}${endif}\
${execpi 1 cat $HOME/.Conky/cronograph/scripts/blinkingLED}

and blinkingLED in scripts

${image $HOME/.Conky/cronograph/images/Blank.png -p 123, 236 -s 40x40}${if_match ${execi 1 num=$(date +%-S);rem=$(( num % 2 ));if [ $rem -eq 0 ] ; then echo 0 ; else  echo 1 ; fi}==0}${image $HOME/.Conky/cronograph/images/Blue.png -p 123, 236 -s 40x40}${endif}
${image $HOME/.Conky/cronograph/images/Blank.png -p 10, 123 -s 40x40}${if_match ${execi 1 num=$(date +%-S);rem=$(( num % 2 ));if [ $rem -eq 0 ] ; then echo 0 ; else  echo 1 ; fi}==0}${image $HOME/.Conky/cronograph/images/Blue.png -p 10, 123 -s 40x40}${endif}
${image $HOME/.Conky/cronograph/images/Blank.png -p 236, 123 -s 40x40}${if_match ${execi 1 num=$(date +%-S);rem=$(( num % 2 ));if [ $rem -eq 0 ] ; then echo 0 ; else  echo 1 ; fi}==0}${image $HOME/.Conky/cronograph/images/Blue.png -p 236, 123 -s 40x40}${endif}

I still have the error in the therminal:

Conky: unknown variable 
Conky: unknown variable 
...etc.

where I can look the variable ?

Last edited by unklar (2016-06-13 20:45:24)

Offline

#55 2015-11-21 22:29:41

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

unklar wrote:

BINGO!
Many thanks to Sir Sector11! smile

where I can look the variable ?

You're most welcome. Bitteschön.

One more change:

minimum_size 310 320  ##width | height
maximum_width 310

you are missing the bottom of the ring still, increase the minimum height.


RE: where I can look the variable ?

Open a split terminal or two terminals:
In T-1

pkill -xf "conky -c /path/to/the_conky/conkyrc -DD" &

this will stop the conky when you want to stop it.

in T-2, to start the conky:

conky -c /path/to/the_conky/conkyrc -DD &

For debugging conkys:

 -D | --debug
    Increase debugging output, ie. -DD for more debugging

What you see:
2015_11_21_19_22_52_Scrot11.jpg


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#56 2015-11-22 09:00:55

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

..you are missing the bottom of the ring still, increase the minimum height.

Thanks @S11,

the size is correct. My picture is just too small. wink

Now I must study the debug messages. I Report violation when I get stuck.

Offline

#57 2015-11-22 12:37:56

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

hahaha OH!  Well, that explains that!
Glad you are happy with a new conky!


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#58 2015-11-22 22:20:20

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

There's a new kid on the block.  A simple clock, a simple today weather and a small bit of system info:
2015_11_22_16_41_03_Scrot11.png 2015_11_22_16_42_16_Scrot11.png 2015_11_22_16_42_58_Scrot11.png

2015_11_22_16_43_23_Scrot11.png 2015_11_22_16_45_08_Scrot11.png 2015_11_22_16_45_33_Scrot11.png
Teo's 1b1 Accuweather - Images - 1b1_29-10-15 script required!


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#59 2015-11-24 20:53:13

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

@Sector11
@El Conkystador,

It is unbelievable in which speed you make conky-configurations worldwide available to its users.

Again I am pulling my hat, thank you so much. smile

In regards to my problem I did not progress much further, as I am also not familiar with Lua.
From the relevant Debug report, I interpret that in the Lua-Script the “blinking” (LED) is the unknown variable(?).

$ conky -c ~/.Conky/cronograph/conkyrc -DD &
[1] 15027
unklar@x40RD:~
$ DEBUG(0) [../../src/conky.c:5338]: reading contents from config file '/home/unklar/.Conky/cronograph/conkyrc'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:354]: Adding $cpu for CPU 0
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: forked to background, pid is 15028

Conky: desktop window (6e) is root window
Conky: window type - normal
Conky: drawing to created window (0x2400001)
Conky: drawing to double buffer
wget: Kein Prozess gefunden
--2015-11-22 00:06:44--  http://www.accuweather.com/en/de/lichtenstein/09350/current-weather/171261
Auflösen des Hostnamens »www.accuweather.com (www.accuweather.com)« … 2.20.188.156, 2.20.188.155
Verbindungsaufbau zu www.accuweather.com (www.accuweather.com)|2.20.188.156|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: nicht spezifiziert [text/html]
Wird in »»/home/unklar/.Conky/cronograph/accuweather/curr_cond_raw«« gespeichert.

/home/unklar/.Conky/cron     [ <=>                          ] 101,05K  --.-KB/s   in 0,09s  

2015-11-22 00:06:45 (1,06 MB/s) - »/home/unklar/.Conky/cronograph/accuweather/curr_cond_raw« gespeichert [103476]

--2015-11-22 00:06:45--  http://www.accuweather.com/en/de/lichtenstein/09350/daily-weather-forecast/171261
Auflösen des Hostnamens »www.accuweather.com (www.accuweather.com)« … 2.20.188.156, 2.20.188.155
Verbindungsaufbau zu www.accuweather.com (www.accuweather.com)|2.20.188.156|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: nicht spezifiziert [text/html]
Wird in »»/home/unklar/.Conky/cronograph/accuweather/first_days_raw«« gespeichert.

/home/unklar/.Conky/cron     [ <=>                          ] 102,84K  --.-KB/s   in 0,09s  

2015-11-22 00:06:46 (1,07 MB/s) - »/home/unklar/.Conky/cronograph/accuweather/first_days_raw« gespeichert [105309]

--2015-11-22 00:06:46--  http://www.accuweather.com/en/de/lichtenstein/09350/daily-weather-forecast/171261?day=6
Auflösen des Hostnamens »www.accuweather.com (www.accuweather.com)« … 2.20.188.156, 2.20.188.155
Verbindungsaufbau zu www.accuweather.com (www.accuweather.com)|2.20.188.156|:80 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: nicht spezifiziert [text/html]
Wird in »»/home/unklar/.Conky/cronograph/accuweather/last_days_raw«« gespeichert.

/home/unklar/.Conky/cron     [ <=>                          ] 101,27K  --.-KB/s   in 0,1s   

2015-11-22 00:06:46 (1,02 MB/s) - »/home/unklar/.Conky/cronograph/accuweather/last_days_raw« gespeichert [103705]

DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=100'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '100'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Dark_Green.png' at (123,10) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '1'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '1'
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Dark_Green.png' at (123,10) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '1'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '1'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=100'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '100'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Dark_Green.png' at (123,10) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '2'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '2'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=100'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '100'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '1==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '1' and '0'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Dark_Green.png' at (123,10) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '3'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '3'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=100'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '100'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Dark_Green.png' at (123,10) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '4'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '4'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=100'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '100'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '1==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '1' and '0'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Dark_Green.png' at (123,10) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '5'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '5'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>15'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '15'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>20'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '20'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(1) [../../src/conky.c:1307]: jumping
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100>35'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '35'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '100<=100'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '100' and '100'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/conky.c:1300]: parsed arg into '0==0'
DEBUG(1) [../../src/algebra.c:109]: comparing longs '0' and '0'
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Dark_Green.png' at (123,10) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (123,236) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (10,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blank.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/unklar/.Conky/cronograph/images/Blue.png' at (236,123) scaled to 40x40, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '6'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${time %I.%M}' to '12.06'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${time %M.%S}' to '06.52'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${time %S}' to '52'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: unknown variable 
DEBUG(1) [../../src/conky.c:2399]: evaluated '${ }' to '${}'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${updates}' to '6'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${time %H}' to '00'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${time %M}' to '06'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${time %S}' to '52'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:354]: Adding $cpu for CPU 0
DEBUG(1) [../../src/conky.c:2399]: evaluated '${cpu cpu0}' to '15'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${memperc }' to '10'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/conky.c:2399]: evaluated '${fs_used_perc /}' to '28'

It is a pity. ops

Offline

#60 2015-11-24 22:33:38

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

unklar wrote:

It is a pity. ops

This is the Clock conky with the LED lights right?

Strange, it works perfect here...

Are you using Bunsen?


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#61 2015-11-25 11:22:55

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

This is the Clock conky with the LED lights right?

Strange, it works perfect here...

Are you using Bunsen?

yes

on both
with battery

$ inxi -S
System:    Host: x40RD Kernel: 3.15.2-antix.1-486 i686 (32 bit) Desktop: Fluxbox 1.3.5
           Distro: antiX-14-a3-RD_386-full Killah P 11 October 2014

$ conky -v
Conky 1.9.0 compiled Sat Jan 17 21:15:51 UTC 2015 for Linux 3.2.0-4-amd64 (i686)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * Audacious
  * MPD
  * MOC
  * XMMS2

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * config-output
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2

without battery

$ inxi -S
System:    Host: localhost Kernel: 4.1.13-desktop-2.mga5 x86_64 (64 bit) Desktop: KDE 4.14.5 
           Distro: Mageia 5 thornicroft 

$ conky -v
Conky 1.9.0 compiled Sat Oct 18 10:40:56 UTC 2014 for Linux 3.14.18-server-3.mga4 (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib64/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * eve-online
  * config-output
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2
 

Offline

#62 2015-11-25 13:56:35

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

@ unklar

I just spent some time on the net looking for "no templates to replace" - don't worry about that at all, just a debug report.

The blinking (LED) line in your conky is not LUA.  Just conky parsing a text file.

RE:

Conky: unknown variable 
Conky: unknown variable 

By commenting out:

#lua_load $HOME/.Conky/cronograph/scripts/clock_rings.lua
#lua_draw_hook_pre clock_rings

I stopped the errors.  So now we know what LUA script is spitting out the errors.

In the clock_rings.lua script you have 11 of these:

	{
		name=' ',
		arg=' ',
		max=100,
		bg_colour=0x000000,
		bg_alpha=0.3,
		fg_colour=0xFFFFFF,
		fg_alpha=0.0,
		x=150, y=75,
		radius=13,
		thickness=22,
		start_angle=0,
		end_angle=360
	},

causing the unknown variable because they are not defining a variable in arg=' ',

I eliminated them, and the errors, with this clock_rings.lua:

--[[
Clock Rings by londonali1010 (2009)

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
	lua_load ~/scripts/clock_rings-v1.1.1.lua
	lua_draw_hook_pre clock_rings

Changelog:
+ v1.1.1 -- Fixed minor bug that caused the script to crash if conky_parse() returns a nil value (20.10.2009)
+ v1.1 -- Added colour option for clock hands (07.10.2009)
+ v1.0 -- Original release (30.09.2009)
]]

settings_table = {
	{
		-- Edit this table to customise your rings.
		-- You can create more rings simply by adding more elements to settings_table.
		-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
		name='time',
		-- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
		arg='%I.%M',
		-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
		max=12,
		-- "bg_colour" is the colour of the base ring.
		bg_colour=0xFFFFFF,
		-- "bg_alpha" is the alpha value of the base ring.
		bg_alpha=0.1,
		-- "fg_colour" is the colour of the indicator part of the ring.
		fg_colour=0xFFFFFF,
		-- "fg_alpha" is the alpha value of the indicator part of the ring.
		fg_alpha=0.5,
		-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
		x=150, y=150,
		-- "radius" is the radius of the ring.
		radius=135,
		-- "thickness" is the thickness of the ring, centred around the radius.
		thickness=4,
		-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
		start_angle=0,
		-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
		end_angle=360
	},
	{
		name='time',
		arg='%M.%S',
		max=60,
		bg_colour=0xFFFFFF,
		bg_alpha=0.1,
		fg_colour=0xFFFFFF,
		fg_alpha=0.5,
		x=150, y=150,
		radius=140,
		thickness=4,
		start_angle=0,
		end_angle=360
	},
	{
		name='time',
		arg='%S',
		max=60,
		bg_colour=0xFFFFFF,
		bg_alpha=0.1,
		fg_colour=0xFFFFFF,
		fg_alpha=0.5,
		x=150, y=150,
		radius=145,
		thickness=4,
		start_angle=0,
		end_angle=360
	},
	}

-- Use these settings to define the origin and extent of your clock.

clock_r=127

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=150
clock_y=150

-- Colour & alpha of the clock hands

clock_colour=0xFFFFFF
clock_alpha=1

-- Do you want to show the seconds hand?

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
	local w,h=conky_window.width,conky_window.height

	local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

	local angle_0=sa*(2*math.pi/360)-math.pi/2
	local angle_f=ea*(2*math.pi/360)-math.pi/2
	local t_arc=t*(angle_f-angle_0)

	-- Draw background ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
	cairo_set_line_width(cr,ring_w)
	cairo_stroke(cr)

	-- Draw indicator ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
	cairo_stroke(cr)
end

function draw_clock_hands(cr,xc,yc)
	local secs,mins,hours,secs_arc,mins_arc,hours_arc
	local xh,yh,xm,ym,xs,ys

	secs=os.date("%S")
	mins=os.date("%M")
	hours=os.date("%I")

	secs_arc=(2*math.pi/60)*secs
	mins_arc=(2*math.pi/60)*mins+secs_arc/60
	hours_arc=(2*math.pi/12)*hours+mins_arc/12

	-- Draw hour hand

	xh=xc+0.7*clock_r*math.sin(hours_arc)
	yh=yc-0.7*clock_r*math.cos(hours_arc)
	cairo_move_to(cr,xc,yc)
	cairo_line_to(cr,xh,yh)

	cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
	cairo_set_line_width(cr,5)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(clock_colour,clock_alpha))
	cairo_stroke(cr)

	-- Draw minute hand

	xm=xc+clock_r*math.sin(mins_arc)
	ym=yc-clock_r*math.cos(mins_arc)
	cairo_move_to(cr,xc,yc)
	cairo_line_to(cr,xm,ym)

	cairo_set_line_width(cr,3)
	cairo_stroke(cr)

	-- Draw seconds hand

	if show_seconds then
		xs=xc+clock_r*math.sin(secs_arc)
		ys=yc-clock_r*math.cos(secs_arc)
		cairo_move_to(cr,xc,yc)
		cairo_line_to(cr,xs,ys)

		cairo_set_line_width(cr,1)
		cairo_stroke(cr)
	end
end

function conky_clock_rings()
	local function setup_rings(cr,pt)
		local str=''
		local value=0

		str=string.format('${%s %s}',pt['name'],pt['arg'])
		str=conky_parse(str)

		value=tonumber(str)
		if value == nil then value = 0 end
		pct=value/pt['max']

		draw_ring(cr,pct,pt)
	end

	-- Check that Conky has been running for at least 5s

	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)

	local cr=cairo_create(cs)

	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)

	if update_num>5 then
		for i in pairs(settings_table) do
			setup_rings(cr,settings_table[i])
		end
	end

	draw_clock_hands(cr,clock_x,clock_y)
end

Terminal output:

 25 Nov 15 | 10:55:11 ~
    $ kfc
 
 25 Nov 15 | 10:55:16 ~
    $ conky -c ~/.Conky/cronograph/conkyrc_2 &
[1] 2172
 
 25 Nov 15 | 10:55:39 ~
    $ Conky: forked to background, pid is 2177

Conky: desktop window (265) is root window
Conky: window type - normal
Conky: drawing to created window (0xa00001)
Conky: drawing to double buffer

[1]+  Done                    conky -c ~/.Conky/cronograph/conkyrc_2
 
 25 Nov 15 | 10:55:54 ~
    $ 

Good luck.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#63 2015-11-25 14:51:40

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

BINGO!!!! big_smile big_smile
That works perfectly.

Eternal thanks to the large @El Conkystasor!  kiss

Offline

#64 2015-11-25 15:58:22

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

Always always glad to see a happy ConkyRat

I consider myself a Bunsen LabRat and therefore by extension: a ConkyRat!   devil


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#65 2015-12-06 20:20:52

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

Ever want to test an app with a different time and or date?

Enter 'faketime' shown here with some conky calendars:

Today ... Past ... and Future
2015_12_06_17_10_27_Scrot11.png 2015_12_06_17_11_32_Scrot11.png 2015_12_06_17_12_00_Scrot11.png

It would work just as well with conky clocks.  smile


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#66 2015-12-14 02:45:13

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

== Conky v1.9 ==

Hello "python" gurus.
Can anyone tell me why today, 13 Dec 2015, isn't highlighted in this python calendar?
2015_12_13_23_41_50_Scrot11.jpg

${execpi 3600 faketime '2025-07-14' /media/5/Conky/scripts/cal.py}

${execpi 3600 /media/5/Conky/scripts/cal.py}

${execpi 3600 faketime '1947-04-15' /media/5/Conky/scripts/cal.py}

cal.py

#!/usr/bin/env python
# by Crinos512
import time, calendar, re

localtime = time.localtime(time.time())
calendar.setfirstweekday(calendar.SUNDAY)
#calendar.setfirstweekday(calendar.MONDAY)
cal = calendar.month(localtime[0], localtime[1])

parts = cal.split('\n')
cal = '${color7}${goto 51}' + '\n${goto 51}'.join(parts)
regex = '(?<= )%s(?= )|(?<=\n)%s(?= )|(?<= )%s(?=\n)' % (localtime[2], localtime[2], localtime[2])
replace = '${color8}%s${color7}' % localtime[2]
newCal = re.sub(regex, replace, cal)
print newCal

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#67 2015-12-14 11:30:34

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

color8  there is in the conkyrc?

Offline

#68 2015-12-14 12:27:28

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

color8 FFD700 ## Gold

It's what is colouring the dates in the other two conkys.

Interesting ... today it works. 2015_12_14_08_38_53_Scrot11.jpg

Maybe the number 13?  No not that ...

 14 Dec 15 | 09:22:10 ~
    $ faketime '2025-07-07' /media/5/Conky/scripts/cal.py
${color7}${goto 51}     July 2025
${goto 51}Mo Tu We Th Fr Sa Su
${goto 51}    1  2  3  4  5  6
${goto 51} ${color8}7${color7}  8  9 10 11 12 13
${goto 51}14 15 16 17 18 19 20
${goto 51}21 22 23 24 25 26 27
${goto 51}28 29 30 31
${goto 51}
 
 14 Dec 15 | 09:23:37 ~
    $ faketime '2025-07-14' /media/5/Conky/scripts/cal.py
${color7}${goto 51}     July 2025
${goto 51}Mo Tu We Th Fr Sa Su
${goto 51}    1  2  3  4  5  6
${goto 51} 7  8  9 10 11 12 13
${goto 51}14 15 16 17 18 19 20
${goto 51}21 22 23 24 25 26 27
${goto 51}28 29 30 31
${goto 51}
 
 14 Dec 15 | 09:23:51 ~
    $ faketime '2025-07-21' /media/5/Conky/scripts/cal.py
${color7}${goto 51}     July 2025
${goto 51}Mo Tu We Th Fr Sa Su
${goto 51}    1  2  3  4  5  6
${goto 51} 7  8  9 10 11 12 13
${goto 51}14 15 16 17 18 19 20
${goto 51}21 22 23 24 25 26 27
${goto 51}28 29 30 31
${goto 51}
 
 14 Dec 15 | 09:23:58 ~
    $ 

It is the first column of numbers, with July 2025, 7 works, 14, 21 and 28 do not.  The other "dates" seem to work
I must contact Crinos512 if he is still around if no one else can figure this out


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#69 2015-12-14 14:46:48

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Conky - Calendars / Clocks / Time

in cal.py, replace the line starting with
regex =
by

regex = '(?<=\})%s(?= )|(?<= )%s(?= )|(?<=\n)%s(?= )|(?<= )%s(?=\n)' % (localtime[2], localtime[2], localtime[2], localtime[2])

The original regex did not work when current day contains 2 significant digits and starts in first column.
hth

Offline

#70 2015-12-14 15:43:39

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

${execpi 3600 faketime '2016-01-31' /media/5/Conky/scripts/cal.py}
${execpi 3600 faketime '2016-07-03' /media/5/Conky/scripts/cal.py}
${execpi 3600 faketime '2016-07-10' /media/5/Conky/scripts/cal.py}
${execpi 3600 faketime '2016-07-17' /media/5/Conky/scripts/cal.py}
${execpi 3600 faketime '2016-07-24' /media/5/Conky/scripts/cal.py}
${execpi 3600 faketime '2016-07-31' /media/5/Conky/scripts/cal.py}

OK, awesome xaos52 that cleared up those lines  - but there is a new one ... OOPS! that is.  Jan 2016 and July 2016 (and others I'm sure have 6 rows for weeks and the first date on the 6th line doesn't work.  And looking at what you gave me for that regex line I would be better off reading Martian.  smile
2015_12_14_12_38_39_Scrot11.jpg

 14 Dec 15 | 12:42:43 ~
    $ faketime '2016-07-24' /media/5/Conky/scripts/cal.py
${color7}${goto 51}     July 2016
${goto 51}Su Mo Tu We Th Fr Sa
${goto 51}                1  2
${goto 51} 3  4  5  6  7  8  9
${goto 51}10 11 12 13 14 15 16
${goto 51}17 18 19 20 21 22 23
${goto 51}${color8}24${color7} 25 26 27 28 29 30
${goto 51}31
${goto 51}
 
 14 Dec 15 | 12:42:58 ~
    $ faketime '2016-07-31' /media/5/Conky/scripts/cal.py
${color7}${goto 51}     July 2016
${goto 51}Su Mo Tu We Th Fr Sa
${goto 51}                1  2
${goto 51} 3  4  5  6  7  8  9
${goto 51}10 11 12 13 14 15 16
${goto 51}17 18 19 20 21 22 23
${goto 51}24 25 26 27 28 29 30
${goto 51}31
${goto 51}
 
 14 Dec 15 | 12:43:06 ~
    $ 

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#71 2015-12-14 16:14:46

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Conky - Calendars / Clocks / Time

I think this covers all bases:

regex = '(?<=\})%s(?= )|(?<= )%s(?= )|(?<=\n)%s(?= )|(?<= )%s(?=\n)|(?<=\})%s(?=\n)' % (localtime[2], localtime[2], localtime[2], localtime[2], localtime[2])

we had not covered the case where current date is 2 digits, preceeded by '}' and followed by a new line.

Not martian, but can become very complicated: python regular expressions.

Offline

#72 2015-12-14 17:01:00

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

xaos52 wrote:

we had not covered the case where current date is 2 digits, preceeded by '}' and followed by a new line.

...aaaaand a parrrrtriiiiidge in a pear treeeeeee! angel

xaos52 wrote:

Not martian, but can become very complicated: python regular expressions.

wanna bet, that's Martian if I ever saw a "?<=\"  lol  lol

AND THAT'S A WRAP!

@ unklar - make sure you get this version.

cal.py

#!/usr/bin/env python
# by Crinos512
#regex tweaked by xaos52
#https://forums.bunsenlabs.org/viewtopic.php?pid=11683#p11683
import time, calendar, re

localtime = time.localtime(time.time())
calendar.setfirstweekday(calendar.SUNDAY)
#calendar.setfirstweekday(calendar.MONDAY)
cal = calendar.month(localtime[0], localtime[1])

parts = cal.split('\n')
cal = '${color7}${goto 51}' + '\n${goto 51}'.join(parts)
regex = '(?<=\})%s(?= )|(?<= )%s(?= )|(?<=\n)%s(?= )|(?<= )%s(?=\n)|(?<=\})%s(?=\n)' % (localtime[2], localtime[2], localtime[2], localtime[2], localtime[2])
replace = '${color8}%s${color7}' % localtime[2]
newCal = re.sub(regex, replace, cal)
print newCal

I don't think I'll ever understand regular expressions as much as I try.  The only thing I see there that I recognize " | " because I use it,
${ .... | cut -c-18} or ${ .... | fold -sw18}
and =< is equal to or less than  but fail to see how " ? is equal to or less than \ "
Oh well, it works, I'm happy.
2015_12_14_14_02_20_Scrot11.jpg

Thank you xaos52

The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#73 2015-12-14 17:09:44

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: Conky - Calendars / Clocks / Time

In this case... it is a positive lookbehind assertion

(?<=...)

    Matches if the current position in the string is preceded by a match for ... that ends at the current position. This is called a positive lookbehind assertion. (?<=abc)def will find a match in abcdef, since the lookbehind will back up 3 characters and check if the contained pattern matches. The contained pattern must only match strings of some fixed length, meaning that abc or a|b are allowed, but a* and a{3,4} are not. Group references are not supported even if they match strings of some fixed length. Note that patterns which start with positive lookbehind assertions will not match at the beginning of the string being searched; you will most likely want to use the search() function rather than the match() function:

Offline

#74 2015-12-14 20:10:19

unklar
Member
Registered: 2015-10-31
Posts: 1,263

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

@ unklar - make sure you get this version.

done   big_smile

@xaos52
equally thank you. You are great!

Offline

#75 2016-03-28 16:36:30

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,438

Re: Conky - Calendars / Clocks / Time

I like clocks ... so another clock.  mrpeachy's yearclock.lua is an interesting script to say the least ... circles and dots!  I added the text to just to test while working on it.

I also changed all instances of the 'circles' to a thickness of 1 and all instances of the dots to size 6. (old sizes are commented)  Then I did some colour changes so the different elements would stand out (old black-grey colours preserved in comments).

Lastly I used 'faketime' to test various times displayed; IE:

 28 Mar 16 @ 10:46:15 ~
  $ faketime '2016-03-08 15:15:00' conky -q -c /media/5/Conky/S11_YearClock.conky
[2]+  Done                    pkill -xf "conky -q -c /media/5/Conky/S11_YearClock.conky"
 
 28 Mar 16 @ 10:49:26 ~
  $ pkill -xf "conky -q -c /media/5/Conky/S11_YearClock.conky" &
[1] 1647
[1]+  Done                    pkill -xf "conky -q -c /media/5/Conky/S11_YearClock.conky"
 
 28 Mar 16 @ 10:49:53 ~
  $ faketime '2000-12-01 00:00:00' conky -q -c /media/5/Conky/S11_YearClock.conky
 
 28 Mar 16 @ 10:50:24 ~
  $ pkill -xf "conky -q -c /media/5/Conky/S11_YearClock.conky" &
[1] 1900
[1]+  Done                    pkill -xf "conky -q -c /media/5/Conky/S11_YearClock.conky"
 
 28 Mar 16 @ 10:51:28 ~
  $

At first I thought the "month" dot position was not working right, but with different "times" it became apparent that the month dot flowed smoothly around the ring as the days advanced from 01 to 28, 29, 30, 31, 01, 02 ... DUH!  talk about feel silly!

Anyway ... images or did not happen (set to: alignment mm)
2016_03_28_12_13_59_Scrot11.jpg  2016_03_28_12_19_38_Scrot11.jpg
2016_03_28_12_20_40_Scrot11.jpg  2016_03_28_12_22_24_Scrot11.jpg
2016_03_28_12_22_45_Scrot11.jpg  2016_03_28_12_23_20_Scrot11.jpg
2016_03_28_12_24_03_Scrot11.jpg  2016_03_28_12_24_50_Scrot11.jpg

2016_03_28_12_26_47_Scrot11.jpg<<-- a few minutes ago with no faketime.

The conky:

# pkill -xf "conky -q -c /media/5/Conky/S11_YearClock.conky" &
###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour yellow
own_window_hints undecorated,below,skip_taskbar,skip_pager ##,sticky
own_window_class Conky
own_window_title YearClock.lua

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
# own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 255

minimum_size 600 600 	## w|h
maximum_width 600

gap_x 0	## l|r
gap_y 0	## u|d

alignment mm
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
use_xft yes
xftfont Monofur:size=14
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
######################################################  End Font Settings  ###
## --------- Color Settings
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
## ---------- End Color Settings
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Subtract (file system) buffers from used memory?
no_buffers yes

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
###  yearclock.lua  ###########################################################
lua_load /media/5/Conky/LUA/yearclock.lua
lua_draw_hook_pre draw_clock
#lua_draw_hook_post draw_clock

#######################################################  End LUA Settings  ###

###  Removed from the final  ###
#${goto 180}${color 000000}Month ${color 778899}Day ${color DCDCDC}Hour ${color 00BFFF}Minute ${color FF4500}Second${color}
#${goto 180}${color 000000}${time %m}    ${color 778899}${time %d}  ${color DCDCDC}${time %H}   ${color 00BFFF}${time %M}     ${color FF4500}${time %S}${color}

update_interval 1
TEXT

yearclock.lua -- well commented for the different settings.

--yearclock by mrpeachy
require 'cairo'

function conky_draw_clock()
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)
-- not using CPU do not need the following two lines nor the second last 'end'
-- local updates=tonumber(conky_parse('${updates}'))
-- if updates > 5 then

--year clock
year=os.date("%G")
t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
feb=(os.difftime(t1,t2))/(24*60*60)
yeardays=31+feb+31+30+31+30+31+31+30+31+30+31
monthdays = { 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
yearsec=yeardays*24*60*60

rad=60
across=300
down=300
yrlw=1	-- yr (months) circle - lw = line width

circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.00,0.00,1) -- circle colour: Black
cairo_set_line_width(cr, yrlw)
cairo_stroke (cr)

--hours
hrs=os.date("%H")
--minutes
min=os.date("%M")
--seconds
sec=os.date("%S")
--day of month
day=os.date("%e")
--month-1
month=os.date("%m")
--position in the year indicator
mdays=0
for i=1,(month-1) do
mdays=mdays+monthdays[i]
end
yrsecs=(mdays*24*60*60)+(day*24*60*60)+(hrs*60*60)+(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(yearsec))*yrsecs)
yrx=0+outer1*(math.sin(text_arc))
yry=0-outer1*(math.cos(text_arc))
circrad=6 --6
circx=yrx
circy=yry
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.00,0.00,1)  -- dot color Black
cairo_fill (cr)
cairo_translate (cr, -across, -down)

--day of the month indicator
rad=50
across=yrx+across
down=yry+down
mnlw=1

circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.47,0.53,0.60,1) -- circle colour: LightSlateGray
cairo_set_line_width(cr, mnlw)
cairo_stroke (cr)

mndays=(monthdays[tonumber(month)])*24*60*60
mnday=(day*24*60*60)+(hrs*60*60)+(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(mndays))*mnday)
mnx=0+outer1*(math.sin(text_arc))
mny=0-outer1*(math.cos(text_arc))
circrad=6 --5
circx=mnx
circy=mny
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.47,0.53,0.60,1) -- dot colour: LightSlateGray
cairo_fill (cr)
cairo_translate (cr, -across, -down)

--hours of the day
rad=40
across=mnx+across
down=mny+down
dylw=1

circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.86,0.86,0.86,1) -- circle colour: Gainsboro
cairo_set_line_width(cr, dylw)
cairo_stroke (cr)

hours=24*60*60
hour=(hrs*60*60)+(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(hours))*hour)
dyx=0+outer1*(math.sin(text_arc))
dyy=0-outer1*(math.cos(text_arc))
circrad=6 --4
circx=dyx
circy=dyy
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.86,0.86,0.86,1) -- dot colour: Gainsboro
cairo_fill (cr)
cairo_translate (cr, -across, -down)

--minutes of hour indicator
rad=30
across=dyx+across
down=dyy+down
hrlw=1

circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.75,1.00,1) -- circle colour: DeepSkyBlue
cairo_set_line_width(cr, hrlw)
cairo_stroke (cr)

minutes=60*60
minute=(min*60)+(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(minutes))*minute)
hrx=0+outer1*(math.sin(text_arc))
hry=0-outer1*(math.cos(text_arc))
circrad=6 --3
circx=hrx
circy=hry
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,0.00,0.75,1.00,1) -- circle colour: DeepSkyBlue
cairo_fill (cr)
cairo_translate (cr, -across, -down)

--seconds of minute indicator
rad=20
across=hrx+across
down=hry+down
seclw=1

circrad=rad
circx=across
circy=down
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,1.00,0.27,0.00,1) -- circle colour: OrangeRed
cairo_set_line_width(cr, seclw)
cairo_stroke (cr)
seconds=60
second=(sec)
cairo_translate (cr, across, down)
outer1=rad
text_arc=((2*math.pi/(seconds))*second)
scx=0+outer1*(math.sin(text_arc))
scy=0-outer1*(math.cos(text_arc))
circrad=6 --2
circx=scx
circy=scy
cairo_arc(cr,circx,circy,circrad,0,2*math.pi)
cairo_close_path(cr)
cairo_set_source_rgba(cr,1.00,0.27,0.00,1) -- circle colour: OrangeRed
cairo_fill (cr)
cairo_translate (cr, -across, -down)
-- end
end

Colour coding LUA scripts the easy way.  twoion's map.py script.

Thank you mrpeachy and twoion.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

Board footer

Powered by FluxBB