SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1826 2015-05-22 18:29:18

technomole
New Member
Registered: 2015-05-15
Posts: 9

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

Okay I've been messing about and this is what I have so far

Screenshot_from_2015_05_22_19_22_02.png

Not sure I'm happy with it lay out wise, but I'm still tweaking it.

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048
alignment top_middle
gap_x 10
gap_y 50
minimum_size 780 850
maximum_width 550
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 0
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0


draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_shade_color 112422

override_utf8_locale yes
use_xft yes
xftfont Feena Casual:size=10
xftalpha 1
#uppercase yes

default_color FFFFFF
#default_color FFFFFF
#E87E3C
own_window_colour 000000
TEXT

${voffset 0}${color FFFFFF}${font Ubuntu:size=10}Today's Moon ${color}
${execi 500 bash $HOME/4_Moon/moon}${font}
${image $HOME/4_Moon/today.png -p -30,80 -s 85x85}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '9p' $HOME/4_Moon/raw}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '1p' $HOME/4_Moon/raw}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '2p' $HOME/4_Moon/raw}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '3p' $HOME/4_Moon/raw}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '4p' $HOME/4_Moon/raw}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '5p' $HOME/4_Moon/raw}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '6p' $HOME/4_Moon/raw}
${voffset 1}${goto 90}${font Ubuntu:size=9}${execpi 600 sed -n '7p' $HOME/4_Moon/raw}

${voffset 5}${color FFFFFF}${font Ubuntu:size=10}Last two days :
${voffset 5}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '12p' $HOME/4_Moon/raw}
${voffset 2}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '13p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '14p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '15p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '16p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '17p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '18p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '19p' $HOME/4_Moon/raw}

${voffset -120}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '20p' $HOME/4_Moon/raw}
${voffset 2}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '21p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '22p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '23p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '24p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '25p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '26p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '27p' $HOME/4_Moon/raw}

${voffset 0}${color FFFFFF}${font Ubuntu:size=10}Next two days :
${voffset 5}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '28p' $HOME/4_Moon/raw}
${voffset 2}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '29p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '30p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '31p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '32p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '33p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '34p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Ubuntu:size=8}${execpi 600 sed -n '35p' $HOME/4_Moon/raw}

${voffset -120}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '36p' $HOME/4_Moon/raw}
${voffset 2}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '37p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '38p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '39p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '40p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '41p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '42p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Ubuntu:size=8}${execpi 600 sed -n '43p' $HOME/4_Moon/raw}

This is the conky for the moon phase, the other stuff I have going on is various other conky's in various states of tinkering.

Many thanks.

Last edited by technomole (2015-05-22 18:32:21)


'What am I now that I was then? May memory restore again and again
The smallest colour of the smallest day, Time is the school in which we learn,
Time is the fire in which we burn. '

Offline

Help fund CrunchBang, donate to the project!

#1827 2015-05-22 18:52:56

technomole
New Member
Registered: 2015-05-15
Posts: 9

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

Do people in the northern hemisphere see the same?
Full and New should be the same - the shadows on the others should be reversed.

I see the same image as you posted in the screenshot named north, I assume as you say these are reversed in the southern hemisphere but the full moon etc are the same.


'What am I now that I was then? May memory restore again and again
The smallest colour of the smallest day, Time is the school in which we learn,
Time is the fire in which we burn. '

Offline

#1828 2015-05-22 18:58:27

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

Another layout:
2015_05_22_15_36_21_464x683_Sector11.jpg
Now if I can only talk Teo into grabbing those images too.  smile

Otherwise I'll have to ${if_match} things to the 9AM/9PM stuff

#${texeci 500 $HOME/4_Moon/moon}
TEXT
The Moon Script by Teo BigusGeekus ${membar 0}
${font Fantasque Sans Mono:size=20}${goto 120}${execpi 600 sed -n '12p' $HOME/4_Moon/raw}\
${goto 300}${execpi 600 sed -n '20p' $HOME/4_Moon/raw}${font}

Illumunation:${goto 120}${execpi 600 sed -n '13p' $HOME/4_Moon/raw}\
${goto 300}${execpi 600 sed -n '21p' $HOME/4_Moon/raw}
Sun Angle:${goto 120}${execpi 600 sed -n '14p' $HOME/4_Moon/raw | cut -c12-}°\
${goto 300}${execpi 600 sed -n '22p' $HOME/4_Moon/raw | cut -c12-}°
Sun Distance:${goto 120}${execpi 600 sed -n '15p' $HOME/4_Moon/raw | cut -c15-}\
${goto 300}${execpi 600 sed -n '23p' $HOME/4_Moon/raw | cut -c15-}
Moon Distance:${goto 120}${execpi 600 sed -n '16p' $HOME/4_Moon/raw | cut -c16-}\
${goto 300}${execpi 600 sed -n '24p' $HOME/4_Moon/raw | cut -c16-}
Moon Age:${goto 120}${execpi 600 sed -n '17p' $HOME/4_Moon/raw | cut -c11-} days\
${goto 300}${execpi 600 sed -n '25p' $HOME/4_Moon/raw | cut -c11-} days
Moon Angle:${goto 120}${execpi 600 sed -n '18p' $HOME/4_Moon/raw | cut -c13-}°\
${goto 300}${execpi 600 sed -n '26p' $HOME/4_Moon/raw | cut -c13-}°
Phase:${goto 120}${execpi 600 sed -n '19p' $HOME/4_Moon/raw}\
${goto 300}${execpi 600 sed -n '27p' $HOME/4_Moon/raw}
${membar 0}
  ${font Fantasque Sans Mono:size=20}${execpi 600 sed -n '9p' $HOME/4_Moon/raw}${font}

Illumunation:${goto 300}${execpi 600 sed -n '1p' $HOME/4_Moon/raw | cut -c15-}
Sun Angle:${goto 300}${execpi 600 sed -n '2p' $HOME/4_Moon/raw | cut -c12-}°
Sun Distance:${goto 300}${execpi 600 sed -n '3p' $HOME/4_Moon/raw | cut -c15-}
Moon Distance:${goto 300}${execpi 600 sed -n '4p' $HOME/4_Moon/raw | cut -c16-}
Moon Age:${goto 300}${execpi 600 sed -n '5p' $HOME/4_Moon/raw | cut -c11-} days
Moon Angle:${goto 300}${execpi 600 sed -n '6p' $HOME/4_Moon/raw | cut -c13-}°
Phase:${goto 300}${execpi 600 sed -n '7p' $HOME/4_Moon/raw}
Moonrise/Set:${goto 300}Approx: ${execpi 600 sed -n '8p' $HOME/4_Moon/raw}


${image /media/5/Conky/images/red+x.png -p 130,210 -s 90x90}\
${image $HOME/4_Moon/today.png -p 130,210 -s 90x90}\
${image $HOME/4_Moon/back/rise_WaxingCrescent.jpg -p 0,325 -s 450x111}\
${image /media/5/Conky/images/red+x.png -p 45,385 -s 30x30}\
${image $HOME/4_Moon/today.png -p 45,385 -s 30x30}
${image /media/5/Conky/images/red+x.png -p 210,325 -s 30x30}\
${image $HOME/4_Moon/today.png -p 210,325 -s 30x30}
${image /media/5/Conky/images/red+x.png -p 375,385 -s 30x30}\
${image $HOME/4_Moon/today.png -p 375,385 -s 30x30}




${membar 0}
${font Fantasque Sans Mono:size=20}${goto 120}${execpi 600 sed -n '28p' $HOME/4_Moon/raw}\
${goto 300}${execpi 600 sed -n '36p' $HOME/4_Moon/raw}${font}

Illumunation:${goto 120}${execpi 600 sed -n '29p' $HOME/4_Moon/raw}\
${goto 300}${execpi 600 sed -n '37p' $HOME/4_Moon/raw}
Sun Angle:${goto 120}${execpi 600 sed -n '30p' $HOME/4_Moon/raw | cut -c12-}°\
${goto 300}${execpi 600 sed -n '38p' $HOME/4_Moon/raw | cut -c12-}°
Sun Distance:${goto 120}${execpi 600 sed -n '31p' $HOME/4_Moon/raw | cut -c15-}\
${goto 300}${execpi 600 sed -n '39p' $HOME/4_Moon/raw | cut -c15-}
Moon Distance:${goto 120}${execpi 600 sed -n '32p' $HOME/4_Moon/raw | cut -c16-}\
${goto 300}${execpi 600 sed -n '40p' $HOME/4_Moon/raw | cut -c16-}
Moon Age:${goto 120}${execpi 600 sed -n '33p' $HOME/4_Moon/raw | cut -c11-} days\
${goto 300}${execpi 600 sed -n '41p' $HOME/4_Moon/raw | cut -c11-} days
Moon Angle:${goto 120}${execpi 600 sed -n '34p' $HOME/4_Moon/raw | cut -c13-}°\
${goto 300}${execpi 600 sed -n '42p' $HOME/4_Moon/raw | cut -c13-}°
Phase:${goto 120}${execpi 600 sed -n '35p' $HOME/4_Moon/raw}\
${goto 300}${execpi 600 sed -n '43p' $HOME/4_Moon/raw}
${membar 0}

line 10${goto 120}${execpi 600 sed -n '10p' $HOME/4_Moon/raw}
line 11${goto 120}${execpi 600 sed -n '11p' $HOME/4_Moon/raw}
Line 44${goto 120}${execpi 600 sed -n '44p' $HOME/4_Moon/raw}

·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1829 2015-05-22 19:00:58

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

technomole wrote:

I see the same image as you posted in the screenshot named north, I assume as you say these are reversed in the southern hemisphere but the full moon etc are the same.

Actually if you look at the face of the full moon with it creators and "seas" it is reversed as well.   wink
New moon the same, but of course we can't see it.  smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1830 2015-05-22 19:09:59

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Alright...
@technomole
Lines 1 through to 9 are the current moon forecast for today( May 22nd at time of writing)    ---   CORRECT
Lines 10 to 11 are the moon phase for the month?   ---   NOPE, just some left over garbage. Ignore it please
Lines 12 through 27 are the previous 2 days forecast    ---   CORRECT
Lines 28 through 44 are the next 2 days forecast    ---   CORRECT

Actually, line 44 is the today's phase image and it is needed for the moon_phase function

@S11
I think that you have perhaps missed the last versions of the script. These are the icons with which it is bundled:
cEFuC0Jt.jpg
If you live in the northern hemisphere, the script grabs the first set of images, if you live in the southern one, the script shows the second set.

Which images should I grab?

Last edited by TeoBigusGeekus (2015-05-22 19:12:52)


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

#1831 2015-05-22 19:14:29

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Very good conkyrcs from both of you by the way...


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

#1832 2015-05-22 21:18:26

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

TeoBigusGeekus wrote:

Actually, line 44 is the today's phase image and it is needed for the moon_phase function

@S11
I think that you have perhaps missed the last versions of the script. These are the icons with which it is bundled:
http://i.imgur.com/cEFuC0Jt.jpg
If you live in the northern hemisphere, the script grabs the first set of images, if you live in the southern one, the script shows the second set.

Ummmmmmmmmmmm Yup, missed it ... I'm working with the first one you put out.  DUH!!!   lol  lol  lol
Colour me slow.  smile
But I figured it out and made my own.

Which images should I grab?

These ones: http://www.moongiant.com/images/rise/  so people can recreate the approx Rise Set times as seen on the site like I did above.

- AND I have an idea for that too.

Can you link the images to the "9AM/9PM" idea from the script?  Just curious, and ${if_match} in conky will do it.

Last edited by Sector11 (2015-05-22 21:21:22)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1833 2015-05-22 21:24:19

fvirgola80
Member
From: Rome
Registered: 2015-05-20
Posts: 22

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

Schermata_del_2015_05_22_23_21_57.jpg
shot_2015_05_22_23_44_59.jpg
Conky --> a draft along the lines of the previous one , it would be nice to integrate other images of the moon in the days before and after , missing the zodiac sign wink cool

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048
alignment top_middle
gap_x 10
gap_y 50
minimum_size 350 400
maximum_width 350
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 0
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0


draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_shade_color 112422

override_utf8_locale yes
use_xft yes
xftfont Feena Casual:size=7
xftalpha 1
#uppercase yes

default_color FFFFFF
#default_color FFFFFF
#E87E3C
own_window_colour 000000
TEXT

${voffset 0}${color ffe595}${font Arial:size=8}MOON PHASES ${hr 2}${color}
${execi 500 bash $HOME/4_Moon/moon}${font}
${image $HOME/4_Moon/today.png -p 40,40 -s 90x90}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '9p' $HOME/4_Moon/raw}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '1p' $HOME/4_Moon/raw}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/4_Moon/raw}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '3p' $HOME/4_Moon/raw}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '4p' $HOME/4_Moon/raw}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '5p' $HOME/4_Moon/raw}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '6p' $HOME/4_Moon/raw}
${voffset 0}${goto 190}${font Arial:size=8}${execpi 600 sed -n '7p' $HOME/4_Moon/raw}
########last two days#########
${voffset 0}${color ffe595}${font Arial:size=8}LAST TWO DAYS : ${hr 2}${color}
${voffset 5}${goto 5}${font Arial:size=8}${execpi 600 sed -n '12p' $HOME/4_Moon/raw}
${voffset 2}${goto 5}${font Arial:size=8}${execpi 600 sed -n '13p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '14p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '15p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '16p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '17p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '18p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '19p' $HOME/4_Moon/raw}
########next two days#########
${voffset 0}${color ffe595}${font Arial:size=8}NEXT TWO DAYS : ${hr 2}${color}
${voffset -120}${goto 200}${font Arial:size=8}${execpi 600 sed -n '20p' $HOME/4_Moon/raw}
${voffset 2}${goto 200}${font Arial:size=8}${execpi 600 sed -n '21p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '22p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '23p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '24p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '25p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '26p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '27p' $HOME/4_Moon/raw}

${voffset 5}${goto 5}${font Arial:size=8}${execpi 600 sed -n '28p' $HOME/4_Moon/raw}
${voffset 2}${goto 5}${font Arial:size=8}${execpi 600 sed -n '29p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '30p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '31p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '32p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '33p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '34p' $HOME/4_Moon/raw}
${voffset 0}${goto 5}${font Arial:size=8}${execpi 600 sed -n '35p' $HOME/4_Moon/raw}

${voffset -120}${goto 200}${font Arial:size=8}${execpi 600 sed -n '36p' $HOME/4_Moon/raw}
${voffset 2}${goto 200}${font Arial:size=8}${execpi 600 sed -n '37p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '38p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '39p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '40p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '41p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '42p' $HOME/4_Moon/raw}
${voffset 0}${goto 200}${font Arial:size=8}${execpi 600 sed -n '43p' $HOME/4_Moon/raw}

Last edited by fvirgola80 (2015-05-22 21:48:35)

Offline

#1834 2015-05-22 23:52:41

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

On second thought if you haven't grabbed them - don't bother (on my account)  New look didn't work so well  roll

My net connect died last night I couldn't get it up to show you:
2015_05_22_20_41_42_646x739_Sector11.jpg

Last edited by Sector11 (2015-05-23 13:30:44)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1835 2015-05-23 05:57:52

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

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

Just for info.
I use a calendar with moon-phase, and I use http://www.die.net/moon/ for the image of current moon-phase.
The advantage is that image is uploaded every hour.
I use a script lua to transform this image (script by Wlourf )

The conky-moon :

# -- Conky settings -- #
background no
total_run_times 0
update_interval 3600

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

# -- Window specifications -- #

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,skip_taskbar,skip_pager,below
own_window_argb_visual yes
own_window_title square to round

border_inner_margin 0
border_outer_margin 0

minimum_size 300 200

alignment tr
gap_y 10
gap_x 50

# -- Text settings -- #
use_xft yes
xftfont DejaVuSansMono:size=8
xftalpha 0.5

uppercase no

default_color FFFFFF
text_buffer_size 2048 
imlib_cache_size 0 
#--- LUA ---
lua_load ~/.conkyrc/conky-moon/square_to_round.lua
lua_draw_hook_post main /home/dominique/.conkyrc/conky-moon/moon-phase/moon.jpg

TEXT
${exec ~/.conkyrc/conky-moon/get_image.sh}

Script get_image.sh:

#!/bin/sh
dir=~/.conkyrc/conky-moon/moon-phase
mkdir -p $dir
cd $dir
wget --user-agent="Mozilla" http://static.die.net/moon/576.jpg -O "$dir/moon.jpg"

script square_to_round.lua:

--[[ SQUARE_TO_ROUND WIDGET by Wlourf (07 April 2010, version 1.0.1)
http://u-scripts.blogspot.com/

This widget display a rounded image on your conky from a square image only.

Parameters are
filename        --nom de l'image carrée en entrée
xc,yc           --coordonnées du centre de l'image ronde par rapport au coin en haut à gauche de la fenêtre conky
radius           --rayon du cercle final
angle           --angle de rotation de l'image
radius_crop       --dans l'image carrée, pourcentage du cercle à extraire par rapport au côté du carré(1-100)
period       --converti l'image de carré à rond toutes les  'period' secondes

]]

require 'cairo'
require 'imlib2'

function convert_square(fileIn,fileOut,radius,angle,radius_crop)
    --convert Input file from jpg to png, scale it and rotate it
    local imageInput = imlib_load_image(fileIn)
    local out_size = radius*2/(radius_crop/100)
    imlib_context_set_image(imageInput)
    w = imlib_image_get_width();
    h = imlib_image_get_height();
    imlib_image_set_format("png")
    buffer = imlib_create_image(out_size,out_size);
    imlib_context_set_image(buffer);

    imlib_blend_image_onto_image(imageInput, 0, 
                                               0, 0, w, h, 
                                               0,0, out_size,out_size)
    rot_img=imlib_create_rotated_image(angle*math.pi/180)
    imlib_context_set_image(rot_img)  
    imlib_save_image(fileOut)
    imlib_free_image()
    
    imlib_context_set_image(buffer)
    imlib_free_image()
    imlib_context_set_image(imageInput)
    imlib_free_image()
end

function crop_square_to_round(filename,xc,yc,radius)
    local surface = cairo_image_surface_create_from_png(filename)
    local img_w = cairo_image_surface_get_width (surface);
    
    local cw,ch = conky_window.width, conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, cw,ch)
    local cr=cairo_create(cs)
    cairo_translate(cr,xc-img_w/2,yc-img_w/2)
    cairo_arc (cr, img_w/2,img_w/2, radius, 0, 2*math.pi)
    cairo_clip (cr)
    cairo_new_path (cr)    
    cairo_set_source_surface (cr, surface, 0, 0)

    cairo_paint (cr)
    cairo_destroy(cr)
    cairo_surface_destroy (cs)
    cairo_surface_destroy (surface)
    
end

function display_round(filename,xc,yc,radius,angle,radius_crop,period)
    if conky_window == nil then return end

    --if tonumber(conky_parse('${updates}')) <2  then return end
    local filepng = filename .. ".png"
    local actual_time  = os.time()
    
    if last_time == nil then last_time=0 end
    local actual_img = io.open(filepng,"r")    
    if  last_time+period < actual_time or last_time == 0 or actual_img == nil then
        print ('convert image ' .. filename)
        convert_square(filename,filepng,radius,angle,radius_crop)
        last_time=actual_time
    end
    crop_square_to_round(filepng,xc,yc,radius)
    io.close()
end


--[[END OF SQUARE TO ROUND WIDGET]]

function conky_main(filename)
    if conky_window == nil then return end
    display_round(filename,
                150,100,64,  --xc,yc,radius
                0,            --angle
                98,           --radius_crop (1-100)
                3600        --period
    )
end

170614capturedcran22.jpg

Last edited by chepioq (2015-05-23 06:43:04)

Offline

#1836 2015-05-23 14:22:25

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

chepioq wrote:

Just for info.
I use a calendar with moon-phase, and I use http://www.die.net/moon/ for the image of current moon-phase.

I remember you showing that to me once before.  I have problems connecting to die.net for some reason so never pursued it.  I get 1/2 an image.  sad  Looks good for people that live in the northern hemisphere though.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1837 2015-05-23 14:41:55

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

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

What command do you use for download the moon image ?

Offline

#1838 2015-05-23 15:19:05

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

Sorry for the thread hijacking Teo!

chepioq wrote:

What command do you use for download the moon image ?

get_image.sh

#!/bin/sh
dir=/media/5/Conky/images/get_image_moon
mkdir -p $dir
cd $dir
wget --user-agent="Mozilla" http://static.die.net/moon/576.jpg -O "$dir/moon.jpg"

I can't even put http://static.die.net/ in my browser:
2015_05_23_12_08_46_1546x294_Sector11.jpg
/media/5/Conky/images/get_image_moon - exists.

 23 May 15 | 12:12:32 ~
    $ wget --user-agent="Mozilla" http://static.die.net/moon/576.jpg -O "/media/5/Conky/images/get_image_moon/moon.jpg"
--2015-05-23 12:12:35--  http://static.die.net/moon/576.jpg
Resolving static.die.net (static.die.net)... 209.151.236.22, 2607:f820:42::16
Connecting to static.die.net (static.die.net)|209.151.236.22|:80... failed: Connection timed out.
Connecting to static.die.net (static.die.net)|2607:f820:42::16|:80... failed: Network is unreachable.
 
 23 May 15 | 12:13:38 ~
    $ 

Last edited by Sector11 (2015-05-23 15:21:50)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1839 2015-05-23 19:47:54

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

New version of the script.
You'll need the images in this page (except from the rise_arrow_up.jpg).
Put them inside a folder called riseicons in your 4_Moon folder:
fW9lPUHt.jpg

#!/bin/bash

#function: moon_phase 
moon_phase () {
    case $1 in
         first_quarter)
			echo 07
         ;;
         full)
			echo 13
         ;;
         full_small)
			echo 13
         ;;
         moon_day_WanC_0)
			echo 23
         ;;
         moon_day_WanC_5)
			echo 23
         ;;
         moon_day_WanC_10)
			echo 22
         ;;
         moon_day_WanC_15)
			echo 22
         ;;
         moon_day_WanC_20)
			echo 21
         ;;
         moon_day_WanC_25)
			echo 21
         ;;
         moon_day_WanC_30)
			echo 20
         ;;
         moon_day_WanC_35)
			echo 20
         ;;
         moon_day_WanC_40)
			echo 19
         ;;
         moon_day_WanC_45)
			echo 19
         ;;
         moon_day_WanG_50)
			echo 18
         ;;
         moon_day_WanG_55)
			echo 18
         ;;
         moon_day_WanG_60)
			echo 17
         ;;
         moon_day_WanG_65)
			echo 17
         ;;
         moon_day_WanG_70)
			echo 16
         ;;
         moon_day_WanG_75)
			echo 16
         ;;
         moon_day_WanG_80)
			echo 15
         ;;
         moon_day_WanG_85)
			echo 15
         ;;
         moon_day_WanG_90)
			echo 14
         ;;
         moon_day_WanG_95)
			echo 14
         ;;
         moon_day_WaxC_0)
			echo 01
         ;;
         moon_day_WaxC_5)
			echo 02
         ;;
         moon_day_WaxC_10)
			echo 02
         ;;
         moon_day_WaxC_15)
			echo 03
         ;;
         moon_day_WaxC_20)
			echo 03
         ;;
         moon_day_WaxC_25)
			echo 04
         ;;
         moon_day_WaxC_30)
			echo 04
         ;;
         moon_day_WaxC_35)
			echo 05
         ;;
         moon_day_WaxC_40)
			echo 05
         ;;
         moon_day_WaxC_45)
			echo 06
         ;;
         moon_day_WaxG_25)
			echo 11
         ;;
         moon_day_WaxG_30)
			echo 10
         ;;
         moon_day_WaxG_35)
			echo 10
         ;;
         moon_day_WaxG_40)
			echo 09
         ;;
         moon_day_WaxG_45)
			echo 09
         ;;
         moon_day_WaxG_50)
			echo 08
         ;;
         moon_day_WaxG_55)
			echo 08
         ;;
         moon_day_WaxG_60)
			echo 09
         ;;
         moon_day_WaxG_65)
			echo 09
         ;;
         moon_day_WaxG_70)
			echo 10
         ;;
         moon_day_WaxG_75)
			echo 10
         ;;
         moon_day_WaxG_80)
			echo 11
         ;;
         moon_day_WaxG_85)
			echo 11
         ;;
         moon_day_WaxG_90)
			echo 12
         ;;
         moon_day_WaxG_95)
			echo 12
         ;;
         moon_day_first)
			echo 07
         ;;
         moon_day_full)
			echo 13
         ;;
         moon_day_last)
			echo 19
         ;;
         moon_day_new)
			echo 24
		 esac
} 

#function: moonrise_set
moonrise_set () {
    case "$1" in
         "FirstQuarter")
			echo "Noon/Midnight"
			cp $HOME/4_Moon/riseicons/rise_FirstQuarter.jpg $HOME/4_Moon/rise.jpg
         ;;
         "FullMoon")
			echo "6PM/6AM"
			cp $HOME/4_Moon/riseicons/rise_FullMoon.jpg $HOME/4_Moon/rise.jpg
		 ;;	
		 "LastQuarter")
			echo "Midnight/Noon"
			p $HOME/4_Moon/riseicons/rise_LastQuarter.jpg $HOME/4_Moon/rise.jpg
		 ;;	
		 "NewMoon")
			echo "6AM/6PM"
			cp $HOME/4_Moon/riseicons/rise_NewMoon.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaningCrescent")
			echo "3AM/3PM"
			cp $HOME/4_Moon/riseicons/rise_WaningCrescent.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaningGibbous")
			echo "9PM/9AM"
			cp $HOME/4_Moon/riseicons/rise_WaningGibbous.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaxingCrescent")
			echo "9AM/9PM"
			cp $HOME/4_Moon/riseicons/rise_WaxingCrescent.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaxingGibbous")
			echo "3PM/3AM"
			cp $HOME/4_Moon/riseicons/rise_WaxingGibbous.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 *)
			echo "Unavailable"
		 esac
} 

#kill -STOP $(pidof conky)
#killall wget

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

wget -O $HOME/4_Moon/raw "http://www.moongiant.com/phase/today"
rm $HOME/4_Moon/*.png $HOME/4_Moon/*.jpg

sed -i -e '/^ *$/d' -e 's/^ *//g' $HOME/4_Moon/raw
sed -i '/var jArray=\|"todayMoonContainer"\|"moonNotToday"/!d' $HOME/4_Moon/raw
sed -i -e '/var jArray/s/","/\n/g' -e 's/<span>\|<b>\|<\\\/span>\|<\\\/b>\|\\n//g' /$HOME/4_Moon/raw
sed -i 's/"\].*\[\"/\n/g' /$HOME/4_Moon/raw
sed -i '/var jArray/d' /$HOME/4_Moon/raw
sed -i -e 's/"\]};//g' -e 's/^.*today_phase\///g' -e 's/\.jpg.*$//g' /$HOME/4_Moon/raw
sed -i -e 's/^small\///g' -e 's/\.png.*$//g' /$HOME/4_Moon/raw
sed -i 's/Illumination: \|Sun Angle: \|Sun Distance: \|Moon Distance: \|Moon Age: \|Moon Angle: //g' /$HOME/4_Moon/raw
phase=$(sed -n 7p $HOME/4_Moon/raw|sed 's/ //')
mrise_mset=$(moonrise_set $phase)
sed -i 7a$(moonrise_set $phase) /$HOME/4_Moon/raw

#Day before Yesterday
img_in=$(sed -n 44p $HOME/4_Moon/raw)
img_out=$hemisphere$(moon_phase $img_in)
cp $HOME/4_Moon/moonicons/$img_out.png $HOME/4_Moon/-2.png

#Yesterday
img_in=$(sed -n 45p $HOME/4_Moon/raw)
img_out=$hemisphere$(moon_phase $img_in)
cp $HOME/4_Moon/moonicons/$img_out.png $HOME/4_Moon/-1.png

#Today
img_in=$(sed -n 46p $HOME/4_Moon/raw)
img_out=$hemisphere$(moon_phase $img_in)
cp $HOME/4_Moon/moonicons/$img_out.png $HOME/4_Moon/0.png

#Tomorrow
img_in=$(sed -n 47p $HOME/4_Moon/raw)
img_out=$hemisphere$(moon_phase $img_in)
cp $HOME/4_Moon/moonicons/$img_out.png $HOME/4_Moon/1.png

#Day after Tomorrow
img_in=$(sed -n 48p $HOME/4_Moon/raw)
img_out=$hemisphere$(moon_phase $img_in)
cp $HOME/4_Moon/moonicons/$img_out.png $HOME/4_Moon/2.png

This new version produces moon phases' images for 5 days: Day before yesterday (-2), Yesterday (-1), Today (0), Tomorrow (1), Day after Tomorrow (2).
It also produces an image called rise.jpg with the average moonrise and moonset times.

EDIT: Oh yeah, I've also deleted all the leading stuff from the raw file (Illumination:, Moon Angle:, etc.). You can add them manually with conky if you like, but at least you have a choice now.

Last edited by TeoBigusGeekus (2015-05-24 05:22:24)


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

#1840 2015-05-23 22:31:55

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

Just in case I have never said it:  You're awesome ... din-din and try after food!  smile

EDIT:

My raw_example.txt cheat sheet

29%                     Today's Illumunation
0.53                    Today's Sun Angle °
151,480,960.69          Today's Sun Distance in km
399,349.51              Today's Moon Distance in km
5.36                    Today's Moon Age in Days
0.50                    Today's Moon Angle °
Waxing Crescent         Today's Moon Phase
9AM/9PM                 Today's Approx Moonrise/Set
Saturday, May 23, 2015  Today
May ---------------------- NOT USED ------------------
Phase: Waxing Crescent --- NOT USED ------------------
May 21                  -2 days ----------------------
13%                     Illumunation
0.5267011049881         Sun Angle °
151423925.92816         Sun Distance
391322.22726831         Moon Distance
3.4534698070459         Moon Age in Days
0.50893648308776        Moon Angle °
Waxing Crescent         Moon Phase
May 22                  -1 day ----------------------
21%                     Illumunation
0.52660099097929        Sun Angle °
151452713.67546         Sun Distance
395646.12561107         Moon Distance
4.4202147764285         Moon Age in Days
0.50337446826354        Moon Angle °
Waxing Crescent         Moon Phase
May 24                  +1 day ----------------------
38%                     Illumunation
0.52640654016515        Sun Angle °
151508659.22558         Sun Distance
402270.39650192         Moon Distance
6.2758626663306         Moon Age in Days
0.49508529544268        Moon Angle °
Waxing Crescent         Moon Phase
May 25                  +2 days ----------------------
48%                     Illumunation
0.52631225241024        Sun Angle °
151535801.68951         Sun Distance
404294.06316362         Moon Distance
7.176915014653          Moon Age in Days
0.49260717939209        Moon Angle °
First Quarter           Moon Phase
moon_day_WaxC_10        --- IMAGE COLLECTING INFO ---
moon_day_WaxC_20        --- IMAGE COLLECTING INFO ---
moon_day_WaxC_25        --- IMAGE COLLECTING INFO ---
moon_day_WaxC_35        --- IMAGE COLLECTING INFO ---
moon_day_first          --- IMAGE COLLECTING INFO ---

Last edited by Sector11 (2015-05-23 23:43:04)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1841 2015-05-24 01:39:03

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

OK, here's Teo's latest 4_moon script in action:
2015_05_23_21_42_37_1920x1080_Sector11.jpg
And then I realized it was for the northern hemisphere.
Here's what it looks like here in the south: 2015_05_23_22_31_36_384x672_Sector11.jpg

The conky:

# pkill -xf "conky -c /home/sector11/4_Moon/conkyrc_4_Moon_test" &
# works perfect - Sat 23 May 2015 21:45:27

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title 4_Moon

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 150

minimum_size 370 00  # w|h
maximum_width 370

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=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #DarkSeaGreen
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
#####################################################  End Color Settings  ###
###  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  ###
###  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 6144

# Subtract (file slystem) 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

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

# 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
##############################################  End Miscellaneous Section  ###
update_interval 1

#${execi 500 $HOME/4_Moon/moon}
TEXT
The Moon ${membar 0}${execi 500 $HOME/4_Moon/moon}\
${image $HOME/4_Moon/-2.png -p 0,32 -s 90x90}
${goto 100}Two Days Back${goto 220}${execpi 600 sed -n '12p' $HOME/4_Moon/raw}
${goto 100}Illumunation${goto 220}${execpi 600 sed -n '13p' $HOME/4_Moon/raw}
${goto 100}Sun Angle${goto 220}${execpi 600 sed -n '14p' $HOME/4_Moon/raw}°
${goto 100}Sun Distance${goto 220}${execpi 600 sed -n '15p' $HOME/4_Moon/raw} km
${goto 100}Moon Distance${goto 220}${execpi 600 sed -n '16p' $HOME/4_Moon/raw} km
${goto 100}Moon Age${goto 220}${execpi 600 sed -n '17p' $HOME/4_Moon/raw} days
${goto 100}Moon Angle${goto 220}${execpi 600 sed -n '18p' $HOME/4_Moon/raw}°
${goto 100}Phase${goto 220}${execpi 600 sed -n '19p' $HOME/4_Moon/raw}
${image $HOME/4_Moon/-1.png -p 0,160 -s 90x90}
${goto 100}Yesterday${goto 220}${execpi 600 sed -n '20p' $HOME/4_Moon/raw}
${goto 100}Illumunation${goto 220}${execpi 600 sed -n '21p' $HOME/4_Moon/raw}
${goto 100}Sun Angle${goto 220}${execpi 600 sed -n '22p' $HOME/4_Moon/raw}°
${goto 100}Sun Distance${goto 220}${execpi 600 sed -n '23p' $HOME/4_Moon/raw} km
${goto 100}Moon Distance${goto 220}${execpi 600 sed -n '24p' $HOME/4_Moon/raw} km
${goto 100}Moon Age${goto 220}${execpi 600 sed -n '25p' $HOME/4_Moon/raw} days
${goto 100}Moon Angle${goto 220}${execpi 600 sed -n '26p' $HOME/4_Moon/raw}°
${goto 100}Phase${goto 220}${execpi 600 sed -n '27p' $HOME/4_Moon/raw}
${membar 0}\
${image $HOME/4_Moon/0.png -p 260,290 -s 90x90}
Today${goto 120}${execpi 600 sed -n '9p' $HOME/4_Moon/raw}
Illumunation${goto 120}${execpi 600 sed -n '1p' $HOME/4_Moon/raw}
Sun Angle${goto 120}${execpi 600 sed -n '2p' $HOME/4_Moon/raw}°
Sun Distance${goto 120}${execpi 600 sed -n '3p' $HOME/4_Moon/raw} km
Moon Distance${goto 120}${execpi 600 sed -n '4p' $HOME/4_Moon/raw} km
Moon Age${goto 120}${execpi 600 sed -n '5p' $HOME/4_Moon/raw} days
Moon Angle${goto 120}${execpi 600 sed -n '6p' $HOME/4_Moon/raw}°
Phase${goto 120}${execpi 600 sed -n '7p' $HOME/4_Moon/raw}
Moonrise/Set${goto 120}Approx ${execpi 600 sed -n '8p' $HOME/4_Moon/raw}
${membar 0}\
${image $HOME/4_Moon/1.png -p 0,424 -s 90x90}
${goto 100}Tomorrow${goto 220}${execpi 600 sed -n '28p' $HOME/4_Moon/raw}
${goto 100}Illumunation${goto 220}${execpi 600 sed -n '29p' $HOME/4_Moon/raw}
${goto 100}Sun Angle${goto 220}${execpi 600 sed -n '30p' $HOME/4_Moon/raw}°
${goto 100}Sun Distance${goto 220}${execpi 600 sed -n '31p' $HOME/4_Moon/raw} km
${goto 100}Moon Distance${goto 220}${execpi 600 sed -n '32p' $HOME/4_Moon/raw} km
${goto 100}Moon Age${goto 220}${execpi 600 sed -n '33p' $HOME/4_Moon/raw} days
${goto 100}Moon Angle${goto 220}${execpi 600 sed -n '34p' $HOME/4_Moon/raw}°
${goto 100}Phase${goto 220}${execpi 600 sed -n '35p' $HOME/4_Moon/raw}
${image $HOME/4_Moon/2.png -p 0,550 -s 90x90}
${goto 100}In Two Days${goto 220}${execpi 600 sed -n '36p' $HOME/4_Moon/raw}
${goto 100}Illumunation${goto 220}${execpi 600 sed -n '37p' $HOME/4_Moon/raw}
${goto 100}Sun Angle${goto 220}${execpi 600 sed -n '38p' $HOME/4_Moon/raw}°
${goto 100}Sun Distance${goto 220}${execpi 600 sed -n '39p' $HOME/4_Moon/raw} km
${goto 100}Moon Distance${goto 220}${execpi 600 sed -n '40p' $HOME/4_Moon/raw} km
${goto 100}Moon Age${goto 220}${execpi 600 sed -n '41p' $HOME/4_Moon/raw} days
${goto 100}Moon Angle${goto 220}${execpi 600 sed -n '42p' $HOME/4_Moon/raw}°
${goto 100}Phase${goto 220}${execpi 600 sed -n '43p' $HOME/4_Moon/raw}
${membar 0}

Of course there are more coming tomorrow - c/w the rise image.  Thank you Teo.

Last edited by Sector11 (2015-05-24 02:00:44)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1842 2015-05-24 05:20:38

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Anytime S11.


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

#1843 2015-05-24 13:48:35

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

still a work in progress as I think "September 30" might not fit in there and I need to add the 4 extra moons to days past and days future but wanted to show the fact that it uses soooooooooooooooooooo much CPU resources - NOT
Only thing running last night, other than tint2  - and this AM with 9 other conkys and medit open:
2015_05_24_00_03_55_1920x1080_Sector11.jpg 2015_05_24_09_38_03_1920x1080_Sector11.jpg
Yea, look at that CPU usage ... light as a feather!

Last edited by Sector11 (2015-05-24 13:49:12)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#1844 2015-05-24 19:12:44

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

KqFXXnpt.jpg

I tried to recreate moongiant.com's layout.

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 400 500
maximum_width 500

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=10
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen       

TEXT
${color ffe595}${font Arial:size=12}Past, current and future moon phases ${hr 2}${color}${font}${texeci 500 bash $HOME/4_Moon/moon_MoonGiant}
${image $HOME/4_Moon/-2.png -p 0,110 -s 30x30}${image $HOME/4_Moon/-1.png -p 70,60 -s 60x60}${image $HOME/4_Moon/0.png -p 155,20 -s 90x90}${image $HOME/4_Moon/1.png -p 270,60 -s 60x60}${image $HOME/4_Moon/1.png -p 370,110 -s 30x30}









${font Arial:size=7}${execpi 600 sed -n '12p' $HOME/4_Moon/raw}${alignr}${execpi 600 sed -n '36p' $HOME/4_Moon/raw}
${execpi 600 sed -n '19p' $HOME/4_Moon/raw|awk '{print $1}'}${alignr}${execpi 600 sed -n '43p' $HOME/4_Moon/raw|awk '{print $1}'}
${execpi 600 sed -n '19p' $HOME/4_Moon/raw|awk '{print $2}'}${alignr}${execpi 600 sed -n '43p' $HOME/4_Moon/raw|awk '{print $2}'}${font}
${font Arial:size=8.5}${voffset -65}${goto 80}${execpi 600 sed -n '20p' $HOME/4_Moon/raw}${alignr 65}${execpi 600 sed -n '28p' $HOME/4_Moon/raw}
${goto 85}${execpi 600 sed -n '27p' $HOME/4_Moon/raw|awk '{print $1}'}${alignr 80}${execpi 600 sed -n '35p' $HOME/4_Moon/raw|awk '{print $1}'}
${goto 85}${execpi 600 sed -n '27p' $HOME/4_Moon/raw|awk '{print $2}'}${alignr 80}${execpi 600 sed -n '35p' $HOME/4_Moon/raw|awk '{print $2}'}${font}
${voffset -65}${font Arial:size=10}${alignc}${execpi 600 sed -n '9p' $HOME/4_Moon/raw|awk '{print $1}'}
${alignc}${execpi 600 sed -n '9p' $HOME/4_Moon/raw|awk '{print $2, $3}'}
${alignc}${execpi 600 sed -n '9p' $HOME/4_Moon/raw|awk '{print $4}'}${font}
${font Arial:size=12}${alignc}${execpi 600 sed -n '7p' $HOME/4_Moon/raw|awk '{print $1}'}
${alignc}${execpi 600 sed -n '7p' $HOME/4_Moon/raw|awk '{print $2}'}${font}


${color ffe595}${font Arial:size=12}Phase details for ${execpi 600 sed -n '9p' $HOME/4_Moon/raw} ${hr 2}${color}${font}
Illumination: ${execpi 600 sed -n '1p' $HOME/4_Moon/raw}${goto 250}Moon Age: ${execpi 600 sed -n '5p' $HOME/4_Moon/raw}
Sun Angle: ${execpi 600 sed -n '2p' $HOME/4_Moon/raw}${goto 250}Moon Angle: ${execpi 600 sed -n '6p' $HOME/4_Moon/raw}
Sun Distance: ${execpi 600 sed -n '3p' $HOME/4_Moon/raw}${goto 250}Moon Distance: ${execpi 600 sed -n '4p' $HOME/4_Moon/raw}


${color ffe595}${font Arial:size=12}Average moonrise and moonset times ${hr 2}${color}${font}${image $HOME/4_Moon/rise.jpg -p 0,340 -s 400x99}${image $HOME/4_Moon/0.png -p 45,390 -s 30x30}${image $HOME/4_Moon/0.png -p 325,390 -s 30x30}${image $HOME/4_Moon/0.png -p 185,340 -s 30x30}

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

#1845 2015-05-24 19:35:44

fvirgola80
Member
From: Rome
Registered: 2015-05-20
Posts: 22

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

Hello guys , first of all great job to TEO and SECTOR11 , will illustrate my take from SECTOR11 . TEO your conky is fine, but if we make a transparent background for the iimagine background ?
shot_2015_05_24_21_24_45.jpg

# pkill -xf "conky -c /home/sector11/4_Moon/conkyrc_4_Moon_test" &
# works perfect - Sat 23 May 2015 21:45:27

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title 4_Moon

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes # Options: yes or no

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 150

minimum_size 350 400
maximum_width 350

gap_x 330
gap_y 10

alignment top_right
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Arial:size=7

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #220 220 220	Gainsboro
color0 8FBC8F #DarkSeaGreen
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
#####################################################  End Color Settings  ###
###  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  ###
###  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 6144

# Subtract (file slystem) 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

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable th0e image cache.
imlib_cache_size 0

# 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
##############################################  End Miscellaneous Section  ###
update_interval 1

#${execi 500 $HOME/4_Moon/moon}
own_window_argb_value 0
own_window_argb_visual yes
TEXT
${color ffe595}MOON PHASES TODAY ${membar 0}${color}${execi 500 $HOME/4_Moon/moon}\
${image $HOME/4_Moon/0.png -p 0,20 -s 90x90}
${goto 120}Today ${execpi 600 sed -n '9p' $HOME/4_Moon/raw}
${goto 120}Illumunation ${execpi 600 sed -n '1p' $HOME/4_Moon/raw}
${goto 120}Moon Distance ${execpi 600 sed -n '4p' $HOME/4_Moon/raw} km
${goto 120}Moon Age ${execpi 600 sed -n '5p' $HOME/4_Moon/raw} days
${goto 120}Moon Angle ${execpi 600 sed -n '6p' $HOME/4_Moon/raw}°
${goto 120}Phase ${execpi 600 sed -n '7p' $HOME/4_Moon/raw}
${goto 120}Moonrise/Set Approx ${execpi 600 sed -n '8p' $HOME/4_Moon/raw}
${goto 120}Sun Angle ${execpi 600 sed -n '2p' $HOME/4_Moon/raw}°
${goto 120}Sun Distance ${execpi 600 sed -n '3p' $HOME/4_Moon/raw} km

${color ffe595}PAST MOON CYCLE: MOON PHASES${membar 0}${color}\

${image $HOME/4_Moon/-1.png -p 0,150 -s 70x70}
${goto 100}Yesterday${goto 220}${execpi 600 sed -n '20p' $HOME/4_Moon/raw}
${goto 100}Illumunation${goto 220}${execpi 600 sed -n '21p' $HOME/4_Moon/raw}
${goto 100}Sun Angle${goto 220}${execpi 600 sed -n '22p' $HOME/4_Moon/raw}°
${goto 100}Sun Distance${goto 220}${execpi 600 sed -n '23p' $HOME/4_Moon/raw} km
${goto 100}Moon Distance${goto 220}${execpi 600 sed -n '24p' $HOME/4_Moon/raw} km
${goto 100}Moon Age${goto 220}${execpi 600 sed -n '25p' $HOME/4_Moon/raw} days
${goto 100}Moon Angle${goto 220}${execpi 600 sed -n '26p' $HOME/4_Moon/raw}°
${goto 100}Phase${goto 220}${execpi 600 sed -n '27p' $HOME/4_Moon/raw}
${image $HOME/4_Moon/-2.png -p 0,250 -s 70x70}
${goto 100}Two Days Back${goto 220}${execpi 600 sed -n '12p' $HOME/4_Moon/raw}
${goto 100}Illumunation${goto 220}${execpi 600 sed -n '13p' $HOME/4_Moon/raw}
${goto 100}Sun Angle${goto 220}${execpi 600 sed -n '14p' $HOME/4_Moon/raw}°
${goto 100}Sun Distance${goto 220}${execpi 600 sed -n '15p' $HOME/4_Moon/raw} km
${goto 100}Moon Distance${goto 220}${execpi 600 sed -n '16p' $HOME/4_Moon/raw} km
${goto 100}Moon Age${goto 220}${execpi 600 sed -n '17p' $HOME/4_Moon/raw} days
${goto 100}Moon Angle${goto 220}${execpi 600 sed -n '18p' $HOME/4_Moon/raw}°
${goto 100}Phase${goto 220}${execpi 600 sed -n '19p' $HOME/4_Moon/raw}

${color ffe595}${font Arial:size=7}MOON PHASES: NEXT TWO DAYS ${hr 2}${color}${font}
${image $HOME/4_Moon/1.png -p 0,360 -s 45x45} 
${image $HOME/4_Moon/2.png -p 175,360 -s 45x45}
${goto 60}Tomorrow ${execpi 600 sed -n '28p' $HOME/4_Moon/raw}${goto 235}In Two Days ${execpi 600 sed -n '36p' $HOME/4_Moon/raw}
${goto 60}Illumunation ${execpi 600 sed -n '29p' $HOME/4_Moon/raw}${goto 235}Illumunation ${execpi 600 sed -n '37p' $HOME/4_Moon/raw}
${goto 60}S.A. ${execpi 600 sed -n '30p' $HOME/4_Moon/raw}°${goto 235}S.A. ${execpi 600 sed -n '38p' $HOME/4_Moon/raw}°
${goto 60}S.D. ${execpi 600 sed -n '31p' $HOME/4_Moon/raw} km${goto 235}S.D. ${execpi 600 sed -n '39p' $HOME/4_Moon/raw} km
${goto 60}M.D. ${execpi 600 sed -n '32p' $HOME/4_Moon/raw} km${goto 235}M.D. ${execpi 600 sed -n '40p' $HOME/4_Moon/raw} km
${goto 60}M.A. ${execpi 600 sed -n '33p' $HOME/4_Moon/raw} days${goto 235}M.A. ${execpi 600 sed -n '41p' $HOME/4_Moon/raw} days
${goto 60}M.A. ${execpi 600 sed -n '34p' $HOME/4_Moon/raw}°${goto 235}M.A. ${execpi 600 sed -n '42p' $HOME/4_Moon/raw}°
${goto 60}P. ${execpi 600 sed -n '35p' $HOME/4_Moon/raw}${goto 235}P. ${execpi 600 sed -n '43p' $HOME/4_Moon/raw}

Offline

#1846 2015-05-24 19:43:20

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

fvirgola80 wrote:

but if we make a transparent background for the iimagine background ?

Could you please clarify my 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

#1847 2015-05-24 19:51:44

fvirgola80
Member
From: Rome
Registered: 2015-05-20
Posts: 22

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

I mean a blackish color , what do you say ? but in retrospect it's good what you say ?

Offline

#1848 2015-05-24 19:58:17

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Well, you can always change the icons if you like.
Now that I think of it, you can even make them more transparent with gimp, it's just a few clicks away.


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

#1849 2015-05-24 20:07:31

fvirgola80
Member
From: Rome
Registered: 2015-05-20
Posts: 22

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

I tried your conky but gives me an error ( $ 500 { texeci bash $ HOME / 4_Moon / moon_MoonGiant } ) what is it ? I must say that the desk is a nice effect :-)

Offline

Be excellent to each other!

#1850 2015-05-24 20:10:29

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

You should name the script moon_MoonGiant and put it in a folder in your home folder called 4_Moon.


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

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo