You are not logged in.

#721 2016-03-20 14:29:46

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

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

Can you recognize here what?
the picture above

With this configuration

]Snip
--# LUA #--
    lua_load = "/home/unklarer/LUA/draw_bg.lua",
    lua_draw_hook_pre = "draw_bg 40 10 10 80 80 0xB0E0E6 0.5"        

};

conky.text = [[
${time %T}${alignr}${utime %T}
${uptime}${alignr}${time %x}
${alignc}CPU Avg ${if_match ${cpu cpu0}<10}${color1}00${color6}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color1}0${color5}${cpu cpu0}\
${else}${color4}${cpu cpu0}${endif}${endif}${color5}%${color}
${alignc}Conky v${conky_version}
${alignc}${color4}${membar 0,25}${color} ↓ test code ↓ ${color4}${membar 0,25}${color}
${color4}${membar 0}${color}

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

${color4}${membar 0}${color}
${alignc}${color4}${membar 0,25}${color} ↑ between lines ↑ ${color4}${membar 0,25}${color}
]];

results in DEBUG mode

 conky -c ~/conkyrcx_10 -DD &
[1] 12585
unklarer@x40:~$ DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:2685]: reading contents from config file '/home/unklarer/conkyrcx_10'
conky: desktop window (6e) is root window
conky: window type - normal
conky: drawing to created window (0x1000001)
conky: drawing to double buffer
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:1917]: no templates to replace
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:1917]: no templates to replace
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:577]: Adding $cpu for CPU 0
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:577]: Adding $cpu for CPU 0
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:1917]: no templates to replace
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:577]: Adding $cpu for CPU 0
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:577]: Adding $cpu for CPU 0
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/core.cc:577]: Adding $cpu for CPU 0
conky: forked to background, pid is 12590

DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '5<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '5' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '14<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '14' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '14<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '14' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '19<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '19' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '19<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '19' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '13<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '13' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '13<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '13' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '9<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '9' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '9<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '9' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '10<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '10' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '11<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '11' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '11<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '11' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '12<10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '12' and '10'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
DEBUG(0) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:267]: parsed arg into '12<100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/algebra.cc:109]: comparing longs '12' and '100'
DEBUG(1) [/build/conky-iWkrZo/conky-1.10.1/src/conky.cc:861]: jumping
conky: received SIGINT or SIGTERM to terminate. bye!

Offline

#722 2016-03-20 14:35:36

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

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

I wish I could help you guys, but my lua knowledge can be summed up by this:
YynC5H0t.jpg


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

#723 2016-03-20 14:44:16

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

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

@Teo,

this is not a problem. smile
Nobody is omniscient.

I have great respect for you and the @El Conkystator.  smile

We alienate your thread  :8

Offline

#724 2016-03-20 15:45:16

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

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

unklar wrote:

Can you recognize here what?
the picture above

With this configuration
results in DEBUG mode

Totally lost, it looks like you have draw-bk.lua working in this image:
http://jupiter.workupload.com/image/C6xgvk5g
... but with no corners.

At a loss as to what happened.  It looks like conky v1.10 is having a problem reading the ${if_match} statements, that is the only place where ${cpu cpu0} is.   sad

@TEO - I consider myself LUA illiterate as well, but not quite Homer style.   wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#725 2016-03-20 15:48:57

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

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

twoion wrote:

If you could present the concerning Lua program in its entirety (which I do not seem to be able to locate in the vicinity) the case would become much clearer.

Thank you for stepping up to the plate.

draw-bk.lua
- works perfectly with conky v1.9 found in BunsenLabs,
- unklar is trying to get it to work with conky v1.10 in a KDE environment.

draw-bk.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 #########################################################

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#726 2016-04-07 17:13:57

falldown
Member
Registered: 2016-04-01
Posts: 20

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

@Teo I am working on weather icons (2 sets Mono and Realistic) which I started with Peachy's incredible Lua weather scripts. I would like to finish those and contribute here if you do not mind. I have been running your scripts for a few days now and I apologize for not checking these out sooner. Nicely done mate!

Offline

#727 2016-04-07 20:22:35

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

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

Thanks a lot falldown!
I'd love to see your work, I'd be honoured...


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

#728 2016-04-08 01:08:08

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

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

OH YEA!  Now this will be a combo to watch - Teo's scripts with falldown's graphical magic!

Grabbing a coke, a large bag of popcorn and making a bee-line for the La-Z-Boy

ACTION!

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#729 2016-04-08 10:03:34

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

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

^ I am also very excited about @falldown magic with the images.  wink

Aber, lieber @Sector11, von Cola wird der Mensch doch impotend.   tongue  lol

Offline

#730 2016-04-08 10:47:46

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

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

Guten tag unklar.

Not 100% sure what you mean ... sad
Cola and  impotend  ?

code? important?  <-- if that's it.  I agree, and falldown can do that very well without a problem.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#731 2016-04-17 09:04:43

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

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

Hello

I allowed myself to make a modification from the 1a_accuweather_conkyweather_font in french too integration with the meteo-conky

1460883485.png

the french translation in 1a

cp $HOME/1a_accuweather_conkyweather_font/curr_cond $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
if [[ -s $HOME/1a_accuweather_conkyweather_font/curr_cond-fr ]]; then
	sed -i -e 's/Clouds and sun/Nuages et soleil/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/A brief averses this morning/Brèves averses ce matin/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Turning cloudy and less humid/Moins nuageux et moins humide/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/A couple of showers/Averses éparses/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Mostly cloudy/Ciel plutôt nuageux/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Rain and drizzle/Pluie et bruine/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Cloudy with a couple/Nuages épars/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Cloudy with a bit of/Nuageux,Faible pluie/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr	
	sed -i -e 's/Cloudy/Nuageux/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/A few a.m. showers,/Pluies l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Showers around in th/Quelques averses l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/breezy/Venteux/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Times of clouds and/Nuages épars avec soleil/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/A little morning rai/Faible pluie le matin/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/a little morning rai/Faible pluie le matin/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/A touch of afternoon/Faible pluie l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Periods of rain/Pluies intermittentes/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Rain shover/Averses de pluie/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Rain/Pluie/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Light rain/Pluie/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Foggy/Brumeux/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Dense fog/Brouillard dense/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Light fog/Léger brouillard/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Mist/Brume/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Light rain shower/Pluie faible/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Partly cloudy/Partiellement nuageux/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/shower/averses/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Som sun,then turni/Mitigé/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Sunny/Ensoleillé/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Freezing rain/Pluie verglaçante/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Partly sunny/Partiellement ensoleillé/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	sed -i -e 's/Clear/Clair/' $HOME/1a_accuweather_conkyweather_font/curr_cond-fr
	
	
fi

cp $HOME/1a_accuweather_conkyweather_font/tod_ton $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
if [[ -s $HOME/1a_accuweather_conkyweather_font/tod_ton-fr ]]; then
	sed -i -e 's/Cloudy with a bit of rain/Nuages avec un peu de pluie/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Chilly with periods of sun/Moins nuageux avec du soleil/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/A couple of showers/Averses éparses/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Mostly cloudy/Ciel plutôt nuageux/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Rain and drizzle this morning/Pluie et bruine ce matin/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Cloudy with a couple/Nuages épars/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Cloudy with a bit of/Nuageux,Faible pluie/' $HOME/	1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Cloudy/Nuageux/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/A few a.m. showers,/Pluies l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Showers around in th/Quelques averses l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/breezy/Venteux/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Times of clouds and sun/Nuages épars avec soleil/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/A little morning rai/Faible pluie le matin/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/a little morning rai/Faible pluie le matin/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/A touch of afternoon/Faible pluie l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Periods of rain/Pluies intermittentes/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Rain shover/Averses de pluie/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Rain/Pluie/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Light rain/Pluie/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Foggy/Brumeux/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Dense fog/Brouillard dense/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Light fog/Léger brouillard/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Mist/Brume/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Light rain shower/Pluie faible/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Partly cloudy/Partiellement nuageux/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/shower/averses/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Som sun,then turni/Mitigé/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Sunny/Ensoleillé/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Freezing rain/Pluie verglaçante/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Partly sunny/Partiellement ensoleillé/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/Clear/Clair/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	sed -i -e 's/A brief averses this morning/Brèves averses ce matin/' $HOME/1a_accuweather_conkyweather_font/tod_ton-fr
	
fi

cp $HOME/1a_accuweather_conkyweather_font/last_days $HOME/1a_accuweather_conkyweather_font/last_days-fr
if [[ -s $HOME/1a_accuweather_conkyweather_font/last_days-fr ]]; then
	sed -i -e 's/Cloudy with a bit of rain/Nuages avec un peu de pluie/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Chilly with periods of sun/Moins nuageux avec du soleil/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/A couple of showers/Averses éparses/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Mostly cloudy/Ciel plutôt nuageux/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Rain and drizzle in the a.m./Pluie et bruine cet après-midi/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Cloudy with a couple/Nuages épars/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Cloudy with a bit of/Nuageux,Faible pluie/' $HOME/	1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Cloudy/Nuageux/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/A few a.m. showers,/Pluies l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Showers around in th/Quelques averses l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/breezy/Venteux/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Times of clouds and sun/Nuages épars avec soleil/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/A little morning rai/Faible pluie le matin/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/a little morning rai/Faible pluie le matin/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/A touch of afternoon/Faible pluie l'\''après-midi/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Periods of rain/Pluies intermittentes/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Rain shover/Averses de pluie/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Rain/Pluie/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Light rain/Pluie/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Foggy/Brumeux/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Dense fog/Brouillard dense/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Light fog/Léger brouillard/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Mist/Brume/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Light rain shower/Pluie faible/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Partly cloudy/Partiellement nuageux/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/shower/averses/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Som sun,then turni/Mitigé/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Sunny/Ensoleillé/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Freezing rain/Pluie verglaçante/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Partly sunny/Partiellement ensoleillé/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Clear/Clair/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Mainly cloudy and warmer/Nuageux et plus chaud/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Some sun with a few averses/Ensoleillé avec quelques averses/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/with a averses/avec quelques averses/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	sed -i -e 's/Decreasing clouds/Nuages discrets/' $HOME/1a_accuweather_conkyweather_font/last_days-fr
	
fi

        sed -i -e 's/TODAY/Aujourd'\''hui/g' -e 's/TONIGHT/Ce soir'\''hui/g' -e 's/MONDAY/Lundi/g' -e 's/TUESDAY/Mardi/g' -e 's/WEDNESDAY/Mercredi/g' -e 's/THURSDAY/Jeudi/g' -e 's/FRIDAY/Vendredi/g' -e 's/SATURDAY/Samedi/g' -e 's/SUNDAY/Dimanche/g' /$HOME/1a_accuweather_conkyweather_font/tod_ton
        sed -i -e 's/TODAY/Aujourd'\''hui/g' -e 's/TONIGHT/Ce soir'\''hui/g' -e 's/MONDAY/Lundi/g' -e 's/TUESDAY/Mardi/g' -e 's/WEDNESDAY/Mercredi/g' -e 's/THURSDAY/Jeudi/g' -e 's/FRIDAY/Vendredi/g' -e 's/SATURDAY/Samedi/g' -e 's/SUNDAY/Dimanche/g' /$HOME/1a_accuweather_conkyweather_font/last_days
        

That done this :

1460883881.png


@+

Last edited by loutch (2016-04-17 16:11:52)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#732 2016-04-17 21:10:55

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

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

Very nice job loutch.
I've placed a link to your post on the first page.

Last edited by TeoBigusGeekus (2016-04-17 21:13:30)


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

#733 2016-04-18 16:35:52

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

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

hello

@ Theo tanks

i try the WUnderground ICAL - International users - 2a_12-2-14 because he have an wind direction and a compas rose but the conky doesen't work ,i could'nt become any ical code i haven't any blue bottom on the topish right of the page.

1460997170.png

Could any-one help me to found this bottom

thanks for helping

mine messages.wum is empty




@+

Last edited by loutch (2016-04-18 16:40:23)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#734 2016-04-18 18:09:42

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

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

OH OH!  I have the same problem: No blue ICAL button, and my 'messages.wun' (using the script OOTB) is empty.  ics was created for Kastoria - OK, that's as expected - the script has that ical link built in.  smile

So I run: /home/sector11/2a_conky_wunderground/wunderground-script in a terminal:

 18 Apr 16 @ 14:55:29 ~
  $ /home/sector11/2a_conky_wunderground/wunderground-script
--2016-04-18 14:55:33--  http://ical.wunderground.com/auto/ical/global/stations/16614.ics?units=metric
Resolving ical.wunderground.com (ical.wunderground.com)... 38.102.136.104
Connecting to ical.wunderground.com (ical.wunderground.com)|38.102.136.104|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/calendar]
Saving to: ‘/home/sector11/2a_conky_wunderground/ics’

/home/sector11/2a_conky_wun     [ <=>                                          ]   2.75K  --.-KB/s   in 0s     

2016-04-18 14:55:33 (278 MB/s) - ‘/home/sector11/2a_conky_wunderground/ics’ saved [2816]

rm: cannot remove ‘/home/sector11/2a_conky_wunderground/yes’: No such file or directory
rm: cannot remove ‘/home/sector11/2a_conky_wunderground/weather_icons’: No such file or directory
cat: /home/sector11/2a_conky_wunderground/weather_icons: No such file or directory
 
 18 Apr 16 @ 14:55:34 ~
  $ 

What are we missing Teo?  This is crazy, I have a copy over at:
/media/5/Conky/2a_wunderground_ICAL
that has:
- /media/5/Conky/2a_wunderground_ICAL/S11_2a_ICAL.conky
- /media/5/Conky/2a_wunderground_ICAL/2a_ICAL.conky
that both worked ... now they don't.  The script there uses Teo's location as well.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#735 2016-04-18 19:01:53

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

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

I think the script is dead.
I tested it like you did and got the same error messages.
I then put the script's url (http://ical.wunderground.com/auto/ical/ … its=metric) in a web browser, hit enter and downloaded the ics file:

BEGIN:VCALENDAR
PRODID:-//Weather Underground Inc//Wunder Weather Calendar//EN
X-WR-CALNAME:Kastoria\, Greece Weather - By Weather Underground
X-WR-TIMEZONE:Europe/Athens
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH


BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1430740800-0-0
DTSTAMP:20150504T120000Z
DTSTART;VALUE=DATE:20150504

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Scattered Clouds 26C / 11C 
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1430827200-1-1430827200
DTSTAMP:20150505T120000Z
DTSTART;VALUE=DATE:20150505

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Clear 28C / 11C 
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1430913600-2-2861827200
DTSTAMP:20150506T120000Z
DTSTART;VALUE=DATE:20150506

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Clear 28C / 12C 
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1431000000-3-4293000000
DTSTAMP:20150507T120000Z
DTSTART;VALUE=DATE:20150507

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Clear 32C / 12C 
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1431086400-4-5724345600
DTSTAMP:20150508T120000Z
DTSTART;VALUE=DATE:20150508

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Scattered Clouds 29C / 12C 
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1431172800-5-7155864000
DTSTAMP:20150509T120000Z
DTSTART;VALUE=DATE:20150509

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Clear 23C / 8C 
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1431259200-6-8587555200
DTSTAMP:20150510T120000Z
DTSTART;VALUE=DATE:20150510

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Partly Cloudy 24C / 10C 
TRANSP:TRANSPARENT
END:VEVENT
BEGIN:VEVENT
SEQUENCE:1
CLASS:PUBLIC
CREATED:20150504T000000Z
LAST-MODIFIED:20150504T000000Z
GEO:40.45000076;21.28000069
UID:1431345600-7-10019419200
DTSTAMP:20150511T120000Z
DTSTART;VALUE=DATE:20150511

LOCATION:Kastoria\, Greece
STATUS:CONFIRMED
SUMMARY:Chance of Rain 25C / 7C 
TRANSP:TRANSPARENT
END:VEVENT





END:VCALENDAR

Notice the last weather forecast date: 11th of May, 2015

The address must be dead for almost a year now...

I'll try to find whether wunderground keeps its ical addresses elsewhere, if they still support ical addresses.
Otherwise, I think the script is dead, RIP...


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

#736 2016-04-18 20:46:05

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

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

TeoBigusGeekus wrote:

I think the script is dead, RIP...

Teo wrote:

Notice the last weather forecast date: 11th of May, 2015

Ohhhhhhhhhhhhh missed that ... says the same here.  sad


Dearly Beloved,

We gather here today to honour the memory of our friend, 2a)WUnderground ICAL - International users

That was the name Teo gave him, we knew him simply as Wun ICAL or 2a

He goes to meet his big brother - what's his name - you know - of the weather.com infamy! ]:D

It's OK, Teo, we have more - right?  Teo?  Right?  smile  smile  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#737 2016-04-19 06:53:06

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

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

Lol, we should have a wake...
...but I'll see if I could resurrect it somehow before we bury it...


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

#738 2016-04-19 07:30:10

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

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

hello

OK That too bad because the wind rose is really good

Lol, we should have a wake...
...but I'll see if I could resurrect it somehow before we bury it...

If it is too much complicated we leave fallen

Thank you again and


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#739 2016-04-21 08:49:36

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

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

ANNOUNCEMENT
The Wunderground ICAL Script (2a) has stopped working. I couldn't find any ICAL link in the (new) wunderground page.
Tried to create a new script but crashed on a javascript wall.
This script was one of the first ones I created and has been around since 2009.
It saddens me to announce that it's dead...


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

#740 2016-04-21 09:18:44

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

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

@Teo, O:)

you need not be sad
you have created excellent scripts   smile

Offline

Board footer

Powered by FluxBB