You are not logged in.

#1421 2016-11-27 22:06:29

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@unklar

Yea, the space shuttle was a challenge but well worth it. I learned a lot doing it.

Gutterslob still walks the halls of BL but changed his handle:  glittersloth, but not around a lot.  Has other interests.   Excellent person, I learned a lot from him over at #! and that's why I added him as my co-pilot, to show respect, still have a lot of respect for him.

[ C off ] = CapLock key on the keyboard [on|off]
[ N on ] = NumLock on the keyboard [on|off]

${exec xset q | grep Caps |awk '{print "C "$4}'}
${exec xset q | grep Num |awk '{print "N "$8}'}
 
 27 Nov 16 @ 18:51:05 ~
  $ exec xset q | grep Num
    00: Caps Lock:   off    01: Num Lock:    on     02: Scroll Lock: off
 
 27 Nov 16 @ 18:51:59 ~
  $ exec xset q | grep Num |awk '{print "N "$8}'
N on
 
 27 Nov 16 @ 18:52:51 ~
  $ xset q | grep Caps |awk '{print "C "$4}'
C off
 
 27 Nov 16 @ 18:52:59 ~
  $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1422 2016-11-27 22:07:26

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

cool   lol

Aaaaaaaaaaaaa I see you saw I have you covered!  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1423 2016-12-04 12:56:45

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I was in contact with rwyarbrough.  He's busy at work, he's coming back ... when life permits  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1424 2016-12-04 19:23:26

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

Let me introduce you to S11, a master and a scholar... wink

No doubt!

Offline

#1425 2016-12-04 19:46:56

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

He's busy at work, he's coming back ... when life permits  big_smile

"When life permits" is a statement that is right on target sir.

Yes, I was head down working hard at my day job this week and didn't have a chance to get on the forum. I travel almost exclusively and that makes having a chance for downtime limited at times. Those bills just don't understand that we would all rather be tinkering with computers all day than working to make ends meet. At least I get to tinker with computers on my day job. Network Security is what pays the bills for me.

Enough of that - back to conky! I have a couple of scripts I'm trying out now thanks to the Master - Sector11.

PS - Great handle btw

I have to admit that I'm a little intimidated by all of the talent here. I'm a little scared to share anything with this group in fear that it would pale in comparison to the great work on display here.

Offline

#1426 2016-12-04 21:05:24

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

rwyarbrough wrote:
Sector11 wrote:

He's busy at work, he's coming back ... when life permits  big_smile

"When life permits" is a statement that is right on target sir.

Please - no sir!  We're on a first name basis here, S11, Sec11 or even Sector ... just don't call me late for coffee break.  GRRRRRRRRR!!!

Yes, I was head down working hard at my day job this week and didn't have a chance to get on the forum. I travel almost exclusively and that makes having a chance for downtime limited at times. Those bills just don't understand that we would all rather be tinkering with computers all day than working to make ends meet. At least I get to tinker with computers on my day job. Network Security is what pays the bills for me.

Been there - done that - retired.  Now I do conkys  smile

Enough of that - back to conky! I have a couple of scripts I'm trying out now thanks to the Master - Sector11.

PS - Great handle btw

Thank you!

I have to admit that I'm a little intimidated by all of the talent here. I'm a little scared to share anything with this group in fear that it would pale in comparison to the great work on display here.

Let me put it this way ... do what you can, if you get stuck, ask, there are a lot of people here - I'm just the most fanatic is all.  But remember you'll need to show code and a scrot will be nice too.

Feel free to show anything you want we were all new at one point.  Network Security means you know more about computers than I do .. I just do conky other than that "complete noob".
Don't be shy ... my first conky was FUGLY!!!!! and 'almost' works today.
7SRMm7NE.jpg
Mind you that was back in 2007, on  P-III running Ubuntu Gnome 7.04

But please bear in mind, this thread for Teos weather scripts - even though he said he doesn't mind if we stray a bit, it's the polite thing to do.

if you're playing with the v9000 script I started a thread and we have a Conky - Calendars / Clocks / Time thread if you need help there.

Pretty well anything else start; a thread in GUI & Applications and if you don't see me in there after 24 hours kick my butt in a PM  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1427 2016-12-05 00:57:58

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

I have to admit, my interest in weather is a lot older than my interest in conky, by at least 30+ years.  So one can imagine how happy I was to discover they work well together.  smile


You could always get one of these from Amazon and feed it directly to conky!

http://rwyarbrough.homelinux.net/weatherstation.jpg

Last edited by Head_on_a_Stick (2016-12-05 07:18:16)

Offline

#1428 2016-12-05 02:24:42

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Yea, but I'm not in the "United States of Cheap Technological Stuff", I'm in "Argentina with it's 200% Markup" and if - and I do mean "IF" - that got past customs the import tax would be based on the inflated price here.

So ... conky is just fine.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1429 2016-12-11 20:08:59

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Coming soon to a weather thread near you:

8a2abQ6Y.jpg

Teo's 2015 Accuweather ChronoClock Moon Conky (v9)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1430 2016-12-12 20:58:12

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Geeze!  Can I leave well enough alone or create something simple!
NOOOOOOOOOOOOOOOOOOOOOOOO!
h8x7zk8G.jpg
I gotta create another couple of monsters.  Well the second one is Teo's fault, he gave is the nice 2016 images that I REALLY like.  So tongue  to Teo! »»»  {) we love ya Teo!

The cat is thinking:  "Too much information! Brain overload! Shutting down... 5...4...3.."  big_smile

I got the "Teo Weather ChronoClock 2015" conky (inside right) done and looked at the new 2016 conky on the left soooo I made another conky, "Teo Weather ChronoClock 2016", with the 2016 images (inside left).  So much easier as the images are square, and then I stripped the moon stuff, well not all.  And turned it into a machine info conky as well.  The Email and exchange rates section can be stripped out quite easily.

So what's needed:
1. Both conkys use font: Fira Mono (Thank you Teo I like this one)
2. 1_accu_ChronoClock.lua modified while creating these conkys: Fira Mono & DS-Digital
3. draw-bg.lua (also has a LUA calendar by mrpeachy)
4. rex-convert.sh - not included - exchange rates.
5. conkyEmail - not included - emails for C: and S:

I "think" that's everything, if you find something missing just yell!

WARNING: Neither of these conkys are running the 1_accuweather or moon scripts to get the information.  You will need to add those yourself and if needed get the script from the OP.
- - -  Also - check the /paths/to/various/elements

draw-bg.lua

--[[Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75

  the change is that if you set width and/or height to 0
  then it assumes the width and/or height of the conky window

so:

Above and After TEXT  (requires a composite manager or it blinks!)

 lua_load ~/wea_conky/draw-bg.lua
 TEXT
 ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}

OR Both above TEXT (no composite manager required - no blinking!)

 lua_load ~/wea_conky/draw-bg.lua
 lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
 TEXT

Note
${lua conky_draw_bg 20 0 0 0 0 0x000000 0.2}
  See below:        1  2 3 4 5 6        7

${lua conky_draw_bg corner_radius x_position y_position width height color alpha}

covers the whole window and will change if you change the minimum_size setting

1 = 20            corner_radius
2 = 0             x_position l|r
3 = 0             y_position u|d
4 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

######### calendar function ##################################################

then to use it, you activate the calendar function BELOW TEXT like this

${lua luacal {settings}}

#${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
#    x=x position top left
#    y=y position top left
#    tf=title font, eg "mono" must be in quotes
#    tfs=title font size
#    tc=title color
#    ta=title alpha
#    bf=body font, eg "mono" must be in quotes
#    bfs=body font size
#    bc=body color
#    ba=body alpha
#    hf=highlight font, eg "mono" must be in quotes
#    hfs=highlight font size
#    hc=highlight color
#    ha=highlight alpha
#    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts

##### GAPS #####
#    gt=gap from title to body
#    gh=gap horizontal between columns
#    gv=gap vertical between rows
#    sd=start day, 0=Sun, 1=Mon

#    hstyle = heading style, 0=just days, 1=date insert
#    tdf=title date font, eg "mono" must be in quotes
#    tdfs=title date font size
#    tdc=title date color
#    tda=title date alpha

# test line
-- ${lua luacal {x=20,y=100,tf="Monofur",tfs=24,tc=0xFFDEAD,ta=1,bf="Monofur",bfs=24,bc=0xFFDEAD,ba=1,hf="Monofur",hfs=24,hc=0x00BFFF,ha=1,sp="0",gh=60,gt=26,gv=20,sd=0,hstyle=1,tdf="Monofur",tdfs=24,tdc=0x00BFFF,tda=1}}


]]

require 'cairo'
local    cs, cr = nil
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg(r,x,y,w,h,color,alpha)
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) 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)
w=w
h=h
if w=="0" then w=tonumber(conky_window.width) end
if h=="0" then h=tonumber(conky_window.height) end
cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
--top left mid circle
local xtl=x+r
local ytl=y+r
--top right mid circle
local xtr=(x+r)+((w)-(2*r))
local ytr=y+r
--bottom right mid circle
local xbr=(x+r)+((w)-(2*r))
local ybr=(y+r)+((h)-(2*r))
--bottom right mid circle
local xbl=(x+r)
local ybl=(y+r)+((h)-(2*r))
-----------------------------
cairo_move_to (cr,xtl,ytl-r)
cairo_line_to (cr,xtr,ytr-r)
cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
cairo_line_to (cr,xbr+r,ybr)
cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
cairo_line_to (cr,xbl,ybl+r)
cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
cairo_line_to (cr,xtl-r,ytl)
cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
cairo_close_path(cr)
cairo_fill (cr)
------------------------------------------------------------
cairo_surface_destroy(cs)
cairo_destroy(cr)
return ""
end
-- ###### calendar function ##################################################
function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
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)
--############################################################################
if caltab.x==nil then
caltab=loadstring("return" .. caltab)()
end
local cal_x=caltab.x
local cal_y=caltab.y
local tfont=caltab.tf		or "mono"
local tfontsize=caltab.tfs	or 12
local tc=caltab.tc			or 0xffffff
local ta=caltab.ta			or 1
local bfont=caltab.bf		or "mono"
local bfontsize=caltab.bfs	or 12
local bc=caltab.bc			or 0xffffff
local ba=caltab.ba			or 1
local hfont=caltab.hf		or "mono"
local hfontsize=caltab.hfs	or 12
local hc=caltab.hc			or 0xff0000
local ha=caltab.ha			or 1
local spacer=caltab.sp		or " "
local gaph=caltab.gh		or 20
local gapt=caltab.gt		or 15
local gapl=caltab.gv		or 15
local sday=caltab.sd		or 0
local hstyle=caltab.hstyle	or 0
--convert colors
--local font=string.gsub(font,"_"," ")
local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
--main body text color
local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
--highlight text color
local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
--############################################################################
--calendar calcs
local year=os.date("%G")
local today=tonumber(os.date("%d"))
local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
local feb=(os.difftime(t1,t2))/(24*60*60)
local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
local day=tonumber(os.date("%w"))+1-sday
local day_num = today
local remainder=day_num % 7
local start_day=day-(day_num % 7)
if start_day<0 then start_day=7+start_day end
local month=os.date("%m")
local mdays=monthdays[tonumber(month)]
local x=mdays+start_day
local dnum={}
local dnumh={}
if mdays+start_day<36 then
dlen=35
plen=29
else
dlen=42
plen=36
end
for i=1,dlen do
    if i<=start_day then
    dnum[i]="  "
    else
    dn=i-start_day
        if dn=="nil" then dn=0 end
        if dn<=9 then dn=(spacer .. dn) end
        if i>x then dn="" end
        dnum[i]=dn
        dnumh[i]=dn
        if dn==(spacer .. today) or dn==today then
        dnum[i]=""
        end
        if dn==(spacer .. today) or dn==today then
        dnumh[i]=dn
        place=i
        else dnumh[i]="  "
        end
    end
end--for
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)
if hstyle==0 then
    if tonumber(sday)==0 then
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    else
    dys={"MO","TU","WE","TH","FR","SA","SU"}
    end
    --draw calendar titles
elseif hstyle==1 then
    if tonumber(sday)==0 then
    dys={"SU","MO"," ","  ","  ","FR","SA"}
    cairo_text_extents(cr,"MO",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    else
    dys={"MO","TU"," ","  ","  ","SA","SU"}
    cairo_text_extents(cr,"TU",extents)
    local s=extents.x_advance+gaph
    local f=gaph*5
    local tdfont=caltab.tdf        or "mono"
    local tdfontsize=caltab.tdfs    or 12
    local tdc=caltab.tdc        or 0xffffff
    local tda=caltab.tda        or 1
    cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tdfontsize);
    local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
    cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
    local insert=os.date("%b %y")
    cairo_text_extents(cr,insert,extents)
    local w=extents.x_advance
    cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
    cairo_show_text (cr,insert)
    cairo_stroke (cr)
    end
end
--draw calendar titles
for i=1,7 do
cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, tfontsize);
cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
cairo_show_text (cr, dys[i])
cairo_stroke (cr)
end
--draw calendar body
cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, bfontsize);
cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    end
end
--highlight
cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, hfontsize);
cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
for i=1,plen,7 do
local fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    end
end
--############################################################################
caltab=nil
dlen=nil
plen=nil
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
return ""
end
-- end main function #########################################################

1_accu_ChronoClock.lua: does 4 languages:  See the line: lang="English", -- English French Greek Spanish

--[[ multiple analogue clocks by mrpeachy - 18 Jun 2012
 21 Jun 2012 - Chronograph modifications by Sector11
 22 Jun 2012 - again with mrpeachy's help day names, numbers and month names
 12 Nov 2012 - memory leak plugged - mrpeachy
 26 Nov 2012 - The Clock - Sector11 (small version)

use in conkyrc

lua_load /path/Chronograph.lua
lua_draw_hook_pre main
TEXT

 -- INDEX use search|find with: -- ### sonething ###

 -- ### CLOCK POSITION - AND DEFAULTS ###
 -- ### SET BORDER OPTIONS FOR "CLOCKS" ### -- I don't know how to remove this - NOT NEEDED
 --     See lines 39 to 41 for overall size changes
 -- ### START DIAL B ### Day Names Dial ###
 --     See Lines 77 - 79 and 145 for changes
 -- ### START DIAL C ### Month Names Dial ###
 --     See Lines 143 -145 and 192 for changes
 -- ### START DIAL D ### Day Numbers Dial ###
 --     See Lines 226 & 257 for  changes
 -- ### START CLOCK A ###
 --     See Lines  &  and 456 & 483 changes
 -- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
 -- CLOCK A HOUR HAND
 -- CLOCK A MINUTE HAND SETUP
 -- CLOCK A SECOND HAND SETUP
 -- PART SECOND HAND Lines: 503 519, 531

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

require 'cairo'
 -- ### CLOCK POSITION - AND DEFAULTS ##########################################
local init={
center_x=153, --from 135 = +40
center_y=153, --from 135
radius=140,
lang="English", -- English French Greek Spanish
hour=24, -- 12 | 24
second=true, --true | false - Seconds: dots and numbers IF 12HR
line=true, -- true | false - Part Second Hand
handday=false, -- DAY NAME hand - true or false
--handdaynum=false, -- DAY NUMBER hand - true or false
handmonth=false, -- MONTH NAME hand - true or false
color=0xFF0000, --color for day, day number and month IF NO SECOND HAND
alpha=1 --alpha for day, day number and month IF NO SECOND HAND
}

 -- ONLY NEED ONE COPY OF THIS FUNCTION
function rgb_to_r_g_b(col,alp)
  return ((col / 0x10000) % 0x100) / 255, ((col / 0x100) % 0x100) / 255, (col % 0x100) / 255, alp
end
local colr, colg, colb, cola=rgb_to_r_g_b(init.color,init.alpha)

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local extents=cairo_text_extents_t:create()
tolua.takeownership(extents)

 -- ### CLOCK 12|24 HR SELECTOR ############################
local clock_type_A=init.hour
 -- ############################ CLOCK 12|24 HR SELECTOR ###

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

 -- ### START DIAL B ### Day Names Dial ####################
 -- DIAL POSITION
local center_x=init.center_x
local center_y=init.center_y
local radius=42
 -- FONT
cairo_select_font_face (cr, "Fira Mono", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
 -- TABLE OF TEXT -- in order
if init.lang == "English" then text_days={"Sun","Mon","Tue","Wed","Thr","Fri","Sat",} end
if init.lang == "French" then text_days={"dim","lun","mar","mer","jeu","ven","sam",} end
if init.lang == "Greek" then text_days={"ΔΕΥ","ΤΡΙ","ΤΕΤ","ΠΕΜ","ΠΑΡ","ΣΑΒ","ΚΥΡ",} end
if init.lang == "Spanish" then text_days={"dom","lun","mar","mie","jue","vie","sab",} end

local day_number=tonumber(os.date("%w"))
if init.handday == true then
  for i=1,7 do
 -- work out points
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
else
  for i=1,7 do -- working out points
    if day_number == i-1 then
      cairo_set_source_rgba (cr,0,1,1,1) -- active colour
    else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active day names
    end
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=27
  for i=1,7 do
    if day_number == i-1 then
      cairo_set_source_rgba (cr,0,1,1,1) -- active colour
    else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active
    end
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
  end
end
 -- ######################################### END DIAL B ###

 -- ### START DIAL C ### Month Names Dial ##################
 -- DIAL POSITION
local center_x=init.center_x --(+85)
local center_y=init.center_y
local radius=73
 -- FONT
cairo_select_font_face (cr, "Fira Mono", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
 -- TABLE OF TEXT -- in order
if init.lang == "English" then text_days={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",} end
if init.lang == "French" then text_days={"jan","fév","mar","avr","mai","jui","jul","aôu","sep","oct","nov","déc",} end
if init.lang == "Greek" then text_days={"ΙΑΝ","ΦΕΒ","ΜΑΡ","ΑΠΡ","ΜΑΙ","ΙΟΥ","ΙΟΥ","ΑΥΓ","ΣΕΠ","ΟΚΤ","ΝΟΕ","ΔΕΚ",} end
if init.lang == "Spanish" then text_days={"ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic",} end

local this_month=tonumber(os.date("%m"))
if init.handmonth == true then
  for i=1,12 do
 -- OUTER POINTS POSTION FOR -- ### START DIAL C ## TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
else
  for i=1,12 do
    if this_month == i then
      cairo_set_source_rgba (cr,0,1,1,1) -- active month colour
    else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active month names
    end
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=58
  for i=1,12 do
    if this_month == i then
      cairo_set_source_rgba (cr,0,1,1,1) -- active colour
	 else
      cairo_set_source_rgba (cr,1,1,1,0.07) -- non-active month names
    end
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
  end
end
 -- ######################################### END DIAL C ###

 -- ### START DIAL D ### Day Numbers Dial ##################
 -- GET NUMBER OF DAYS IN CURRENT MONTH
 -- calculate Feb, then set up table
year4num=os.date("%Y")
t1=os.time({year=year4num,month=03,day=01,hour=00,min=0,sec=0});
t2=os.time({year=year4num,month=02,day=01,hour=00,min=0,sec=0});
if init.hour == 12 then
  febdaynum=tonumber((os.difftime(t1,t2))/(12*60*60))
else
  febdaynum=tonumber((os.difftime(t1,t2))/(24*60*60))
end
 -- MONTH TABLE to get number of days
monthdays={31,febdaynum,31,30,31,30,31,31,30,31,30,31}
this_month=tonumber(os.date("%m"))
number_days=monthdays[this_month]
 -- TEXT positioning DAY #'s
local center_x=init.center_x
local center_y=init.center_y
local radius=105
cairo_select_font_face (cr, "DS-Digital", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 20)
local this_day=tonumber(os.date("%d"))
  for i=1,number_days do
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/number_days)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    --only print even numbers
    if math.mod(i, 2) == 0 and math.mod(this_day, 2)==0 then
    text=string.format("%02d",i) --formats numbers to double digits
    elseif math.mod(i, 2) ~= 0 and math.mod(this_day, 2)~=0 then
    text=string.format("%02d",i) --formats numbers to double digits
    else
    text=""
    end --odd even matching
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
	if i==this_day then
     cairo_set_source_rgba (cr,0,1,1,1) -- active colour
	else
	cairo_set_source_rgba (cr,1,1,1,0.35) -- dim inactive numbers
	end
     cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
     cairo_show_text (cr, text)
     cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=90
  for i=1,number_days do
    local point=(math.pi/180)*((360/number_days)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
	if i==this_day then
     cairo_set_source_rgba (cr,0,1,1,1) -- active colour
	else
	cairo_set_source_rgba (cr,1,1,1,0.35) -- dim the points
	end
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
  end
 -- ######################################### END DIAL D ###

 -- ### START CLOCK A ######################################
 -- SET MARKS ###
 -- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
local number_marks_A=init.hour
 -- set mark length
local m_length_A=0 -- doesn't work but can't delete
 -- set mark width
local m_width_A=0 -- doesn't work but can't delete
 -- 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,0 -- opaque white -- doesn't work but can't delete

 -- SETUP HOUR HANDS ###
 -- CLOCK A HOUR HAND
hh_length_A=90
 -- set hour hand width
hh_width_A=4
 -- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
 -- set hour hand color
 -- hhr,hhg,hhb,hha=1,0,1,0 -- fully opaque white --doesn't work

 -- SETUP MINUTE HANDS ###
 -- CLOCK A MINUTE HAND SETUP
 -- set length of minute hand
mh_length_A=123
 -- set minute hand width
mh_width_A=2
 -- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
 -- set minute hand color
--mhr,mhg,mhb,mha=1,1,1,0.5 -- fully opaque white --doesn't work

 -- SETUP SECOND HAND ###
 -- CLOCK A SECOND HAND SETUP -- DOESN'T WORK - Why ???????????????????????????
 -- set length of seconds hand -- yes I know it is commented out!
--sh_length_A=150
 -- set hour hand width
--sh_width_A=2
 -- set hour hand line cap
--sh_cap=CAIRO_LINE_CAP_ROUND
 -- set seconds hand color
--shr,shg,shb,sha=1,0,0,1 -- fully opaque red

 -- PART SECOND HAND
--position
--get seconds value
local seconds=tonumber(os.date("%S"))
--calculate rotation of second hand in degrees
if init.line == true then
  local arc=(math.pi/180)*((360/60)*seconds)
  --calculate point 1
  local radius1=120
  local x1=0+radius1*math.sin(arc)
  local y1=0-radius1*math.cos(arc)
  --calculate point 2
  local radius2=130
  local x2=0+radius2*math.sin(arc)
  local y2=0-radius2*math.cos(arc)
  --draw line connecting points
  cairo_move_to (cr, center_x+x1,center_y+y1)
  cairo_line_to (cr, center_x+x2, center_y+y2)
  cairo_set_source_rgba (cr,255/255,0/255,0/255,1) -- PART SECOND HAND
  cairo_stroke (cr)
end

 -- CLOCK A ### 12 HR TIME ###
 -- CLOCK SETTINGS
clock_radius=0 --does not work
clock_centerx=init.center_x -- centre of Clock hands
clock_centery=init.center_y -- centre of Clock hands
 -- DRAWING CODE
 -- DRAW MARKS
 -- stuff that can be moved outside of the loop, needs only be set once
 -- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_A -- WHAT IS THIS??
 -- set line cap type
cairo_set_line_cap  (cr, m_cap)
 -- set line width
cairo_set_line_width (cr,m_width_A)
 -- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
 -- START LOOP FOR HOUR MARKS
for i=1,number_marks_A do
 -- drawing code using the value of i to calculate degrees
 -- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
 -- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
 -- draw the line
cairo_stroke (cr)
end -- of for loop
 -- HOUR MARKS -- ???????????????????????????????????????????????????????????????
 -- TIME CALCULATIONS CLOCK A
if clock_type_A==12 then
hours=tonumber(os.date("%I"))
 -- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_A==24 then
hours=tonumber(os.date("%H"))
 -- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
 -- convert minutes to seconds
m_to_s=minutes*60
 -- get current seconds
seconds=tonumber(os.date("%S"))
 -- DRAW HOUR HAND ###
 -- get hours minutes seconds as just seconds
hsecs=h_to_s+m_to_s+seconds
 -- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_A)) -- use equation ~ eliminate decimals
 -- set radius to calculate hand points
radius=hh_length_A
 -- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
 -- calculate coordinates for end of hour hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
 -- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_A)
cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour Hour Hand ================
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)
 -- DRAW MINUTE HAND
 -- get minutes and seconds just as seconds
msecs=m_to_s+seconds
 -- calculate degrees for each second
msec_degs=msecs*0.1
 -- set radius to calculate hand points
radius=mh_length_A
 -- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
 -- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
 -- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
 -- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_A)
cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour Minute Hand ==============
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)
 -- ### CLOCK A ###
local center_x=init.center_x -- Centre of the HR / Min Numbers
local center_y=init.center_y -- Centre of the HR / Min Numbers
local radius=init.radius -- 12/24 HR CLOCK Hours/Minutes radius -- seeline 42
cairo_select_font_face (cr, "DS-Digital", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 22)
cairo_set_source_rgba (cr,1,1,1,1.0) -- HR Clock numbers
 -- TABLE OF TEXT -- in order
if init.hour == 12 then
  text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
  for i=1,12 do
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_set_source_rgba (cr,1,1,1,1.0) -- colour of HR Numbers
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=124 -- 12 HR Clock
  for i=1,12 do
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_set_source_rgba (cr,1,1,1,0.50)
    cairo_stroke (cr)
  end
end
if init.hour == 24 then
  text_days={"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
  for i=1,24 do
 -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/24)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
  end
 -- INNER POINTS POSITION, radius smaller than text circle
  local radius=124 -- 24 HR Clock
  for i=1,24 do
    local point=(math.pi/180)*((360/24)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_set_source_rgba (cr,1,1,1,0.4)
    cairo_stroke (cr)
  end
end

 -- ############################################################################
 -- POSITION FOR TEXT HOUR NUMBERS
  if init.hour == 12 and init.second == true then
    text_days={"","01","02","03","04","","06","07","08","09","","11","12","13","14","","16","17","18","19","","21","22","23","24","","26","27","28","29","","31","32","33","34","","36","37","38","39","","41","42","43","44","","46","47","48","49","","51","52","53","54","","56","57","58","59","",}
 -- INNER POINTS POSITION, radius smaller than text circle
    cairo_set_source_rgba (cr,1,1,1,0.07) -- does not work -- settings moved
    cairo_select_font_face (cr, "Fire Mono", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    for i=1,60 do
      local radius=124 -- dots for seconds Clock A (12 dial)
      local point=(math.pi/180)*((360/60)*(i-1))
      local x=0+radius*(math.sin(point))
      local y=0-radius*(math.cos(point))
      if seconds == i-1 then
        cairo_set_source_rgba (cr,255/255,0/255,0/255,0.07) -- does not work - settings moved
      else
        if i-1 == 0 or i-1 == 5 or i-1 == 10 or i-1 == 15 or i-1 == 25 or i-1 == 30 or i-1 == 35 or i-1 == 40 or i-1 == 45 or i-1 == 50 or i-1 == 55 then
          cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour
        else
          cairo_set_source_rgba (cr,0,1,1,0.0) -- dots for seconds A Clock
        end
      end
      cairo_arc (cr,center_x+x,center_y+y,1/2,0,2*math.pi)
      cairo_stroke (cr)
    end
    radius=radius-3
    cairo_set_font_size (cr, 10)
    for i=1,60 do
 -- OUTTER POINTS POSTION FOR TEXT
      local point=(math.pi/180)*((360/60)*(i-1))
      local x=0+radius*(math.sin(point))
      local y=0-radius*(math.cos(point))
 -- CALCULATE CENTRE OF TEXT
      local text=text_days[i]--gets text from table
      if seconds == tonumber(text) then
      cairo_set_source_rgba (cr,0.4,0.6,0.6,1.0) -- active colour
      else
        cairo_set_source_rgba (cr,1,1,1,0.15) -- seconds numbers
      end
      cairo_text_extents(cr,text,extents)
      local width=extents.width
      local height=extents.height
      cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
      cairo_show_text (cr, text)
      cairo_stroke (cr)
    end
  end
 -- ############################################################################
cairo_stroke (cr)
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end -- end main function
--[[ mrpeachy wrote:

    the numbers are drawn using a for loop somewhere, like this

    for i=1,12 do
    calculate position of number
    move_to(x,y)
    show_text(i)
    end

    change it to something like this

    for i=1,12 do
    calculate position of number
      if i==month_number then
      move_to(x,y)
      show_text(month_number)
      else
      move_to(x,y)
      show_text(i)
      end
    end ]]

And now the conkys:
On the inside-right: Teo_ChronoClock_2015.conky

# pkill -xf "conky -q -c /home/sector11/1_accuweather/Teo_ChronoClock_2015.conky" &
#
# Thank you:
# TeoBigusGeekus - for his wonderful weather scripts
# - - This one is: Conky_WeatherCom_metric - dated 23 Apr 2013
# Chronograph LUA - Sector11 - See LUA for more (originally 4 clocks by  mrpeachy)
# background - londonali1010, mrpeachy, dk75

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour gray
own_window_class Conky
own_window_title Teo Weather ChronoClock 2015

# 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

### For use with The-Clock.lua
minimum_size 300 650  ## w|height
maximum_width 300

gap_x 250        ### left &right
gap_y 10        ### up & down

### alignment values or top_left, bottom_right, etc
# tl, tm, tr
# ml, mm, mr
# bl, bm, br
alignment tr

####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont CorporateMonoExtraBold:size=9
#xftfont monofur:bold:size=10
xftfont Fira Mono:bold:size=8


# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black


default_color FFDEAD #255 222 173	NavajoWhite DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 FF8C00 #255 140   0	DarkOrange
color3 7FFF00 #127 255   0	Chartreuse
color4 FFA07A #255 160 122	LightSalmon
color5 DCDCDC #220 220 220	Gainsboro FFDEAD #255 222 173	NavajoWhite
color6 B0E0E6 #176 224 230 PowderBlue  00BFFF #  0 191 255	DeepSkyBlue
color7 00FFFF #  0 255 255	Cyan
color8 FFFF00 #255 255   0	Yellow
color9 B22222 #178  34  34	FireBrick
#####################################################  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

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

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

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# If enabled, values which are in bytes will be printed in human readable
# format (i.e., KiB, MiB, etc). If disabled, bytes is printed instead
format_human_readable yes

# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes


imlib_cache_size 0


##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## draw-bg.lua - Above and After TEXT - requires a composite manager.
##
lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.2}
#
# ----------------------------------------------------------------------------
## OR Both above TEXT - No composite manager required.
#
#lua_load /media/5/Conky/TeoWeatherClock-2/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.2
#
# TEXT
### Teo Weather Clock ########################################################
lua_load /home/sector11/1_accuweather/1_accu_ChronoClock.lua
lua_draw_hook_post main
### mount.lua ################################################################
##############################  End LUA Settings  ###

#TEXT --- Remove line below TEXT when developing new conky
# These lines not required see: S12_time_tm.conky
#${execi 900 bash ~/1_accuweather/1_accuweather -f2015 -f2016 -h2015 -h2016}\
#${execi 900 bash /media/5/Conky/4_Moon/moon}\

## just avove todays image - if the moon stuff removed
## ${image /media/5/Conky/4_Moon/0.png -p 10,30 -s 35x35}
## ${image $HOME/1_accuweather/forecast_2015/forecast_0.png -p 104,117 -s 100x60}
update_interval 1
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.5}\
↑: ${color2}${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°${color}\
${alignr 5}T: ${color6}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°${color}
↓: ${color6}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}°${color}\
${alignr 5}±: ${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°




${image $HOME/1_accuweather/forecast_2015/forecast_0.png -p 104,117 -s 100x60}












${color}Hum${alignr 5}D.P.${color}
${color6}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${execi 90 sed -n '12p' $HOME/1_accuweather/curr_cond}°${color}
${color}Pressure${alignr 5}UV Index${color}
${color6}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond} / 11${color}
${color}Visibility ${color6}${execi 90 sed -n '13p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${color}Wind ${color6}${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond}\
 @ ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${color}Sun   Rise ${color6}${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond} ${color}→ ${color5}${execi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}s ${color}→\
${alignr 5}${color}Set: ${color1}${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}

${alignc}${color7}Weather Forecast for 10 Days${color}
${color} Today\
${goto 83}${execpi 600 echo `date --date="1 day" | awk '{print $1}'`}\
${goto 145}${execpi 600 echo `date --date="2 day" | awk '{print $1}'`}\
${goto 207}${execpi 600 echo `date --date="3 day" | awk '{print $1}'`}\
${goto 267}${execpi 600 echo `date --date="4 day" | awk '{print $1}'`}${color}
${color6}${goto 10}${execpi 600 date --date="0 day" | awk '{print $3" "$2}'}\
${goto 72}${execpi 600 date --date="1 day" | awk '{print $3" "$2}'}\
${goto 134}${execpi 600 date --date="2 day" | awk '{print $3" "$2}'}\
${goto 196}${execpi 600 date --date="3 day" | awk '{print $3" "$2}'}\
${goto 258}${execpi 600 date --date="4 day" | awk '{print $3" "$2}'}${color}
${image $HOME/1_accuweather/forecast_2015/forecast_1.png -p -1,380 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_2.png -p 61,380 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_3.png -p 123,380 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_4.png -p 185,380 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_5.png -p 247,380 -s 58x35}


${color2}${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°\
   ${color6}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}°\
${goto 68}${color2}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°\
   ${color6}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°\
${goto 130}${color2}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°\
   ${color6}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°\
${goto 192}${color2}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°\
   ${color6}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°\
${goto 254}${color2}${execi 600 sed -n '23p' $HOME/1_accuweather/first_days}°\
   ${color6}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°

${color}${goto 20}${execpi 600 echo `date --date="5 day" | awk '{print $1}'`}\
${goto 84}${execpi 600 echo `date --date="6 day" | awk '{print $1}'`}\
${goto 145}${execpi 600 echo `date --date="7 day" | awk '{print $1}'`}\
${goto 207}${execpi 600 echo `date --date="8 day" | awk '{print $1}'`}\
${goto 267}${execpi 600 echo `date --date="9 day" | awk '{print $1}'`}${color}
${color6}${goto 10}${execpi 600 date --date="5 day" | awk '{print $3" "$2}'}\
${goto 72}${execpi 600 date --date="6 day" | awk '{print $3" "$2}'}\
${goto 134}${execpi 600 date --date="7 day" | awk '{print $3" "$2}'}\
${goto 196}${execpi 600 date --date="8 day" | awk '{print $3" "$2}'}\
${goto 258}${execpi 600 date --date="9 day" | awk '{print $3" "$2}'}${color}

${image $HOME/1_accuweather/forecast_2015/forecast_6.png -p -1,470 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_7.png -p 61,470 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_8.png -p 122,470 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_9.png -p 185,470 -s 58x35}\
${image $HOME/1_accuweather/forecast_2015/forecast_10.png -p 247,470 -s 58x35}

${color2}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°\
   ${color6}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°\
${goto 68}${color2}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°\
   ${color6}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°\
${goto 130}${color2}${execi 90 sed -n '13p' $HOME/1_accuweather/last_days}°\
   ${color6}${execi 90 sed -n '14p' $HOME/1_accuweather/last_days}°\
${goto 192}${color2}${execi 90 sed -n '18p' $HOME/1_accuweather/last_days}°\
   ${color6}${execi 90 sed -n '19p' $HOME/1_accuweather/last_days}°\
${goto 254}${color2}${execi 90 sed -n '23p' $HOME/1_accuweather/last_days}°\
   ${color6}${execi 90 sed -n '24p' $HOME/1_accuweather/last_days}°
 ${color1}${membar 0}
 ${alignc}${color5}${swapbar 0,15} The Southern Moon ${swapbar 0,15}${color}
${color}Moon  Rise ${color6}${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond} ${color}→ ${color5}${execi 300 sed -n '20p' $HOME/1_accuweather/curr_cond}s ${color}→\
${alignr 5}${color}Set ${color1}${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}${color}
${image /media/5/Conky/4_Moon/-2.png -p 10,570 -s 45x45}
${image /media/5/Conky/4_Moon/-1.png -p 255,570 -s 45x45}
${image /media/5/Conky/4_Moon/0.png -p 120,560 -s 70x70}
${image /media/5/Conky/4_Moon/1.png -p 10,670 -s 45x45}
${image /media/5/Conky/4_Moon/2.png -p 255,670 -s 45x45}
${goto 5}${execi 3600 echo `date --date="-2 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 3600 echo `date --date="-1 day" | awk '{print $1" "$3" "$2}'`}
${alignc}${alignc}${color}Today's Phase ${color6}${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}${color}
${goto 5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${alignr}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}
               Duration: ${color6}${execi 300 sed -n '20p' $HOME/1_accuweather/curr_cond}${color}
           Illumination: ${color6}${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw}${color}
              Sun Angle: ${color6}${execpi 600 sed -n '2p' /media/5/Conky/4_Moon/raw}°${color}
               Sun Dist: ${color6}${execpi 600 sed -n '3p' /media/5/Conky/4_Moon/raw}${color}
              Moon Dist: ${color6}${execpi 600 sed -n '4p' /media/5/Conky/4_Moon/raw}${color}
               Moon Age: ${color6}${execpi 600 sed -n '5p' /media/5/Conky/4_Moon/raw} days${color}
             Moon Angle: ${color6}${execpi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}°${color}
${alignc}${color5}${swapbar 0,150}${color}
 ${color}Shown on ${color6}${nodename} ${color}for the past: ${color6}${uptime_short}
 ${color}Kernel: ${color6}${kernel}
 ${color}CPU ${color6}1: ${color}${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${cpu cpu1}\
${endif}${endif} %\
 ${color6}2: ${color}${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${cpu cpu2}\
${endif}${endif} %\
 ${color6}3: ${color}${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${cpu cpu3}\
${endif}${endif} %\
 ${color6}Avg: ${color}${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${cpu cpu0}\
${endif}${endif} %
 ${color}CPU: ${color6}${platform f71882fg.2560 temp 1}°${goto 90}${color}HDD: ${color6}${hddtemp /dev/sda}°${goto 167}${color}GPU: ${color6}${nvidia temp}°${goto 245}${color}M|B: ${color6}${execpi 5 sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°
 ${color}RAM: ${color6}${mem} / ${memmax} / ${memperc}% ${alignr 5}${color}Swap: ${color6}${swap} ${color}/ ${color6}${swapmax}
 ${color}eth-0 ${color6}Down: ${color}${downspeedf eth0}${goto 200}${color6}Up:  ${color}${upspeedf eth0}
 ${color1}${membar 0}

and on the inner-left: Teo_ChronoClock_2016.conky

# pkill -xf "conky -q -c /home/sector11/1_accuweather/Teo_ChronoClock_2016.conky" &
#
# Thank you:
# TeoBigusGeekus - for his wonderful weather scripts
# - - This one is: Conky_WeatherCom_metric - dated 23 Apr 2013
# Chronograph LUA - Sector11 - See LUA for more (originally 4 clocks by  mrpeachy)
# background - londonali1010, mrpeachy, dk75

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour gray
own_window_class Conky
own_window_title Teo Weather ChronoClock 2016

# 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

### For use with The-Clock.lua
minimum_size 300 650  ## w|height
maximum_width 300

gap_x 250        ### left &right
gap_y 10        ### up & down

### alignment values or top_left, bottom_right, etc
# tl, tm, tr
# ml, mm, mr
# bl, bm, br
alignment tl

####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont CorporateMonoExtraBold:size=9
#xftfont monofur:bold:size=10
xftfont Fira Mono:bold:size=8


# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black


default_color FFDEAD #255 222 173	NavajoWhite DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 FF8C00 #255 140   0	DarkOrange
color3 7FFF00 #127 255   0	Chartreuse
color4 FFA07A #255 160 122	LightSalmon
color5 DCDCDC #220 220 220	Gainsboro FFDEAD #255 222 173	NavajoWhite
color6 B0E0E6 #176 224 230 PowderBlue  00BFFF #  0 191 255	DeepSkyBlue
color7 00FFFF #  0 255 255	Cyan
color8 FFFF00 #255 255   0	Yellow
color9 B22222 #178  34  34	FireBrick
#####################################################  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

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

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

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# If enabled, values which are in bytes will be printed in human readable
# format (i.e., KiB, MiB, etc). If disabled, bytes is printed instead
format_human_readable yes

# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes


imlib_cache_size 0


##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## draw-bg.lua - Above and After TEXT - requires a composite manager.
##
lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 0 0 0 0 0x000000 0.2}
#
# ----------------------------------------------------------------------------
## OR Both above TEXT - No composite manager required.
#
#lua_load /media/5/Conky/TeoWeatherClock-2/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.2
#
# TEXT
### Teo Weather Clock ########################################################
lua_load /home/sector11/1_accuweather/1_accu_ChronoClock.lua
lua_draw_hook_post main
### mount.lua ################################################################
##############################  End LUA Settings  ###

#TEXT --- Remove line below TEXT when developing new conky
# These lines not required see: S12_time_tm.conky
#${execi 900 bash ~/1_accuweather/1_accuweather -f2015 -f2016 -h2015 -h2016}\
#${execi 900 bash /media/5/Conky/4_Moon/moon}\

## just avove todays image - if the moon stuff removed
## ${image /media/5/Conky/4_Moon/0.png -p 10,30 -s 35x35}
## ${image $HOME/1_accuweather/forecast_2015/forecast_0.png -p 104,117 -s 100x60}
update_interval 1
TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.5}\
↑: ${color2}${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°${color}\
${alignr 5}T: ${color6}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°${color}
↓: ${color6}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}°${color}\
${alignr 5}±: ${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°



${image /media/5/Conky/4_Moon/0.png -p 5,30 -s 35x35}
${image ~/1_accuweather/forecast_2016/forecast_0.png -p 62,62 -s 170x170}












${color}Hum${alignr 5}D.P.${color}
${color6}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${execi 90 sed -n '12p' $HOME/1_accuweather/curr_cond}°${color}
${color}Pressure${alignr 5}UV Index${color}
${color6}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond}${color} » Maximum » ${color6}11${color}
${color}Visibility ${color6}${execi 90 sed -n '13p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${color}Wind ${color6}${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond}\
 @ ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${color} Sun Rise ${color6}${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond}  ${color}→ ${color5}${execi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}s ${color}→\
${alignr 5}${color}Set ${color1}${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}
${color}Moon Rise ${color6}${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond}  ${color}→ ${color5}${execi 300 sed -n '20p' $HOME/1_accuweather/curr_cond}s ${color}→\
${alignr 5}${color}Set ${color1}${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}${color}
${alignc}${alignc}${color}Today's Phase ${color6}${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}${color}
${color5}${membar 0}${color}
${alignc}${color7}Weather Forecast for 10 Days${color}
${color} Today\
${goto 83}${execpi 600 echo `date --date="1 day" | awk '{print $1}'`}\
${goto 145}${execpi 600 echo `date --date="2 day" | awk '{print $1}'`}\
${goto 207}${execpi 600 echo `date --date="3 day" | awk '{print $1}'`}\
${goto 267}${execpi 600 echo `date --date="4 day" | awk '{print $1}'`}${color}
${color6}${goto 10}${execpi 600 date --date="0 day" | awk '{print $3" "$2}'}\
${goto 72}${execpi 600 date --date="1 day" | awk '{print $3" "$2}'}\
${goto 134}${execpi 600 date --date="2 day" | awk '{print $3" "$2}'}\
${goto 196}${execpi 600 date --date="3 day" | awk '{print $3" "$2}'}\
${goto 258}${execpi 600 date --date="4 day" | awk '{print $3" "$2}'}${color}
${image $HOME/1_accuweather/forecast_2016/forecast_1.png -p 2,398 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 65,398 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_3.png -p 127,398 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_4.png -p 189,398 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_5.png -p 251,398 -s 48x48}


${color2}${execi 90 sed -n '3p' $HOME/1_accuweather/first_days}°\
  ${color6}${execi 90 sed -n '4p' $HOME/1_accuweather/first_days}°\
${goto 68}${color2}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°\
  ${color6}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°\
${goto 130}${color2}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°\
  ${color6}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°\
${goto 192}${color2}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°\
  ${color6}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°\
${goto 254}${color2}${execi 600 sed -n '23p' $HOME/1_accuweather/first_days}°\
  ${color6}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}°

${color}${goto 20}${execpi 600 echo `date --date="5 day" | awk '{print $1}'`}\
${goto 84}${execpi 600 echo `date --date="6 day" | awk '{print $1}'`}\
${goto 145}${execpi 600 echo `date --date="7 day" | awk '{print $1}'`}\
${goto 207}${execpi 600 echo `date --date="8 day" | awk '{print $1}'`}\
${goto 267}${execpi 600 echo `date --date="9 day" | awk '{print $1}'`}${color}
${color6}${goto 10}${execpi 600 date --date="5 day" | awk '{print $3" "$2}'}\
${goto 72}${execpi 600 date --date="6 day" | awk '{print $3" "$2}'}\
${goto 134}${execpi 600 date --date="7 day" | awk '{print $3" "$2}'}\
${goto 196}${execpi 600 date --date="8 day" | awk '{print $3" "$2}'}\
${goto 258}${execpi 600 date --date="9 day" | awk '{print $3" "$2}'}${color}

${image $HOME/1_accuweather/forecast_2016/forecast_6.png -p 6,490 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_7.png -p 61,490 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_8.png -p 122,490 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_9.png -p 185,490 -s 48x48}\
${image $HOME/1_accuweather/forecast_2016/forecast_10.png -p 247,490 -s 48x48}

${color2}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°\
  ${color6}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}°\
${goto 68}${color2}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°\
  ${color6}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}°\
${goto 130}${color2}${execi 90 sed -n '13p' $HOME/1_accuweather/last_days}°\
  ${color6}${execi 90 sed -n '14p' $HOME/1_accuweather/last_days}°\
${goto 192}${color2}${execi 90 sed -n '18p' $HOME/1_accuweather/last_days}°\
  ${color6}${execi 90 sed -n '19p' $HOME/1_accuweather/last_days}°\
${goto 254}${color2}${execi 90 sed -n '23p' $HOME/1_accuweather/last_days}°\
  ${color6}${execi 90 sed -n '24p' $HOME/1_accuweather/last_days}°
${color5}${membar 0}${color}
${alignc}${color}Running on ${color6}${nodename} ${color}for the past: ${color6}${uptime_short}
${alignc}${color}Kernel: ${color6}${kernel}
 ${color}CPU ${color6}1: ${color}${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${cpu cpu1}\
${endif}${endif} %\
  ${color6}2: ${color}${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${cpu cpu2}\
${endif}${endif} %\
  ${color6}3: ${color}${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${cpu cpu3}\
${endif}${endif} %\
  ${color6}Avg: ${color}${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${cpu cpu0}\
${endif}${endif} %
 ${color}CPU: ${color6}${platform f71882fg.2560 temp 1}°${goto 90}${color}HDD: ${color6}${hddtemp /dev/sda}°${goto 167}${color}GPU: ${color6}${nvidia temp}°${goto 245}${color}M|B: ${color6}${execpi 5 sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°
 ${color}RAM: ${color6}${mem} / ${memmax} / ${memperc}% ${alignr 5}${color}Swap: ${color6}${swap} ${color}/ ${color6}${swapmax}
 ${color}ETH-0  ${color6}Down ${color}${downspeedf eth0}${goto 200}${color6}   Up ${color}${upspeedf eth0}
       ${color6}Total ${color}${totaldown eth0}${goto 200}${color6}Total ${color}${totalup eth0}
${color5}${membar 0}${color}
${alignc}Partitions on HDD: /dev/sda
       ${color6}SIZE${goto 115}USED${goto 215}FREE${color}
${color6}Root${color}   ${fs_size /}\
  ${goto 115}${fs_used /} (${fs_used_perc /}%)\
  ${goto 215}${fs_free /} (${fs_free_perc /}%)
${color6} S11${color}   ${fs_size /home}\
  ${goto 115}${fs_used /home} (${fs_used_perc /home}%)\
  ${goto 215}${fs_free /home} (${fs_free_perc /home}%)
${color6} M/5${color}   ${fs_size /media/5}\
  ${goto 115}${fs_used /media/5} (${fs_used_perc /media/5}%)\
  ${goto 215}${fs_free /media/5} (${fs_free_perc /media/5}%)
${color6}M/10${color}   ${fs_size /media/10}\
  ${goto 115}${fs_used /media/10} (${fs_used_perc /media/10}%)\
  ${goto 215}${fs_free /media/10} (${fs_free_perc /media/10}%)
${color1}${membar 0}${color}
${execpi 1800 bash /media/5/Conky/convert/rex-convert.sh}\
${alignc}${color0}| ${color}C:${color5} \
${if_match ${execi 90 conkyEmail -t /media/5/Conky/email/C} == 0}00${else}\
${if_match ${execi 90 conkyEmail -t /media/5/Conky/email/C} < 10}0\
${execi 90 conkyEmail -t /media/5/Conky/email/C}${else}\
${execi 90 conkyEmail -t /media/5/Conky/email/C}${endif}${endif} \
${color0}| ${color4}${execpi 90 grep "CAD to ARS" /media/5/Conky/convert/cad.tmc.txt | cut -c12-18}${color0} | \
${color5}${execpi 90 grep "CAD to USD" /media/5/Conky/convert/cad.tmc.txt | cut -c12-18} | \
${execpi 90 grep "ARS to CAD" /media/5/Conky/convert/ars.tmc.txt | cut -c12-18} | \
${color6}${execi 90 sed -n '8p' /media/5/Conky/convert/blue.txt}${color0} |
${alignc}${color0}| ${color}S:${color5} \
${if_match ${execi 90 conkyEmail -t /media/5/Conky/email/S} == 0}00${else}\
${if_match ${execi 90 conkyEmail -t /media/5/Conky/email/S} < 10}0\
${execi 90 conkyEmail -t /media/5/Conky/email/S}${else}\
${execi 90 conkyEmail -t /media/5/Conky/email/S}${endif}${endif}${color} \
| ${color4}${execpi 90 grep "USD to ARS" /media/5/Conky/convert/usd.tmc.txt | cut -c12-18}${color0} | \
${execpi 90 grep "USD to CAD" /media/5/Conky/convert/usd.tmc.txt | cut -c12-18} | \
${execpi 90 grep "ARS to USD" /media/5/Conky/convert/ars.tmc.txt | cut -c12-18} | \
${color6}${execi 90 sed -n '9p' /media/5/Conky/convert/blue.txt}${color0} |${color}
${color1}${membar 0}${color}
${alignc}${color0}Sound Volume ${if_match ${mixer} < 10}${color0}  \
${else}${if_match ${mixer} < 34}${color0} \
${else}${if_match ${mixer} < 67}${color5} \
${else}${if_match ${mixer} <= 99}${color4} \
${else}${if_match ${mixer} == 100}${color4}\
${endif}${endif}${endif}${endif}${endif}${mixer}%${color}
${color1}${membar 0}${color}

And that's what I've been doing.  The conkys are not 100% interchanable due to different image sizes.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1431 2016-12-12 21:36:02

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

It looks gorgeous S11, it's what I usually call conky extravaganza.
It's even better now with the new images, their minimalism goes way better with the futuristic chronoclock.

As always, another job well done my old friend!!!


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

#1432 2016-12-12 23:26:03

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ @Teo ...  Thank you  - YUP, conky extravaganza - at one time I had really busy conkys ... I've trimmed back a lot.
But there are still people that like them. 5inches wide from top to bottom on an edge.  YUK! Well, today - YUK! yesteryear it was OH WOW!

When I fist saw those 2016 images I thought, and I repeat myself here: "OH YUK!" I did not like them.  But I made a couple of conkys with them and it wasn't long before I thought - these "colourful text-like icons" are really nice.  It was then that I made my weather bar.  No going back.

Now if we could just find moon images to match.  smile

I think this is my next project - not a conky - drop-shadow:
WGIuYkCQ.jpg
Now while not a conky your script might benefit if people like them.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1433 2016-12-13 04:26:40

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

put some system info inside the cats eyes and you'll have you a mega mega conky!

Offline

#1434 2016-12-13 12:09:24

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

Now if we could just find moon images to match.  smile

True that; the new accuweather images are not paired good with the moongiant ones.
I wish accuweather had real moon info...


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

#1435 2016-12-13 17:36:19

KrunchTime
Member
Registered: 2015-09-29
Posts: 857

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Teo:  Just checked out the NOAA NWS site and changes will be coming on 01/10/2017 that may affect your NWS script(s).

Overview:
https://forecast-v3.weather.gov/documen … ect=legacy

Details:
http://www.nws.noaa.gov/os/notification … astgov.htm

Offline

#1436 2016-12-13 17:41:11

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Whatever they do, I'll be there for them wink


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

#1437 2016-12-13 18:20:22

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

And us ... right?  big_smile

Well, us as in "US Users".


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1438 2016-12-13 19:10:25

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

Mind you that was back in 2007, on  P-III running Ubuntu Gnome 7.04

That was not that bad, kind of "easy to read" conky. I'm still struggling with the fan speed in mine. I have

${color white}${exec sensors | grep 'RPM'}

which looks like: "fan1:     1983 RPM"
I still did not figure out yet how to get it shown the proper way (i.e. Fan: 1983 RPM).  smile

Last edited by martix (2016-12-13 19:58:28)

Offline

#1439 2016-12-13 19:40:54

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@matrix

Are you running Bunsen?  if yes you should have inxi installed.
Try this and post the results

sensors && echo =-=-=-=-=-=-= && inxi -s
 13 Dec 16 @ 16:35:11 ~
  $ sensen
sensors && echo =-=-=-=-=-=-= && inxi -s
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.49 V  
in1:          +1.25 V  
in2:          +1.50 V  
in3:          +0.86 V  
in4:          +0.00 V  
in5:          +0.00 V  
in6:          +0.00 V  
3VSB:         +3.39 V  
Vbat:         +3.02 V  
fan1:        2495 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +46.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +48.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +35.9°C  (high = +70.0°C)

=-=-=-=-=-=-=
Sensors:   System Temperatures: cpu: 48.0C mobo: 36.1C gpu: 59C
           Fan Speeds (in rpm): cpu: 2495 fan-2: 0 fan-3: 0
 
 13 Dec 16 @ 16:35:22 ~
  $ 

My one an only fan is my CPU fan:

${platform f71882fg.2560 fan 1}

I recommend the "platform" method, ${hwmon ...} has a tendency to move around on occasion.  And there is no "exec" required.

Keep us posted.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1440 2016-12-13 20:33:25

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Sector11 Brilliant, thank you for the explanation and showing in the right direction! The best thing is that I have an orientation now where all these data is coming from. I have also only one fan:

Adapter: ISA adapter
fan1:        2469 RPM
temp1:        +47.0°C  
temp2:         +0.0°C  

After I read the tuto, especially the platform part, as you recommended, just had to figure out the correct name of the folder in /sys/devices/platform. There is the fan1_input file to look for. Now after changing the conky code to

${color grey}Fan: $color${platform thinkpad_hwmon fan 1} RPM

it looks exactly the way it should be! smile  Volume, uptime, battery, etc. were all right before, only the fan speed looked a bit different - until now. Great, thanks again!

Offline

Board footer

Powered by FluxBB