You are not logged in.

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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


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

Offline

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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


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

Offline

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

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

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

Coming soon to a weather thread near you:

8a2abQ6Y.jpg

Teo's 2015 Accuweather ChronoClock Moon Conky (v9)


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

Offline

#1431 2016-12-12 20:58:12

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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! »»»  kiss 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.


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

Offline

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,413

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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


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

Offline

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

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

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

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

Offline

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,413

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,413

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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

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

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

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

And us ... right?  big_smile

Well, us as in "US Users".


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

Offline

#1439 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/Weather.com/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/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.


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

Offline

#1441 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/Weather.com/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

#1442 2016-12-13 23:07:32

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

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

You're welcome martix.  Glad to have helped...

... and now back to the weather.

Dark tonight and light tomorrow, somewhere it's raining, somewhere snowing and somewr....


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

Offline

#1443 2016-12-16 20:51:42

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

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

martix wrote:

just had to figure out the correct name of the folder in /sys/devices/platform

For future reference this is too easy:

1. run sensors, you will have output in 'sections', mine are:

acpitz-virtual-0
f71862fg-isa-0a00
k10temp-pci-00c3

now look in /sys/devices/platform, and there it is - a match:
/alarmtimer
/f71882fg.2560
/i8042
/microcode
/pcspkr
/platform-framebuffer.0
/PNP0C0C:00
/power
/serial8250
/uevent

So conky uses:

${platform f71882fg.2560 fan 1}

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

Offline

#1444 2016-12-16 21:00:40

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

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

OK back to the weather... I revamped a conky between yesterday, today and other things "life"  Something about the "firs mono" font Teo turned me onto that I LOVE:  I can see it very clearly at smaller sizes - two years ago things were fine, then I needed 'computer glasses' - then I needed 'computer glasses' and larger fonts.  sad  and along come: Fira Mono 

So I made it narrower and just a little shorter, because the images are a little bigger.
You need: fira mon font, 1_accuweather and 4_moon.

SEMqU5hR.jpg old on the left new on the right.

S11-Clock-9day-Moon-16.conky

# pkill -xf "conky -q -c ~/1_accuweather/S11-Clock-9day-Moon-16.conky" &
# Created: Wed 26 Oct 2016 14:21:13
## ---------- 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 A Clock - Weather & Moon 2016
# 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 180 900
maximum_width 180

gap_x 10	## l|r
gap_y 10	## u|d
alignment tl
## ---------- End Window Settings
## ---------- Font Settings
## Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Fantasque Sans Mono:bold:size=11
xftfont Fira Mono:bold:size=8

## 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
draw_borders no
## Stippled borders?
stippled_borders 5
## border margins
border_inner_margin 5
border_outer_margin 0
## border width
border_width 2
## graph borders
draw_graph_borders yes ## no
## default_graph_size 15 40
## ---------- End Borders Secton
## ---------- Begin Miscellaneous Section
## Boolean value, if true, Conky will be forked to background when started.
background yes ## yes
imlib_cache_size 0

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

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

TEXT
${image /media/5/Conky/images/bk_10.png -p -5,-5 -s 220x1000}\
${image /media/5/Conky/4_Moon/0.png -p 5,138 -s 60x60}\
${image $HOME/1_accuweather/forecast_2016/forecast_0.png -p 25,135 -s 140x140}\
${alignc}${color5}${swapbar 0,15} Today's Sun Data ${swapbar 0,15}${color}
Rise${color7} ${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond}\
${alignr}${color}Set ${color7}${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}${color}
${alignc}Duration: ${color7}${execi 300 sed -n '16p' $HOME/1_accuweather/curr_cond}
${font LED_mono:size=30}${goto 20}${color1}88:88:88${goto 20}${color5}${time %T}${color}${font}
${font Fantasque Sans Mono:bold:size=16}${color5}${alignc}${time %a %d %b %Y}${color}${font}
${alignc}${color7}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}Good Afternoon${else}Good Evening${endif}${endif}${color}
${font monofur:bold:size=16}${color5}±${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}\
${alignr}${color}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}${font}











Bar ${color7}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}${color}\
${alignr}Cld ${color7}${execi 90 sed -n '10p' $HOME/1_accuweather/curr_cond}${color}
UVI ${color7}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond} /11${color}\
${alignr}Hum ${color7}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}${color}
 DP ${color7}${execi 90 sed -n '12p' $HOME/1_accuweather/curr_cond}${color}\
${alignr}Vis ${color7}${execi 90 sed -n '13p' $HOME/1_accuweather/curr_cond}${color}
${alignc}Wind ${color7}${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond}\
 ${color}@ ${color7}${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}${color}
${alignc}${color5}${swapbar 0,15} TEN DAY FORECAST ${swapbar 0,15}${color}
${alignc}${pre_exec echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
       ${pre_exec echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/forecast_2016/forecast_1.png -p 22,352 -s 50x50}\
${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 129,352 -s 50x50}\
${color5}${if_match "${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}" == "Lo"}\
${else}${execpi 300 sed -n '3p' /home/sector11/1_accuweather/first_days}${endif}\
${alignr 60}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}${color}

${color7}${if_match "${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}" == "Lo"}\
${execpi 300 sed -n '3p' /home/sector11/1_accuweather/first_days}\
${else}${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}${endif}\
${alignr 60}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}${color}

${alignc}${pre_exec echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
       ${pre_exec echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/forecast_2016/forecast_3.png -p 22,417 -s 50x50}\
${image $HOME/1_accuweather/forecast_2016/forecast_4.png -p 129,417 -s 50x50}\
${color5}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}\
${alignr 60}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}${color}

${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}\
${alignr 60}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}${color}

${alignc}${pre_exec echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
       ${pre_exec echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/forecast_2016/forecast_5.png -p 22,482 -s 50x50}\
${image $HOME/1_accuweather/forecast_2016/forecast_6.png -p 129,482 -s 50x50}\
${color5}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}\
${alignr 60}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}${color}

${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/first_days}\
${alignr 60}${execi 90 sed -n '4p' $HOME/1_accuweather/last_days}${color}

${alignc}${pre_exec echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}\
       ${pre_exec echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/forecast_2016/forecast_7.png -p 22,547 -s 50x50}\
${image $HOME/1_accuweather/forecast_2016/forecast_8.png -p 129,547 -s 50x50}\
${color5}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}\
${alignr 60}${execi 90 sed -n '13p' $HOME/1_accuweather/last_days}${color}

${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/last_days}\
${alignr 60}${execi 90 sed -n '14p' $HOME/1_accuweather/last_days}${color}

${alignc}${pre_exec echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
       ${pre_exec echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/forecast_2016/forecast_9.png -p 22,611 -s 50x50}\
${image $HOME/1_accuweather/forecast_2016/forecast_10.png -p 129,611 -s 50x50}\
${color5}${execi 90 sed -n '18p' $HOME/1_accuweather/last_days}\
${alignr 60}${execi 90 sed -n '23p' $HOME/1_accuweather/last_days}${color}

${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/last_days}\
${alignr 60}${execi 90 sed -n '24p' $HOME/1_accuweather/last_days}${color}

${swapbar 0}
${alignc}${color5}${swapbar 0,15} The Southern Moon ${swapbar 0,15}${color}
${alignc}${color5}${swapbar 0,15} ${time %a %d %b %Y} ${swapbar 0,15}${color}
${alignc}${color7}${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}${color}
Rise${color7} ${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond}${color}\
${alignr}${color}Set ${color7}${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}${color}
    Duration: ${color7}${execi 300 sed -n '20p' $HOME/1_accuweather/curr_cond}${color}
Illumination: ${color7}${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw}${color}
   Sun Angle: ${color7}${execpi 600 sed -n '2p' /media/5/Conky/4_Moon/raw}${color}
    Sun Dist: ${color7}${execpi 600 sed -n '3p' /media/5/Conky/4_Moon/raw}${color}
   Moon Dist: ${color7}${execpi 600 sed -n '4p' /media/5/Conky/4_Moon/raw}${color}
    Moon Age: ${color7}${execpi 600 sed -n '5p' /media/5/Conky/4_Moon/raw} days${color}
  Moon Angle: ${color7}${execpi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}${color}
${alignc}${color5}${swapbar 0,150}${color}
${alignc}${execi 3600 echo `date --date="-2 day" | awk '{print $1" "$3" "$2}'`}\
       ${execi 3600 echo `date --date="-1 day" | awk '{print $1" "$3" "$2}'`}




${alignc}${execi 3600 echo `date --date="-2 day" | awk '{print $1" "$3" "$2}'`}\
       ${execi 3600 echo `date --date="-1 day" | awk '{print $1" "$3" "$2}'`}
${image /media/5/Conky/4_Moon/-2.png -p 20,846 -s 50x50}
${image /media/5/Conky/4_Moon/-1.png -p 125,846 -s 50x50}
${image /media/5/Conky/4_Moon/1.png -p 20,910 -s 50x50}
${image /media/5/Conky/4_Moon/2.png -p 125,910 -s 50x50}
${swapbar 0}

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

Offline

#1445 2016-12-16 22:24:46

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

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

OK there's a reason for reposting a conky that for all intents and purposes is a re-do of an earlier conky.

There are some 'under the hood' changes that I wanted to point out to you.  Now as most people that hang a hat here know I have a "test conky" and it came in handy today.  While redoing the conky I had and idea that became two ideas and hey it worked.

Here's the test conky that grew as I was doing the weather conky above:
fRBFX8Md.jpg
Two versions NOTE the border_inner_margin settings.

Now the interesting parts.

The 'date lines' are "alignc" with a space (7) between the commands.
The temps on the right are done with "${alignr 60}"
The temps on the left are done with "${alignc 72}

WHY:  Normally I try to configure my conkys with space for '3 characters' for temps ( -10° and 102°) for the F people mostly although -10° is common for C as well.  But using ${goto xx} and at times they look off.

Well, now they line up quite nicely - automatically and that third character ( - or 1, God forbid there is a 2) actually lines up in the 'hundreds' column.  NICE!

Here's the code in question:

${alignc}↓ test code ↓
${color9}${swapbar 0}${color}
${alignc}= Old Conventional Way =
${goto 11}${color5}${pre_exec echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
${goto 112}${pre_exec echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}${color}
55${goto 104}55
${image /media/5/Conky/images/red+x.png -p 18,118 -s 50x50}
${image /media/5/Conky/images/green+x.png -p 120,118 -s 50x50}
-23${goto 104}-23

${alignc}= My New Way =
${alignc}${color5}${pre_exec echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
       ${pre_exec echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}${color}
${alignc 72}55${alignr 60}55
${image /media/5/Conky/images/red+x.png -p 18,209 -s 50x50}
${image /media/5/Conky/images/green+x.png -p 120,209 -s 50x50}
${alignc 72}-23${alignr 60}-23

NOTE THE DIFFERENCE:
border_inner_margin 0
border_outer_margin 0

Another tip: short lines
 swapbars or membars
${swapbar 0,20}${alignr}${swapbar 1,20}
${swapbar 0,50}${alignr}${swapbar 1,50}
${swapbar 0,75}${alignr}${swapbar 1,75}
${alignc}${swapbar 0,143}
${alignc}${swapbar 0,50} hello ${swapbar 1,50}
${alignc}${swapbar 1,143}
${color9}${swapbar 0}${color}
${alignc}↑ between lines ↑

Enjoy!


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

Offline

#1446 2017-01-10 02:16:17

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

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

7 year ago Habitual wrote a bash script to display weather in a terminal using conkyForecast, over the past couple of days I have tweaked it to use Teo's scripts.

For this example I choose the 1_accuweather script.  And here's the output:
2017-01-10_102834_Scrot11.th.png

Now a bit of info before we start.  If you do not want to see all the "wget" data flying by, I don't, you need to tweak your ~/1_accuweather/1_accuweather script:

Search for:

wget -O

Replace with

wget -q -O

so wget runs in 'quiet' mode.

Now there are two ways you can run this ... one is with the little bash script: 1-16s
1 - for 1_accuweather
-16 - because the script needs an option (-f2016), and
s - for small (there is a bigger version not completed yet)

#!/bin/bash
# --- original ---
# 4 Day Weather forecast script for Boardman, OH
# Written by:  Habitual (JJ)
# 11.01.2010 12:10:07
# For conkyForecast by: Kaivalagi
# --- Edited by Sector11 ---
# 7 Day Forecast
# 13 Jan 2013 14:08 UTC
# For conkyForecast by: Kaivalagi

# Re-edited:
# Mon 09 Jan 2017
# For Teo's Accuweather Weather script
# Script name: ~/bin/1-16s

### Run Teos script to refresh the databases needed
### Change the "wget" commands to "wget -q" in 1_accuweather
~/1_accuweather/1_accuweather -f2016 2>&1 >/dev/null

# Clear the screen
tput clear
#tput bold			### for bold text
#tput dim			### for dim text
#tput sgr0          ### remove formatting

# Current (1st Group LEFT)
tput cup 1 1;tput setaf 9
echo "Currently"
tput cup 1 11;tput setaf 3
echo `sed -n '2p' ~/1_accuweather/curr_cond`"°"
tput cup 1 15;tput setaf 9
echo " for ±"
tput cup 1 21;tput setaf 3
echo `sed -n '3p' ~/1_accuweather/curr_cond`"°"
tput cup 2 1;tput setaf 2
echo `sed -n '4p' ~/1_accuweather/curr_cond`
tput cup 3 1;tput setaf 3
echo "Bar"
tput cup 3 5;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/curr_cond`
tput cup 3 16;tput setaf 3
echo "Hum"
tput cup 3 20;tput setaf 9
echo `sed -n '7p' ~/1_accuweather/curr_cond`
tput cup 3 25;tput setaf 3
echo "UVI"
tput cup 3 29;tput setaf 9
echo `sed -n '9p' ~/1_accuweather/curr_cond`
tput cup 4 1;tput setaf 3
echo "Wnd"
tput cup 4 5;tput setaf 9
echo `sed -n '5p' ~/1_accuweather/curr_cond`" @ "`sed -n '6p' ~/1_accuweather/curr_cond`
tput cup 4 21;tput setaf 3
echo "Vis"
tput cup 4 25;tput setaf 9
echo `sed -n '13p' ~/1_accuweather/curr_cond`
tput cup 5 1;tput setaf 3
echo "Ceil"
tput cup 5 6;tput setaf 9
echo `sed -n '11p' ~/1_accuweather/curr_cond`
tput cup 5 14;tput setaf 3
echo "Dew"
tput cup 5 18;tput setaf 9
echo `sed -n '12p' ~/1_accuweather/curr_cond`"°"
tput cup 5 22;tput setaf 3
echo "CC"
tput cup 5 25;tput setaf 9
echo `sed -n '10p' ~/1_accuweather/curr_cond`

# Today Day 0 (1st Group RIGHT)
tput cup 1 35;tput setaf 9
echo "$(date --date="0 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 1 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 1 53;tput setaf 9
echo `sed -n '3p' ~/1_accuweather/first_days`"°"
tput cup 1 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 1 60;tput setaf 9
echo `sed -n '4p' ~/1_accuweather/first_days`"°"
tput cup 2 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`
tput cup 3 35;tput setaf 9
echo "Sun Rise"
tput cup 3 44;tput setaf 3
echo `sed -n '23p' ~/1_accuweather/curr_cond`
tput cup 3 50;tput setaf 9
echo "Moon Rise "
tput cup 3 60;tput setaf 6
echo `sed -n '25p' ~/1_accuweather/curr_cond`
tput cup 4 40;tput setaf 9
echo "Set"
tput cup 4 44;tput setaf 3
echo `sed -n '24p' ~/1_accuweather/curr_cond`
tput cup 4 56;tput setaf 9
echo "Set"
tput cup 4 60;tput setaf 6
echo `sed -n '26p' ~/1_accuweather/curr_cond`
tput cup 5 35;tput setaf 9
echo "Duration"
tput cup 5 44;tput setaf 3
echo `sed -n '16p' ~/1_accuweather/curr_cond`
tput cup 5 57;tput setaf 6
echo `sed -n '20p' ~/1_accuweather/curr_cond`

# Day 1 (2nd Group LEFT)
tput cup 6 1;tput setaf 9
echo "----------------------------------"
tput cup 7 1;tput setaf 9
echo "$(date --date="1 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 7 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 7 19;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/first_days`"°"
tput cup 7 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 7 27;tput setaf 9
echo `sed -n '9p' ~/1_accuweather/first_days`"°"
tput cup 8 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/first_days`

# Day 2 (2nd Group RIGHT)
tput cup 6 35;tput setaf 9
echo "-------------------------------"
tput cup 7 35;tput setaf 9
echo "$(date --date="2 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 7 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 7 53;tput setaf 9
echo `sed -n '13p' ~/1_accuweather/first_days`"°"
tput cup 7 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 7 60;tput setaf 9
echo `sed -n '14p' ~/1_accuweather/first_days`"°"
tput cup 8 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`

# Day 3 (3rd Group LEFT)
tput cup 9 1;tput setaf 9
echo "-------------------------------"
tput cup 10 1;tput setaf 9
echo "$(date --date="3 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 10 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 10 19;tput setaf 9
echo `sed -n '18p' ~/1_accuweather/first_days`"°"
tput cup 10 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 10 27;tput setaf 9
echo `sed -n '19p' ~/1_accuweather/first_days`"°"
tput cup 11 1;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/first_days`

# Day 4 (3rd Group RIGHT)
tput cup 9 35;tput setaf 9
echo "-------------------------------"
tput cup 10 35;tput setaf 9
echo "$(date --date="4 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 10 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 10 53;tput setaf 9
echo `sed -n '23p' ~/1_accuweather/first_days`"°"
tput cup 10 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 10 60;tput setaf 9
echo `sed -n '24p' ~/1_accuweather/first_days`"°"
tput cup 11 35;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/first_days`

# Day 5 (4th Group LEFT)
tput cup 12 1;tput setaf 9
echo "-------------------------------"
tput cup 13 1;tput setaf 9
echo "$(date --date="5 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 13 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 13 19;tput setaf 9
echo `sed -n '3p' ~/1_accuweather/last_days`"°"
tput cup 13 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 13 27
echo `sed -n '4p' ~/1_accuweather/last_days`"°"
tput cup 14 1;tput setaf 2
echo `sed -n '5p' ~/1_accuweather/last_days`

# Day 6 (4th Group RIGHT)
tput cup 12 35;tput setaf 9
echo "-------------------------------"
tput cup 13 35;tput setaf 9
echo "$(date --date="6 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 13 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 13 53;tput setaf 9
echo `sed -n '8p' ~/1_accuweather/last_days`"°"
tput cup 13 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 13 60
echo `sed -n '9p' ~/1_accuweather/last_days`"°"
tput cup 14 35;tput setaf 2
echo `sed -n '10p' ~/1_accuweather/last_days`

# Day 7 (5th Group LEFT)
tput cup 15 1;tput setaf 9
echo "-------------------------------"
tput cup 16 1;tput setaf 9
echo "$(date --date="7 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 16 17;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 16 19
echo `sed -n '13p' ~/1_accuweather/last_days`"°"
tput cup 16 25;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 16 27;tput setaf 9
echo `sed -n '14p' ~/1_accuweather/last_days`"°"
tput cup 17 1;tput setaf 2
echo `sed -n '15p' ~/1_accuweather/last_days`
tput cup 18 1;tput setaf 9
echo "-------------------------------"

# Day 8 (5th Group RIGHT)
tput cup 15 35;tput setaf 9
echo "-------------------------------"
tput cup 16 35;tput setaf 9
echo "$(date --date="8 day" | awk '{print $1" "$3" "$2" "$6}')"
tput cup 16 51;tput setaf 1;tput bold
echo "↑";tput sgr0
tput cup 16 53;tput setaf 9
echo `sed -n '18p' ~/1_accuweather/last_days`"°"
tput cup 16 58;tput setaf 6;tput bold
echo "↓";tput sgr0
tput cup 16 60;tput setaf 9
echo `sed -n '19p' ~/1_accuweather/last_days`"°"
tput cup 17 35;tput setaf 2
echo `sed -n '20p' ~/1_accuweather/last_days`
tput cup 18 35;tput setaf 9
echo "-------------------------------"
tput sgr0

Slick huh.  Thank you Habitual!

Now another way.
Remove or comment out the line in the script that calls for Teo's weather

### Run Teos script to refresh the databases needed
~/1_accuweather/1_accuweather -f2016 2>&1 >/dev/null

and copy the script to the bottom of Teo's script ~/1_accuweather/1_accuweather
Removing the #!/bin/bash like of course like this, your ending of the script may vary:

	fi

################################################################################
### kill -CONT $(pidof conky)
################################################################################
fi

### ========================= Start terminal output ============================

# --- original ---
# 4 Day Weather forecast script for Boardman, OH
# Written by:  Habitual (JJ)
# 11.01.2010 12:10:07
# For conkyForecast by: Kaivalagi
# --- Edited by Sector11 ---
# 7 Day Forecast
# 13 Jan 2013 14:08 UTC
# For conkyForecast by: Kaivalagi

# Re-edited:
# Mon 09 Jan 2017
# For Teo's Accuweather Weather script
# NOTE: Until further notice
# Data files must already be present!!!!
# Script name: ~/bin/1-16s

## Tacked on the end here at Teo's suggestion.

# Clear the screen
tput clear
{snip}
{snip}
{snip}

Now you need to run it like this:

$ bash $HOME/1_accuweather/1_accuweather -f2016

I think I prefer the 1-16s script by itself  smile

Some tweaking may be required because of your terminal size and font.
Especially if your font does not display the ↑ and ↓ arrows.
My terminal uses: Fira Mono - Size 9

Have fun!

EDIT:
1-16s: modifications to the Sun Moon Duration data section.
-  Output image updated as well

Last edited by Sector11 (2017-01-10 13:30:26)


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

Offline

#1447 2017-01-10 02:36:35

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

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

This works for OpenBox on Bunsen using terminator, if you are interested.
In the 1-16s add a last line:

$SHELL

Create an OB menu entry: edit the menu.xml

		<item label="BsAs Wx">
			<action name="Execute">
				<command>terminator --geometry=520x340+80+80 -b -x 1-16s</command>
			</action>
		</item>

or use the GUI app to create the menu entry:
Label: whatever you want: I use BsAs Wx
Action: Execute
Execute: terminator --geometry=520x340+80+80 -b -x 1-16s

DONE!
2017-01-09_233416_Scrot11.th.png


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

Offline

#1448 2017-01-10 17:09:16

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,413

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

Very useful S11, thanks for posting.


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

#1449 2017-01-10 18:03:26

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

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

I just borrow tools others create - then use them to get creative.
Your welcome.


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

Offline

#1450 2017-01-12 18:18:57

chepioq
Member
Registered: 2015-11-29
Posts: 69

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

Hi all.
I have a little weather conky with yahoo api, but Yahoo site is often down, and my conky don't work as expected.

I rebuild my conky with 2b_Wunderground_API, in french (I modify script 2b and rename it as 3b).
Script 3b:

#!/bin/bash

#put your hemisphere here: n for north, s for south
hemisphere=n

#put your Weather Underground address API here
address="http://api.wunderground.com/api/your_api_key_here/conditions/forecast10day/astronomy/hourly/satellite/q/aubagne.json"

wun_icon_to_png () {
    if [[ $1 == day ]]; then
        case $2 in
            chanceflurries)
                echo 21
            ;;
            chancerain)
                echo 14
            ;;
            chancesleet)
                echo 26
            ;;
            chancesnow)
                echo 20
            ;;
            chancetstorms)
                echo 17
            ;;
            clear)
                echo 1
            ;;
            cloudy)
                echo 7
            ;;
            flurries)
                echo 21
            ;;
            fog)
                echo 11
            ;;
            hazy)
                echo 5
            ;;
            mostlycloudy)
                echo 6
            ;;
            mostlysunny)
                echo 4
            ;;
            partlycloudy)
                echo 4
            ;;
            partlysunny)
                echo 6
            ;;
            sleet)
                echo 26
            ;;
            rain)
                echo 18
            ;;
            snow)
                echo 22
            ;;
            sunny)
                echo 1
            ;;
            tstorms)
                echo 15
            ;;
            unknown)
                echo 0
            ;;
        esac
    elif [[ $1 == night ]]; then
        case $2 in
            chanceflurries)
                echo 43
            ;;
            chancerain)
                echo 39
            ;;
            chancesleet)
                echo 40
            ;;
            chancesnow)
                echo 43
            ;;
            chancetstorms)
                echo 41
            ;;
            clear)
                echo 33
            ;;
            cloudy)
                echo 38
            ;;
            flurries)
                echo 43
            ;;
            fog)
                echo 11
            ;;
            hazy)
                echo 37
            ;;
            mostlycloudy)
                echo 36
            ;;
            mostlysunny)
                echo 35
            ;;
            partlycloudy)
                echo 35
            ;;
            partlysunny)
                echo 36
            ;;
            sleet)
                echo 40
            ;;
            rain)
                echo 40
            ;;
            snow)
                echo 44
            ;;
            sunny)
                echo 33
            ;;
            tstorms)
                echo 41
            ;;
            unknown)
                echo 0
            ;;
        esac
    fi
    }
    
rm $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/*.png

wget -O $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/raw_data $address
    
sed -n '/,	"current_observation": {/,/,	"satellite": {/p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/raw_data | sed 's/"Clear"/"Ciel dégagé"/g;s/"Partly Cloudy"/"Partiellement Nuageux"/g;s/"Chance of Flurries"/"Risque de neige"/g;s/"Chance of Rain"/"Risque de pluie"/g;s/"Chance Rain"/"Risque de pluie"/g;s/"Chance of Freezing Rain"/"Risque de pluie verglaçante"/g;s/"Chance of Sleet"/"Risque de grésil"/g;s/"Chance of Snow"/"Risque de neige"/g;s/"Chance of Thunderstorm*"/"Risque d orage"/g;s/"Cloudy"/"Nuageux"/g;s/"Flurries"/"Averse de neige"/g;s/"Fog"/"Brouillard"/g;s/"Haze"/"Brume"/g;s/"Mostly Cloudy"/"Plutôt nuageux"/g;s/"Mostly Sunny"/"Plutôt ensoleillé"/g;s/"Partly Sunny"/"Partiellement ensoleillé"/g;s/"Freezing Rain"/"Pluie verglaçante"/g;s/"Rain"/"Pluie"/g;s/"Sleet"/"Neige fondue"/g;s/"Snow"/"Neige"/g;s/"Sunny"/"Ensoleillé"/g;s/"Thunderstorm*"/"Orage"/g;s/"Overscat"/"Couvert"/g;s/"Scattered Clouds"/"Nuages épars"/g;s/"NW"/"NO"/g;s/"WNW"/"ONO"/g;s/"SW"/"SO"/g;s/"WSW"/"OSO"/g;s/"NNW"/"NNO"/g' > $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions
sed -i 's/^[ \t]*"//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions
sed -i '/current_observation\|image":\|logo_\|title":\|link":\|^[ \t]*},$\|^[ \t]*}$\|temperature_string\|forecast_url\|history_url\|ob_url\|satellite":/d' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions
sed -i -e 's/":"/\n/g' -e 's/",\|": {$//g' -e 's/"precip_1hr_string/\nprecip_1hr_string/g' -e 's/":/\n/g' -e 's/,$//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions
sed -i -e 's/^http.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions
day_or_night=$(sed -n 137p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions)
if [[ $day_or_night == nt ]]; then
	cp $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast_Images/$(wun_icon_to_png night $(sed -n 135p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions)).png $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Now.png
else 
	cp $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast_Images/$(wun_icon_to_png day $(sed -n 135p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions)).png $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Now.png
fi
#Forecast feature: Forecast
sed -n '/"forecast":{/,/"simpleforecast": {/p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/raw_data > $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast
sed -i -e '/"period":\|icon_url/d' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast
sed -i 's/^[ \t]*"//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast
sed -i -e '/period\|icon\|title\|fcttext/!d' -e 's/":"/\n/g' -e 's/":/\n/g' -e 's/",//g' -e 's/,$//g' -e 's/nt_//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast

#Forecast feature: Simple Forecast
sed -n '/"simpleforecast": {/,/"hourly_forecast": \[/p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/raw_data | sed 's/"Clear"/"Ciel dégagé"/g;s/"Partly Cloudy"/"Partiellement Nuageux"/g;s/"Chance of Flurries"/"Risque de neige"/g;s/"Chance of Rain"/"Risque de pluie"/g;s/"Chance Rain"/"Risque de pluie"/g;s/"Chance of Freezing Rain"/"Risque de pluie verglaçante"/g;s/"Chance of Sleet"/"Risque de grésil"/g;s/"Chance of Snow"/"Risque de neige"/g;s/"Chance of Thunderstorm*"/"Risque d orage"/g;s/"Cloudy"/"Nuageux"/g;s/"Flurries"/"Averse de neige"/g;s/"Fog"/"Brouillard"/g;s/"Haze"/"Brume"/g;s/"Mostly Cloudy"/"Plutôt nuageux"/g;s/"Mostly Sunny"/"Plutôt ensoleillé"/g;s/"Partly Sunny"/"Partiellement ensoleillé"/g;s/"Freezing Rain"/"Pluie verglaçante"/g;s/"Rain"/"Pluie"/g;s/"Sleet"/"Neige fondue"/g;s/"Snow"/"Neige"/g;s/"Sunny"/"Ensoleillé"/g;s/"Thunderstorm*"/"Orage"/g;s/"Overscat"/"Couvert"/g;s/"Scattered Clouds"/"Nuages épars"/g;s/"NW"/"NO"/g;s/"WNW"/"ONO"/g;s/"SW"/"SO"/g;s/"WSW"/"OSO"/g;s/"NNW"/"NNO"/g' > $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast
sed -i 's/^[ \t]*"//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast
sed -i '/hourly_forecast\|simpleforecast\|forecastday\|{"date"\|period\|icon_url\|^[ \t]*},$\|^[ \t]*}$\|^[ \t]*,$\|^[ \t]*\]$/d' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast
sed -i -e 's/":"/\n/g' -e 's/":/\n/g' -e 's/",$//g' -e 's/,$//g' -e 's/"$//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2//Simple_Forecast
sed -i '/^[ \t]*{/d' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast
for (( i=2; i<=146; i+=16 ))
    do
        cp $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast)).png $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d$(( 1+(i-2)/16 )).png
        j=$(( i+8 ))
        cp $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast_Images/$(wun_icon_to_png night $(sed -n ${j}p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast)).png $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2//n$(( 1+(i-2)/16 )).png
    done
    
    sed -n '/"hourly_forecast": \[/,/"moon_phase": {/p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/raw_data > $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly
sed -i -e 's/^[ \t]*"//g' -e 's/^[ \t]*//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly
sed -i '/hourly_forecast\|FCTTIME\|^{$\|^},$\|^}$\|^,$\|^]$\|moon_phase/d' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly
sed -i -e 's/": /\n/g' -e 's/","/\n/g' -e 's/", "/\n/g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly
sed -i -e 's/^""//g' -e 's/^"//g' -e 's/^{"//g' -e 's/"},$//g' -e 's/",$//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly 
sed -i -e 's/^},//g' -e 's/"}$//g' -e 's/^,//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly
sed -i -e 's/^icon_url.*\/c\/k\///g' -e '/gif/s/_.*$//g' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly
sed -i -e '/min_unpadded\|UTCDATE/,+1d' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly
for (( i=64; i<=4212; i+=117 ))
    do
		j=$(( i+1 ))
		day_or_night=$(sed -n ${j}p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly)
		if [[ $day_or_night == nt ]]; then
			cp $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast_Images/$(wun_icon_to_png night $(sed -n ${i}p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly)).png $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/h$(( 1+(i-64)/117 )).png
		else 
			cp $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Forecast_Images/$(wun_icon_to_png day $(sed -n ${i}p $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Hourly)).png $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/h$(( 1+(i-64)/117 )).png
		fi
    done
    

My conky

conky.config = {
background = false,
use_xft = true,
font = 'DejaVuSansMono:size=8',
update_interval = 1800.0,
total_run_times = 0,
own_window = true,
own_window_type = 'dock',
own_window_transparent = true,
own_window_argb_visual = true,
own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
stippled_borders = 8,
border_inner_margin = 4,
alignment = 'top_left',
minimum_width = 170,
minimum_height = 283,
gap_x = 130,
gap_y = 85,
no_buffers = false,
uppercase = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = true,
use_spacer = right,
text_buffer_size = 6144,
imlib_cache_size = 8192, 

default_outline_color = '000000',
color1 = 'F5B800',
color2 = '00f5ff',
lua_load = '/home/dominique/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/weather.lua',
lua_draw_hook_pre = 'main'
}

conky.text = [[
${goto 50}${font DejaVuSansMono:bold:size=8}${color2}Actuel${color1}${font} ${font DejaVuSansMono:bold:size=8}${goto 160}${color1}${exec sed -n '67p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}°${font}
${color1}${goto 50}${exec sed -n '63p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Now.png -p -1,1 -s 53x32}
${goto 50}${font DejaVuSansMono:bold:size=8}${color2}Aujourd'hui${font}${color1} ${color2}${goto 160}${exec sed -n '44p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '39p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°

${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d1.png -p -1,35 -s 53x32} ${voffset -12}${goto 50}${exec sed -n '46p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${voffset 6}${goto 50}${font DejaVuSansMono:bold:size=8}${color2}${execi 3600 date --date="1 day" | awk '{print $1""$3}' | tr '[a-z]' '[A-Z]'}${goto 160}${exec sed -n '150p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '145p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '152p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d2.png -p -1,71 -s 53x32}
${color2}${goto 50}${execi 3600 date -d +2days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 160}${exec sed -n '256p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '251p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '258p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d3.png -p -1,107 -s 53x32}
${color2}${goto 50} ${execi 3600 date -d +3days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 160}${exec sed -n '362p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '357p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '364p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast} 
${voffset -10}${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d4.png -p -1,143 -s 53x32}
${voffset 6}${goto 50}${color2}${execi 3600 date -d +4days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 160}${exec sed -n '362p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '357p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '470p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${voffset -10}${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d5.png -p -1,179 -s 53x32}
${goto 50}${color2}${execi 3600 date -d +5days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 160}${exec sed -n '574p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '569p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '576p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${voffset -10}${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d6.png -p -1,215 -s 53x32}
${voffset 6}${color2}${goto 50}${execi 3600 date -d +6days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 160}${exec sed -n '680p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '675p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '682p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d7.png -p -1,251 -s 53x32}
${voffset 6}${color2}${goto 50}${execi 3600 date -d +7days | awk '{print $1""$3 }'| tr '[a-z]' '[A-Z]'}${goto 160}${exec sed -n '786p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°/${color1} ${exec sed -n '781p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}°${font}${color1}  
${goto 50}${exec sed -n '788p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Simple_Forecast}
${image ~/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/d8.png -p -1,287 -s 53x32}

${color2}Humidité${alignr}${color1}${exec sed -n '69p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
${color2}Pression${alignr}${color1}${exec sed -n '85p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions} hPa
${color2}Vent${alignr}${color1}${exec sed -n '81p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions} km/h${alignr}
${color2}Direction ${alignr}${color1}${exec sed -n '73p' $HOME/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/Conditions}
]]

weather.lua script:

function conky_main()
  os.execute("/home/dominique/.conkyrc/conky-1.10/conky-meteo/conky-aubagne-2/3b")
  end

  

And the result:
A5g0.jpg

Last edited by chepioq (2017-01-12 19:30:50)

Offline

Board footer

Powered by FluxBB