You are not logged in.
Mine is still working ... have to go out - will check when I return.
EDIT: Yup - still going strong. 12:39 Local | 15:39 UTC
Last edited by Sector11 (2016-05-04 15:43:42)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
It works fine here.
What's your location?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Revived an old Clock Yesterday:
EDIT: the conky, the LUA script and the clock-face image updated: 06 May 2016
Why is that of interest here ... well, add Teo's 1b1) Accuweather - Images - 1b1_29-10-15 script and:<- 05 May | 06 May ->
A Little Legend
From 00:00 to 12:00 -> Good Morning
From 12:00 to 18:00 -> Good Afternoon
From 18:00 to 00:00 -> Good Evening.
Yellow +15° = Feels like/RealFeel/Sensación Térmica/Heat Index/Wind Chill - whatever.
White 15° = Current temperature
↑15 = Today's High ↓8 Today's Low
s↑ = Sunrise m↑ Moonrise
The rest is pretty well self explanatory.
The 24_ds.png - required updated: 2016-05-06
One can:
1. leave it as is,
2. continue with "Forecast" above, below or beside it, or
3. add regular conky - something like:
The_Clock_2.conky updated: 2016-05-06
# pkill -xf "conky -q -c /media/5/Conky/The_Clock_2.conky" &
# edited and working Tue 03 May 2016 16:32
# Updated Fri 05 May 2016 11:03
## ---------- Begin Window Settings
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 The Clock 2
# 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 70
minimum_size 200 200
maximum_width 200
gap_x 10 ## l|r
gap_y 10 ## u|d
alignment tr
## ---------- End Window Settings
## ---------- Font Settings
## Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Fantasque Sans Mono:bold:size=12
## 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
## --------- End Font Settings
## --------- Color Settings
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color f5fffa ## MintCream
color1 778899 ## LightSlateGray
color2 FFA07A ## LightSalmon
color3 87CEFA ## LightSkyBlue
color4 48D1CC ## MediumTurquoise
color5 FFDEAD ## NavajoWhite
color6 00BFFF ## DeepSkyBlue
color7 B0E0E6 ## PowderBlue
color8 FFD700 ## Gold
color9 CD5C5C ## IndianRed
## ---------- End Color Settings
## ---------- Begin Borders Section
## border margins
border_inner_margin 5
border_outer_margin 0
## default_graph_size 15 40
## ---------- End Borders Secton
## ---------- Begin Miscellaneous Section
## Boolean value, if true, Conky will be forked to background when started.
background no ## 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 slystem) buffers from used memory?
no_buffers yes
## Use the Xdbe extension? (eliminates flicker)
## It is highly reco${color}mmended to use own window with this one
## so double buffer won't be so big.
double_buffer yes
## ---------- End Miscellaneous Section
#--- LUA Settings
#-- CLOCK LUA
lua_load /media/5/Conky/LUA/12-24_DOTS_TC_2.lua
lua_draw_hook_pre main
#--- End LUA Settings
update_interval 1
#${image /media/5/Conky/images/red+x.png -p 0,35 -s 200x200}${image /media/5/Conky/images/24_ds.png -p 0,5}\
#${image /media/5/Conky/images/yellow+x.png -p 14,85 -s 170x102}${image /media/5/Conky/1b1_accuweather_images/cc.png -p 12,53 -s 170x102}\
#${texeci 600 bash /media/5/Conky/1b1_accuweather_images/1b1}\
TEXT
${texeci 600 bash /media/5/Conky/1b1_accuweather_images/1b1}\
${image /media/5/Conky/images/24_ds.png -p 0,35}\
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 14,85 -s 170x102}\
${alignc}${time %a %d %b %Y}
${alignc}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}Good Afternoon${else}Good Evening${endif}${endif}
${font monofur:bold:size=16}${color8}±${execi 600 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
${alignr}${color}${execi 600 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${font}
${font monofur:bold:size=16}${color9}↑${execi 600 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${alignr}${color6}↓${execi 600 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}${font}
${alignc}${execi 600 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}
UVI ${execi 600 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond} /11\
${alignr}Hum ${execi 600 sed -n '32p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${color8}s↑ ${execi 600 sed -n '39p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${alignr}${color7}m↑ ${execi 600 sed -n '41p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}
${color8}s↓ ${execi 600 sed -n '40p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${alignr}${color7}m↓ ${execi 600 sed -n '42p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}
12-24_DOTS_TC_2.lua - does 12 or 24 hours ... this is 24HR updated: 2016-05-06
--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010
Edited by Sector11 for TheClock-2 - 06 May 2016
lua_load /path/clock.lua
lua_draw_hook_pre main
TEXT
]]
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)
--##############################################################################
-- SETTINGS AREA
--##############################################################################
-- image
-- how do I add images.
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image /media/5/Conky/images/red_1.png -p 0,0 -s 35x35}")
--12 OR 24
local clock_type=24
--CLOCK SETTINGS
-- for the DOTS around the clock
local clock_radius=100 --100
local clock_centerx=105 --106
local clock_centery=142 --106
-- SET MARKS
--how many marks around edge
local number_marks=0 --24
--set mark length
local m_length=0.5
--set mark line width
local m_width=1.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
--SET BORDER OPTIONS
local clock_border_width=0 --2
--set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1 --full opaque white
--gap from clock border to hour marks
local b_to_m=5
--SECONDS HAND SETUP
--set length of seconds hand
local sh_length=75 --110
--set hand width
local sh_width=1 --1
--set hand line cap
local sh_cap=CAIRO_LINE_CAP_ROUND
--set seconds hand color
local shr,shg,shb,sha=1,0,0,1 --fully opaque red
--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=80 --90
--set hand width
local mh_width=1.5 --1.5
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=0.1,0.8,0.9,1,1 --fully opaque blue
--HOUR HAND SETUP
--set length of hour hand
local hh_length=55 --60
--set hand width
local hh_width=4.0 --2
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=0.1,0.6,0.9,1,1 --fully opaque blue
--##############################################################################
-- END SETTINGS AREA
--##############################################################################
--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
--set line cap type
cairo_set_line_cap (cr, m_cap)
--set line width
cairo_set_line_width (cr,m_width)
--set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
--start for loop
for i=1,number_marks do
--drawing code using the value of i to calculate degrees
--calculate start point for 12 oclock mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
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 oclock mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
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
--TIME CALCULATIONS ###########################
if clock_type==12 then
hours=tonumber(os.date("%I")) --12 hour clock
--convert hours to seconds
h_to_s=hours*60*60
elseif clock_type==24 then
hours=tonumber(os.date("%H")) --24 hour clock
--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 ############################
--convert hours, minutes & seconds to seconds
hsecs=h_to_s+m_to_s+seconds
--calculate number of degrees for each hand per second
hsec_degs=hsecs*(360/(60*60*clock_type)) -- USING AN EQUATION INSTEAD OF TYPING THE CALCULATION IN BECAUSE THE RESULT OF 360/43200 HAS DECIMAL PLACES
--set radius we will use to calculate hand points
radius=hh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes 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)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap (cr, hh_cap)
cairo_stroke (cr)
--DRAW MINUTES HAND ############################
--convert minutes & seconds to seconds
msecs=m_to_s+seconds
--calculate degrees for the hand each second
msec_degs=msecs*0.1
--set radius we will use to calculate hand points
radius=mh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes 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)
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 the hand moves
sec_degs=seconds*6
--set radius we will use to calculate hand points
radius=sh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of second 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 and draw line
cairo_set_line_width (cr,sh_width)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap (cr, sh_cap)
cairo_stroke (cr)
--##############################################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function
Last edited by Sector11 (2016-05-06 13:35:31)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Nice one S11!!!
Is this an updated version of this?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Nice one S11!!!
Is this an updated version of this?
Same LUA script (the 12 or 24HR clock) with different clock images and slightly different layout. I like this one better - it look cleaner.
------
EDIT "MY" post above edited to include the clock-face image
Last edited by Sector11 (2016-05-04 20:07:14)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
@S11
Ok then, I updated the link on the first page.
@fvirgola80
Sure mate, why not?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@ Teo & fvirgola80 - Thank you both.
I like that LUA clock for the 12-24 aspect. I have used 24HR time most of my life.
@ fvirgola80
I left the clock as a simple "current weather" clock on purpose, but feel free to add moon info if you wish. Or were you hinting for me to do it? It's an idea - today's moon data.
I've also noticed it's spacing is a bit off and I have sunrise and moonrise but no sunset moonset times for them. OOPS!
So a tweak is warrented
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ Teo & fvirgola80 - Thank you both.
I like that LUA clock for the 12-24 aspect. I have used 24HR time most of my life.
@ fvirgola80
I left the clock as a simple "current weather" clock on purpose, but feel free to add moon info if you wish. Or were you hinting for me to do it? It's an idea - today's moon data.
I've also noticed it's spacing is a bit off and I have sunrise and moonrise but no sunset moonset times for them. OOPS!
![]()
So a tweak is warrented
I already have an idea in mind my friends ... may the force be with you ....
by luke
Luke is back
Nothing happens by chance
Offline
I already have an idea in mind my friends ... may the force be with you ....
by luke
![]()
![]()
![]()
Luke is back
Then I will wait for you before I do anything other then tweak the spacing issue I noticed.
- it's a really a minor thing, but it bugs me.
@Teo - will post tweak in post #784 so there's no need for dups and changing links in the OP.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
fvirgola80 wrote:I already have an idea in mind my friends ... may the force be with you ....
by luke
![]()
![]()
![]()
Luke is backThen I will wait for you before I do anything other then tweak the spacing issue I noticed.
- it's a really a minor thing, but it bugs me.@Teo - will post tweak in post #784 so there's no need for dups and changing links in the OP.
@Yoda (Sector11)My Master Yoda I immediately start working ... may the force be with me ....
@Obi-Wan (Teo)My Master Obi-Wan give me strength
]:D
Nothing happens by chance
Offline
@Teo - will post tweak in post #784 so there's no need for dups and changing links in the OP.
Oops, too late...
I've already changed it.
@Obi-Wan (Teo)My Master Obi-Wan give me strength
May the conky be with you Luke
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Sector11 wrote:@Teo - will post tweak in post #784 so there's no need for dups and changing links in the OP.
Oops, too late...
I've already changed it.
OK, it wasn't clear. Yes, you added post #784 to the OP, Thank you, but it needs another couple of tweaks.
The spacing is off a bit, and as the guy that did it - it bugs me!
When those are done I'll update the conky in post #784.
EDIT: Done - it's been tweaked and the post updated.
Last edited by Sector11 (2016-05-06 14:00:30)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
The strength of my teachers is with me I'm " luke skywalker " , thanks to Master Yoda and Obi - Wan teacher I gave birth to conky Clock Mega , formed by conky " 1b1-1c - 4 " The final test is up to Master Yoda ..... Thank you Obi - Wan for strength
@Yoda (Sector11) I sent you an email .. Thank you Teacher
@Obi-Wan (TEO) As soon as the teacher will have watched the job will post it ... Thank you Teacher
Nothing happens by chance
Offline
Ooooooooooooooooooo!!! NICE!
Looks like you are missing some moon data though
Must look at the conky and check that.
Looks GREAT though.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
Here Master , I await your report on the code
![]()
Love the background color, nice conky. How does that moonphase feature work? Does it receive the data from a website?
Offline
fvirgola80 wrote:Here Master , I await your report on the code
![]()
Love the background color, nice conky. How does that moonphase feature work? Does it receive the data from a website?
Hello Matrix , the moon phase works have just fixed a bug in conky , obviously aspect clearance from Sector 11 before publishing the Conky . The website for the lunar phases is http://www.moongiant.com/phase/today/
Nothing happens by chance
Offline
How does that moonphase feature work? Does it receive the data from a website?
That conky uses three scripts that Teo created found in the Opening Post (OP) of this thread:
1b1) Accuweather - Images - 1b1_29-10-15, 1c) Accuweather Hourly Forecast - 1c_14-3-16 and 4) Moon phases' script - 4_2-6-15
fvirgola80 feels obliged to have me check out the script before he published it since the base of the conky comes from the combination clock weather conky I posted here.
Other than a few 'spacing' tweaks, I edited the scripts in the original post, it works fine, all elements are there and as the only conky running it draws very little CPU usage on my triple core machine, see the bottom line of the image.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
martix wrote:How does that moonphase feature work? Does it receive the data from a website?
That conky uses three scripts that Teo created found in the Opening Post (OP) of this thread:
1b1) Accuweather - Images - 1b1_29-10-15, 1c) Accuweather Hourly Forecast - 1c_14-3-16 and 4) Moon phases' script - 4_2-6-15
fvirgola80 feels obliged to have me check out the script before he published it since the base of the conky comes from the combination clock weather conky I posted here.
Other than a few 'spacing' tweaks, I edited the scripts in the original post, it works fine, all elements are there and as the only conky running it draws very little CPU usage on my triple core machine, see the bottom line of the image.
http://s20.postimg.org/vmylda6dl/2016_05_07_09_24_56_Scrot11.jpg
The force is with us ... Yoda , Obi - Wan and Luke
Nothing happens by chance
Offline