You are not logged in.

#801 2016-05-07 17:34:09

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

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

2016_05_07_12_22_19_Scrot11.jpg added colour+x.png's to aid with spacing . . .


2016_05_07_14_22_35_Scrot11.jpg started twealing and had to go out.
So it's a W.I.P. - Back later.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#802 2016-05-07 18:39:35

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Sector11 wrote:

http://s20.postimg.org/hydzxwl3d/2016_05_07_12_22_19_Scrot11.jpg added colour+x.png's to aid with spacing . . .


http://s20.postimg.org/dnzc2bg09/2016_05_07_14_22_35_Scrot11.jpg started twealing and had to go out.
So it's a W.I.P. - Back later.

8)


Nothing happens by chance

Offline

#803 2016-05-07 20:13:09

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

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

fvirgola80 wrote:

8)

Life, Liberty and the Pursuit of things my wife want done is taking it's toll.
Plus I'm slow and careful.

WIP:
Start here: 1 2016_05_07_15_45_52_Scrot11.jpg»» 2 2016_05_07_16_35_27_Scrot11.jpg»» 3 2016_05_07_17_05_46_Scrot11.jpg « I am here.

Coming to a thread near you soon!  wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#804 2016-05-07 20:29:44

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Sector11 wrote:
fvirgola80 wrote:

8)

Life, Liberty and the Pursuit of things my wife wants done is taking it's toll.
Plus I'm slow and careful.

WIP:
Start here: 1 http://s20.postimg.org/d3kazmmrt/2016_05_07_15_45_52_Scrot11.jpg»» 2 http://s20.postimg.org/vtcagdfih/2016_05_07_16_35_27_Scrot11.jpg»» 3 http://s20.postimg.org/orecu6bwp/2016_05_07_17_05_46_Scrot11.jpg « I am here.

Coming to a thread near you soon!  wink

cool


Nothing happens by chance

Offline

#805 2016-05-07 22:57:30

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

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

This is: The_Clock_2-fvirgola80.conky
2016_05_07_19_22_57_Scrot11.jpg there are a few things you need to know:

1. It runs 3 of Teo's scripts, 1b1_accuweather_images, 4_Moon and 1c_accuweather_images_hourly, you'll need to get them and configure each for your location.

2. I have commented out these lines:

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


#and at the end
#kill -CONT $(pidof conky)

in the bash scripts, 1b1_accuweather_images/1b1, 4_Moon/moon_MoonGiant and 1c_accuweather_images_hourly/1c otherwise the first script stops all conkys - so the second and third conkys can't get their info.

3. You will have to fix the paths to images and scripts  :)

4. get the monofur font or use another and 'adjust' the spacing.
- personally I'm going to redo it with another font I can see without a magnifying glass.  This is TOO small for me.

5 Change the 'Southern' on line 143 in the conky to 'Northern' if you are north of the equator (see the moon script)

The_Clock_2-fvirgola80.conky

# pkill -xf "conky -q -c /media/5/Conky/The_Clock_2-fvirgola80.conky" &
# edited and working Tue 06 May 2016 21:30:00
## ---------- Begin Window Settings

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,undecorated,below #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title The Clock 2
# ARGB can be used for real transparency
#  own_window_argb_visual yes ## Options: yes or no
# Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 70

minimum_size 210 720
maximum_width 210

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 monofur:bold:size=9
#xftfont Fantasque Sans Mono:bold:size=

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

## Force UTF8? requires XFT
override_utf8_locale yes

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

default_color f5fffa ## MintCream
color1 778899 ## LightSlateGray
color2 FFA07A ## LightSalmon
color3 87CEFA ## LightSkyBlue
color4 48D1CC ## MediumTurquoise
color5 FFDEAD ## NavajoWhite
color6 00BFFF ## DeepSkyBlue
color7 B0E0E6 ## PowderBlue
color8 FFD700 ## Gold
color9 CD5C5C ## IndianRed
## ---------- End Color Settings
## ---------- Begin Borders Section
## border margins
border_inner_margin 5
border_outer_margin 0
## default_graph_size 15 40
## ---------- End Borders Secton
## ---------- Begin Miscellaneous Section
## Boolean value, if true, Conky will be forked to background when started.
background no ## yes

## Adds spaces around certain objects to stop them from moving other things
## around, this only helps if you are using a mono font
## Options: right, left or none
use_spacer none

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

## Use the Xdbe extension? (eliminates flicker)
## It is highly reco${color}mmended to use own window with this one
## so double buffer won't be so big.
double_buffer yes

## ---------- End Miscellaneous Section
#---  LUA Settings
#-- CLOCK LUA
lua_load /media/5/Conky/LUA/12-24_DOTS_TC_2-f80.lua
lua_draw_hook_pre main
#---  End LUA Settings

update_interval 1

#${texeci 600 bash /media/5/Conky/1b1_accuweather_images/1b1}\
#${texeci 600 bash /media/5/Conky/4_Moon/moon_MoonGiant}\
#${texeci 600 bash /media/5/Conky/1c_accuweather_images_hourly/1c}\
TEXT
${texeci 600 bash /media/5/Conky/1b1_accuweather_images/1b1}\
${texeci 600 bash /media/5/Conky/4_Moon/moon_MoonGiant}\
${texeci 600 bash /media/5/Conky/1c_accuweather_images_hourly/1c}\
${image /media/5/Conky/images/bk_30.png -p -5,-5 -s 230x770}\
${image /media/5/Conky/images/24_ds.png -p 11,32}\
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 26,81 -s 170x102}\
${alignc}${time %a %d %b %Y}
${alignc}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}Good Afternoon${else}Good Evening${endif}${endif}
${font monofur:bold:size=11}${color8}±${execi 600 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
${alignr}${color}${execi 600 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${font}













${font monofur:bold:size=11}${color9}↑${execi 600 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${alignr}${color6}↓${execi 600 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}${font}
${color8}Sunrise ${execi 600 sed -n '39p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}\
${color7}${alignr}Sunset ${execi 90 sed -n '40p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}
${color8}TODAY${goto 130}${color7}TONIGHT${color}\
${image /media/5/Conky/1b1_accuweather_images/tod.png -p 40,255 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/ton.png -p 160,255 -s 50x30}
${execi 90 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 130}${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°
±${execi 90 sed -n '27p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 130}±${execi 90 sed -n '32p' /media/5/Conky/1b1_accuweather_images/first_days}°
CoP     ${execi 90 sed -n '28p' /media/5/Conky/1b1_accuweather_images/first_days}\
${goto 130}CoP    ${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/first_days}
${color5}» » Current Conditions ${membar 0}${color}
Pressure${goto 75}${execi 600 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 150}DP  ${execi 90 sed -n '35p' /media/5/Conky/1b1_accuweather_images/curr_cond}°
UVI ${execi 600 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond} /11\
${goto 75}Hum ${execi 600 sed -n '32p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 150}Vis ${execi 90 sed -n '37p' /media/5/Conky/1b1_accuweather_images/curr_cond}
Wnd ${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 75}@ ${execi 90 sed -n '38p' /media/5/Conky/1b1_accuweather_images/curr_cond}\
${goto 150}Cld ${execi 90 sed -n '36p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${color5}» » Southern Hemisphere Moon ${membar 0}${color}
${image /media/5/Conky/4_Moon/0.png -p 8,360 -s 50x50}\
${goto 60}Phase ${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}
${goto 60}Moon is ${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw} visible
${goto 60}Moon Age ${execpi 600 sed -n '5p' /media/5/Conky/4_Moon/raw} days
${goto 60}Moon Angle ${execpi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}°
${color8}Moonrise ${execi 90 sed -n '41p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}\
${alignr}${color7}Moonset ${execi 90 sed -n '42p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}
${color5}» » Nine Day Forecast ${membar 0}
${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 79}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 154}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}\
${image /media/5/Conky/1b1_accuweather_images/6.png -p 23,450 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/11.png -p 97,450 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/16.png -p 171,450 -s 50x30}
${color9}${execi 90 sed -n '8p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 79}${color9}${execi 90 sed -n '13p' /media/5/Conky/1b1_accuweather_images/first_days}°\
  ${goto 154}${execi 90 sed -n '18p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}
${color7}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 79}${color7}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}\
  ${goto 154}${color7}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}
${color5}
${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 79}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 154}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}\
${image /media/5/Conky/1b1_accuweather_images/21.png -p 23,505 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_2.png -p 97,505 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_7.png -p 171,505 -s 50x30}
${color9}${execi 90 sed -n '23p' /media/5/Conky/1b1_accuweather_images/first_days}°\
  ${goto 79}${color9}${execi 90 sed -n '4p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 154}${execi 90 sed -n '9p' /media/5/Conky/1b1_accuweather_images/last_days}°
${color7}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/first_days}°\
  ${goto 79}${execi 90 sed -n '5p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 154}${execi 90 sed -n '10p' /media/5/Conky/1b1_accuweather_images/last_days}°
${color5}
${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 79}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 154}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}\
${image /media/5/Conky/1b1_accuweather_images/last_12.png -p 23,554 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_17.png -p 97,554 -s 50x30}\
${image /media/5/Conky/1b1_accuweather_images/last_22.png -p 171,554 -s 50x30}
${color9}${execi 90 sed -n '14p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 79}${color9}${execi 90 sed -n '19p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 154}${color9}${execi 90 sed -n '24p' /media/5/Conky/1b1_accuweather_images/last_days}
${color7}${execi 90 sed -n '15p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 79}${execi 90 sed -n '20p' /media/5/Conky/1b1_accuweather_images/last_days}°\
  ${goto 154}${execi 90 sed -n '25p' /media/5/Conky/1b1_accuweather_images/last_days}°

${color5}» » Nine Hour Forecast ${membar 0}${color}\
${image /media/5/Conky/1c_accuweather_images_hourly/20.png -p 20,620 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/23.png -p 95,620 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/26.png -p 171,620 -s 50x30}
${execpi 600 sed -n '2p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}${execpi 600 sed -n '3p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}${execpi 600 sed -n '4p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${color9}${execpi 600 sed -n '52p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}${execpi 600 sed -n '53p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}${execpi 600 sed -n '54p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${color7}±${execpi 600 sed -n '61p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}±${execpi 600 sed -n '62p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}±${execpi 600 sed -n '63p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}${color}
${image /media/5/Conky/1c_accuweather_images_hourly/29.png -p 20,673 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/32.png -p 95,673 -s 50x30}\
${image /media/5/Conky/1c_accuweather_images_hourly/35.png -p 171,673 -s 50x30}
${execpi 600 sed -n '5p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}${execpi 600 sed -n '6p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}${execpi 600 sed -n '7p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${color9}${execpi 600 sed -n '55p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}${execpi 600 sed -n '56p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}${execpi 600 sed -n '57p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}
${color7}±${execpi 600 sed -n '64p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}±${execpi 600 sed -n '65p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}±${execpi 600 sed -n '66p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}${color}
${image /media/5/Conky//1c_accuweather_images_hourly/38.png -p 20,724 -s 50x30}\
${image /media/5/Conky//1c_accuweather_images_hourly/41.png -p 95,724 -s 50x30}\
${image /media/5/Conky//1c_accuweather_images_hourly/120.png -p 171,724 -s 50x30}
${execpi 600 sed -n '8p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}${execpi 600 sed -n '9p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}${execpi 10 sed -n '2p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${color9}${execpi 600 sed -n '58p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}${execpi 600 sed -n '59p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}${execpi 10 sed -n '52p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${color7}±${execpi 600 sed -n '67p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 79}±${execpi 600 sed -n '68p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw1}\
  ${goto 154}±${execpi 10 sed -n '61p' /media/5/Conky/1c_accuweather_images_hourly/hourly_raw2}
${color5}${membar 0}${color}

12-24_DOTS_TC_2-f80.lua - tweaked for this conky.

--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010

Edited by Sector11 for The_Clock_2-fvirgola80 - 7 May 2016

lua_load /path/clock.lua
lua_draw_hook_pre main
TEXT
]]

require 'cairo'

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
--##############################################################################
--   SETTINGS AREA
--##############################################################################
-- image
-- how do I add images.
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image /media/5/Conky/images/red_1.png -p 0,0 -s 35x35}")


--12 OR 24
local clock_type=24

--CLOCK SETTINGS
-- for the DOTS around the clock
local clock_radius=100  --100
local clock_centerx=111 --106
local clock_centery=132 --142 --106

-- SET MARKS
--how many marks around edge
local number_marks=0 --24
--set mark length
local m_length=0.5
--set mark line width
local m_width=1.0
--set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
--set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1  --opaque white

--SET BORDER OPTIONS
local clock_border_width=0 --2
--set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1  --full opaque white
--gap from clock border to hour marks
local b_to_m=5

--SECONDS HAND SETUP
--set length of seconds hand
local sh_length=75 --110
--set hand width
local sh_width=1 --1
--set hand line cap
local sh_cap=CAIRO_LINE_CAP_ROUND
--set seconds hand color
local shr,shg,shb,sha=1,0,0,1  --fully opaque red

--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=80 --90
--set hand width
local mh_width=1.5 --1.5
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=0.1,0.8,0.9,1,1  --fully opaque blue

--HOUR HAND SETUP
--set length of hour hand
local hh_length=55 --60
--set hand width
local hh_width=4.0 --2
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=0.1,0.6,0.9,1,1  --fully opaque blue
--##############################################################################
--   END SETTINGS AREA
--##############################################################################

--DRAWING CODE
--draw border
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)

--DRAW MARKS
--stuff that can be moved outside of the loop, needs only be set once
--calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length
--set line cap type
cairo_set_line_cap  (cr, m_cap)
--set line width
cairo_set_line_width (cr,m_width)
--set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
--start for loop
for i=1,number_marks do
--drawing code using the value of i to calculate degrees
--calculate start point for 12 oclock mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
--calculate end point for 12 oclock mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--draw the line
cairo_stroke (cr)
end--of for loop

--TIME CALCULATIONS ###########################
if clock_type==12 then
hours=tonumber(os.date("%I")) --12 hour clock
--convert hours to seconds
h_to_s=hours*60*60
elseif clock_type==24 then
hours=tonumber(os.date("%H")) --24 hour clock
--convert hours to seconds
h_to_s=hours*60*60
end

minutes=tonumber(os.date("%M"))
--convert minutes to seconds
m_to_s=minutes*60
--get current seconds
seconds=tonumber(os.date("%S"))

--DRAW HOUR HAND ############################
--convert hours, minutes & seconds to seconds
hsecs=h_to_s+m_to_s+seconds
--calculate number of degrees for each hand per second
hsec_degs=hsecs*(360/(60*60*clock_type)) -- USING AN EQUATION INSTEAD OF TYPING THE CALCULATION IN BECAUSE THE RESULT OF 360/43200 HAS DECIMAL PLACES
--set radius we will use to calculate hand points
radius=hh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,hh_width)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)

--DRAW MINUTES HAND ############################
--convert minutes & seconds to seconds
msecs=m_to_s+seconds
--calculate degrees for the hand each second
msec_degs=msecs*0.1
--set radius we will use to calculate hand points
radius=mh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,mh_width)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)

--DRAW SECOND HAND #############################
--calculate degrees for each second the hand moves
sec_degs=seconds*6
--set radius we will use to calculate hand points
radius=sh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of second hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,sh_width)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr)

--##############################################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

And finally the newer 24_ds.png - clock-face image updated: 2016-05-06


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#806 2016-05-07 23:38:37

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

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

fvirgola80 wrote:

[
Hello Matrix , the moon phase works have just fixed a bug in conky , obviously aspect clearance from Sector 11 before publishing the Conky . The website for the lunar phases is http://www.moongiant.com/phase/today/

wink

Great site, thank you! I always liked a moonphase indicator. If it's properly made, looks just beautiful - also on watches...

Offline

#807 2016-05-08 02:21:28

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

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

Well it didn't take much to tweak the The_Clock_2-fvirgola80.conky (left) to a larger font so I could see it.  Then I got the idea of putting the "moon" in the original The_Clock_2.conky (right).
2016_05_07_23_11_25_Scrot11.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#808 2016-05-08 10:45:19

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

martix wrote:
fvirgola80 wrote:

[
Hello Matrix , the moon phase works have just fixed a bug in conky , obviously aspect clearance from Sector 11 before publishing the Conky . The website for the lunar phases is http://www.moongiant.com/phase/today/

wink

Great site, thank you! I always liked a moonphase indicator. If it's properly made, looks just beautiful - also on watches...

wink


Nothing happens by chance

Offline

#809 2016-05-08 10:49:19

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Sector11 wrote:

This is: The_Clock_2-fvirgola80.conky

Good morning everyone , good team work .... great master Yoda .....

clockfv80.jpg


clockfvirgola80.jpg

@TEO ... My teacher Obi - wan we can now publish work .....
I'm happy to cooperate with you ...
P.S. Today the bunsenlab site has problems with the certificate does anyone know what happened ?

wink


Nothing happens by chance

Offline

#810 2016-05-08 13:54:13

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

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

Goooooooooooood morning fvirgola80 ... yup, it was a team effort.
Partly cloudy here, Sunny at the moment and a nice 14°C

Why not change the Good Morning/Good Afternoon/Good Evening to Italian?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#811 2016-05-08 14:13:02

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Sector11 wrote:

Goooooooooooood morning fvirgola80 ... yup, it was a team effort.
Partly cloudy here, Sunny at the moment and a nice 14°C


Show us a beautiful team here today with cloudy 20 ° ...


wink

Last edited by fvirgola80 (2016-05-08 14:15:32)


Nothing happens by chance

Offline

#812 2016-05-08 16:24:05

Yashalta
New Member
Registered: 2016-05-08
Posts: 2

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

fvirgola80 wrote:

Good morning everyone , good team work .... great master Yoda .....
http://s5.postimg.org/4k2grseir/clockfv80.jpg

I'm also want to install that conky, it really looks  nice!
But i don't understand from where i can download icons and all that is necessary for work that conky.
Can someone write to my links or tutorial, pleas!

Offline

#813 2016-05-08 16:49:54

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

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

Sorry guys, couldn't post in the forums the last couple of days.

Brilliant job as always fvirgola and S11.
I wish I could try your conkys out, but as you already know my conky version on Arch doesn't support lua.

I totally trust you guys, post the code and I'll add a link on the first page.

@Yashalta
Wait for S11's or fvirgola's responses, I don't know a thing about lua.


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

#814 2016-05-08 17:06:02

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

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

Yashalta wrote:

I'm also want to install that conky, it really looks  nice!
But i don't understand from where i can download icons and all that is necessary for work that conky.
Can someone write to my links or tutorial, pleas!

Do you know anything about conky?
- I will continue as if you said yes...

FIRST:  These are created for conky v1.90 - if you use conky v1.10 there is a LOT of tweaking to be done.

Download, from the first post in this thread, these three scripts:
1b1) Accuweather - Images - 1b1_29-10-15
1c) Accuweather Hourly Forecast - 1c_14-3-16
4) Moon phases' script - 4_2-6-15

Extract them to your ~/ and set them up according to the instructions in the PDF for each script.

Then get the conky, lua script and images from here, read that post carefully, you will need the font: monofur to use it as is and the shaded images.

Start with that.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#815 2016-05-08 17:11:42

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Sector11 wrote:
Yashalta wrote:

I'm also want to install that conky, it really looks  nice!
But i don't understand from where i can download icons and all that is necessary for work that conky.
Can someone write to my links or tutorial, pleas!

Do you know anything about conky?
- I will continue as if you said yes...

FIRST:  These are created for conky v1.90 - if you use conky v1.10 there is a LOT of tweaking to be done.

Download, from the first post in this thread, these three scripts:
1b1) Accuweather - Images - 1b1_29-10-15
1c) Accuweather Hourly Forecast - 1c_14-3-16
4) Moon phases' script - 4_2-6-15

Extract them to your ~/ and set them up according to the instructions in the PDF for each script.

Then get the conky, lua script and images from here, read that post carefully, you will need the font: monofur to use it as is and the shaded images.

Start with that.

@Teo ... Thanks... wink
@ Sector11 ... Great Guide.... cool


@Yashalta ... What distro of linux you own?


Nothing happens by chance

Offline

#816 2016-05-08 17:22:58

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:

Brilliant job as always fvirgola and S11.
I wish I could try your conkys out, but as you already know my conky version on Arch doesn't support lua.

Teo my good man - welcome back.  LUA is a frill, the scripts are what is important.  smile

The latest is here: The_Clock_2-fvirgola80.conky

I'll do whatever I can to get Yashalta setup.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#817 2016-05-08 18:43:11

Yashalta
New Member
Registered: 2016-05-08
Posts: 2

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

Thanks to all who answer to me!
and Sector11 THANK you very much for your detailed answer!!!
Today, I have no time to install conky, tomorrow i'll ...


PS - Yes, I have experience installing and configuring conky. My OS it is Lubuntu 16.04 x32bit and my conky-all has newest version (1.10.1-3).
To me need update conky untill  v1.90? Do I understand correctly? If yes, then how?

Last edited by Yashalta (2016-05-08 19:09:17)

Offline

#818 2016-05-08 19:20:41

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Yashalta wrote:

Thanks to all who answer to me!
and Sector11 THANK you very much for your detailed answer!!!
Today, I have no time to install conky, tomorrow i'll ...


PS - Yes, I have experience installing and configuring conky. My OS it is Lubuntu 16.04 x32bit and my conky-all has newest version (1.10.1-3).
To me need update conky untill  v1.90? Do I understand correctly? If yes, then how?

The version for Conky to use is the 1.9 I am not sure that with the 1.10 functions , if read in the forums there soo other Script to version 1.10

wink


Nothing happens by chance

Offline

#819 2016-05-08 19:59:51

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

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

Yashalta wrote:

Thanks to all who answer to me!
and Sector11 THANK you very much for your detailed answer!!!
Today, I have no time to install conky, tomorrow i'll ...


PS - Yes, I have experience installing and configuring conky. My OS it is Lubuntu 16.04 x32bit and my conky-all has newest version (1.10.1-3).
To me need update conky untill  v1.90? Do I understand correctly? If yes, then how?

If you have a running conky now, you can make a "new" conky with that and use what is under TEXT in the v1.90 conkys between the:

conky.text = [[

]];

That should work.  Some other tweaking on the top section:
EXAMPLE (from a conky I found at #!:

conky.config = {
	out_to_console = true,
	out_to_x = false,
	background = false,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
	no_buffers = true,
	out_to_stderr = false,
	update_interval = 1.0,
	uppercase = false,
	use_spacer = 'none',

};

I have a better example and later I will try to build one for conky v1.10  You should have no problem with Lubuntu and if you do we'll try to help you get it working.

Family time now thought.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#820 2016-05-08 20:11:34

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Sector11 wrote:

I have a better example and later I will try to build one for conky v1.10  You should have no problem with Lubuntu and if you do we'll try to help you get it working.

Family time now thought.

Friend good advice... wink  wink


Nothing happens by chance

Offline

Board footer

Powered by FluxBB