You are not logged in.

#1651 2017-06-14 08:18:01

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

Hi Unklar,

Yeah I tried that with restart but it didn't have any affect. Even if I try 300, 200, or 100, it doesn't have any affect.

Last edited by chairman67 (2017-06-14 08:27:44)

Offline

#1652 2017-06-14 08:55:37

ector1935
Member
Registered: 2017-05-03
Posts: 201

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

ragamatrix wrote:

Hello guys,
I made a "clone" of the conkyHTC accuweather with wundeground's forecasts, I have a bit problems with refreshing weather script for accuweather and for wundergroun, but at this moment it seems to be ok...
https://cdn.scrot.moe/images/2017/06/13/conky-wun.th.png

@ragamatrix you can post the configuration of this conky, thanks

http://imgur.com/5uMvTojl.png

Last edited by Head_on_a_Stick (2017-06-14 20:34:16)

Offline

#1653 2017-06-14 10:35:52

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

G'day guys. My past attempt to post image with flickr failed, so I try again using imgur.
Basically, the image shows what I want to achieve. Reduce the conky height to eliminate the excess at the bottom.

I tried Unklar's suggestion (thanks Unklar) without success. It seems changing the minimum_height value has zero affect. The .conkyrc script is in the initial post for anyone who would like to load it and see what the problem is. I cannot seem to find a way. Many thanks.

uLJ0wwB.th.png

--
Moderator edit: Replaced huge image with thumbnail. Try using https://scrot.moe next time for uploading your images, it's a community service provided by mrneilypops!

Last edited by earlybird (2017-06-14 10:43:38)

Offline

#1654 2017-06-14 13:27:19

ragamatrix
Member
Registered: 2015-10-04
Posts: 423

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

@ector1935 "you can post the configuration of this conky, thanks"

sure wink
just modify your pathes
ConkySatMap

Last edited by ragamatrix (2017-06-14 13:28:09)

Offline

#1655 2017-06-14 13:52:19

ector1935
Member
Registered: 2017-05-03
Posts: 201

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

thank you very match @ragamatix,my desktop archlabs whit wallpaper @Sector11

http://imgur.com/b0yfxEul.png

Last edited by Head_on_a_Stick (2017-06-14 20:35:03)

Offline

#1656 2017-06-14 19:17:53

unklar
Member
Registered: 2015-10-31
Posts: 1,169

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

@chairman67,

try

	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
        own_window_argb_visual = true,
        own_window_argb_value = 180,
--own_window_colour = '#000000',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
        own_window_class = 'Conky',

also you should play in between

...
        own_window_argb_value = 180, --0, and 255,(transparent and opaque)
...
	own_window_hints = 'below,skip_taskbar,skip_pager',  --undecorated,

so you have decoriert the Conky window.
-install the screen ruler.
-change that

alignment

and always log off. wink

The size of the image now seems to be right.
2017-06-14-21-14-42_scrot.th.png

Offline

#1657 2017-06-14 21:29:05

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

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

chairman67 wrote:

G'day guys. My past attempt to post image with flickr failed, so I try again using imgur.
Basically, the image shows what I want to achieve. Reduce the conky height to eliminate the excess at the bottom.

I tried Unklar's suggestion (thanks Unklar) without success. It seems changing the minimum_height value has zero affect. The .conkyrc script is in the initial post for anyone who would like to load it and see what the problem is. I cannot seem to find a way. Many thanks.

Do you have empty lines at the end of your conkyrc?
If yes, delete them.


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

#1658 2017-06-15 05:25:44

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

TeoBigusGeekus wrote:

Do you have empty lines at the end of your conkyrc?
If yes, delete them.

Yes. The posted image is with empty lines deleted. This removed about 50% of the excess height. When I delete the empty lines in the other conkyrc scripts, their height would be fully decreased. Strangely, this conkyrc_1_weatherfront is the only one that deleting the empty lines at the end of the script does not do the trick!

There must be something else in the script that is causing this odd behavior, which I haven't been able to figure out. It's behavior is different to the other conkyrc scripts. I am wondering if this difference is being caused by the weatherfront fonts!?

Last edited by chairman67 (2017-06-15 05:42:55)

Offline

#1659 2017-06-15 06:21:10

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

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

Can you post us your full conkyrc?


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

#1660 2017-06-15 07:59:17

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

Yep, here it is. Thanks for taking a look at it.

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = false,
        own_window_argb_visual = true,
        own_window_argb_value = 185,
	own_window_colour = 'black',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- fiddle with window
	use_spacer = 'right',
	use_xft = true,

-- Update interval in seconds
	update_interval = 3,

-- Minimum size of text area
	minimum_width = 360, minimum_height = 500,
	maximum_width = 360,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,

-- Text stuff
	draw_outline = false,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	font = 'Arial:size=9',
	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

-- border margins
	border_inner_margin = 9,

-- border width
	border_width = 10,

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

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

	imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen

};

conky.text = [[
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1_accuweather/1_accuweather -f}
${font Arial:size=10}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond}
${font conkyweather:size=130}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${font}
${voffset -170}${font}${goto 200}${color ffe595}TEMPERATURE: $color${alignr}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° (${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°)
${goto 200}${color ffe595}WIND SPEED: $color${alignr}${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond} 
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '10p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}CEILING: $color${alignr}${execpi 600 sed -n '11p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '12p' $HOME/1_accuweather/curr_cond}°
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '13p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN R/S: $color${alignr}${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN DUR: $color${alignr}${execpi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON R/S: $color${alignr}${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON DUR: $color${alignr}${execpi 600 sed -n '20p' $HOME/1_accuweather/curr_cond}
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '26p' $HOME/1_accuweather/first_days}${goto 135}${execi 600  sed -n '27p' $HOME/1_accuweather/first_days}${goto 255}${execi 600  sed -n '28p' $HOME/1_accuweather/first_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°
${goto 100}/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°

${font Arial:size=8}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c1-20}
${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '29p' $HOME/1_accuweather/first_days}${goto 135}${execi 600  sed -n '30p' $HOME/1_accuweather/first_days}${goto 255}${execi 600  sed -n '26p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°

${font Arial:size=8}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}${goto 145}${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days}${goto 270}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '27p' $HOME/1_accuweather/last_days}${goto 135}${execi 600  sed -n '28p' $HOME/1_accuweather/last_days}${goto 255}${execi 600  sed -n '29p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°${goto 210}${execpi 600 sed -n '13p' $HOME/1_accuweather/last_days}°${goto 330}${execpi 600 sed -n '18p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°${goto 210}/${execpi 600 sed -n '14p' $HOME/1_accuweather/last_days}°${goto 330}/${execpi 600 sed -n '19p' $HOME/1_accuweather/last_days}°

${font Arial:size=8}${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 2}
]];

Last edited by chairman67 (2017-06-15 07:59:53)

Offline

#1661 2017-06-15 09:42:16

ector1935
Member
Registered: 2017-05-03
Posts: 201

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

hi,@chairman67
Start from here.

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- fiddle with window
	use_spacer = 'right',
	use_xft = true,

-- Update interval in seconds
	update_interval = 3,

-- Minimum size of text area
	minimum_width = 180, minimum_height = 500,
	maximum_width = 180,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,

-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	font = 'Arial:size=9',
	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

-- border margins
	border_inner_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 = true,

-- 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 = 110,
	gap_y = 30,

	imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen

};


conky.text = [[
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1_accuweather/1_accuweather -f}
${font Arial:size=10}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond}
${font conkyweather:size=130}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${font}
${voffset -170}${font}${goto 200}${color ffe595}TEMPERATURE: $color${alignr}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° (${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°)
${goto 200}${color ffe595}WIND SPEED: $color${alignr}${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond} 
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '10p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}CEILING: $color${alignr}${execpi 600 sed -n '11p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '12p' $HOME/1_accuweather/curr_cond}°
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '13p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN R/S: $color${alignr}${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN DUR: $color${alignr}${execpi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON R/S: $color${alignr}${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON DUR: $color${alignr}${execpi 600 sed -n '20p' $HOME/1_accuweather/curr_cond}
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '26p' $HOME/1_accuweather/first_days}${goto 135}${execi 600  sed -n '27p' $HOME/1_accuweather/first_days}${goto 255}${execi 600  sed -n '28p' $HOME/1_accuweather/first_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°
${goto 100}/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°

${font Arial:size=8}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c1-20}
${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '29p' $HOME/1_accuweather/first_days}${goto 135}${execi 600  sed -n '30p' $HOME/1_accuweather/first_days}${goto 255}${execi 600  sed -n '26p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°

${font Arial:size=8}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}${goto 145}${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days}${goto 270}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '27p' $HOME/1_accuweather/last_days}${goto 135}${execi 600  sed -n '28p' $HOME/1_accuweather/last_days}${goto 255}${execi 600  sed -n '29p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°${goto 210}${execpi 600 sed -n '13p' $HOME/1_accuweather/last_days}°${goto 330}${execpi 600 sed -n '18p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°${goto 210}/${execpi 600 sed -n '14p' $HOME/1_accuweather/last_days}°${goto 330}/${execpi 600 sed -n '19p' $HOME/1_accuweather/last_days}°

${font Arial:size=8}${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 2}
]];

Last edited by ector1935 (2017-06-15 09:44:16)

Offline

#1662 2017-06-15 09:50:33

ector1935
Member
Registered: 2017-05-03
Posts: 201

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

This should be fine if I understand it right!
psMgyJmm.png

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'override',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- fiddle with window
	use_spacer = 'right',
	use_xft = true,

-- Update interval in seconds
	update_interval = 3,

-- Minimum size of text area
	minimum_width = 380, minimum_height = 500,
	maximum_width = 380,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = true,

-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	font = 'Arial:size=9',
	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

-- border margins
	border_inner_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 = true,

-- 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 = 20,
	gap_y = 10,

	imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen

};


conky.text = [[
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/1_accuweather/1_accuweather -f}
${font Arial:size=10}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond}
${font conkyweather:size=130}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${font}
${voffset -170}${font}${goto 200}${color ffe595}TEMPERATURE: $color${alignr}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° (${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°)
${goto 200}${color ffe595}WIND SPEED: $color${alignr}${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '9p' $HOME/1_accuweather/curr_cond} 
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '10p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}CEILING: $color${alignr}${execpi 600 sed -n '11p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '12p' $HOME/1_accuweather/curr_cond}°
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '13p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN R/S: $color${alignr}${execpi 600 sed -n '14p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '15p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}SUN DUR: $color${alignr}${execpi 600 sed -n '16p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON R/S: $color${alignr}${execpi 600 sed -n '18p' $HOME/1_accuweather/curr_cond}/${execpi 600 sed -n '19p' $HOME/1_accuweather/curr_cond}
${goto 200}${color ffe595}MOON DUR: $color${alignr}${execpi 600 sed -n '20p' $HOME/1_accuweather/curr_cond}
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '26p' $HOME/1_accuweather/first_days}${goto 135}${execi 600  sed -n '27p' $HOME/1_accuweather/first_days}${goto 255}${execi 600  sed -n '28p' $HOME/1_accuweather/first_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°
${goto 100}/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°

${font Arial:size=8}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c1-20}
${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}${goto 145}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}${goto 270}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '29p' $HOME/1_accuweather/first_days}${goto 135}${execi 600  sed -n '30p' $HOME/1_accuweather/first_days}${goto 255}${execi 600  sed -n '26p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${goto 210}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${goto 330}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${goto 210}/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${goto 330}/${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}°

${font Arial:size=8}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '5p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 1}
${goto 40}${font Arial:size=10}${color ffe595}${execpi 600 sed -n '6p' $HOME/1_accuweather/last_days}${goto 145}${execpi 600 sed -n '11p' $HOME/1_accuweather/last_days}${goto 270}${execpi 600 sed -n '16p' $HOME/1_accuweather/last_days}$color$font
${font conkyweather:size=50}${execi 600  sed -n '27p' $HOME/1_accuweather/last_days}${goto 135}${execi 600  sed -n '28p' $HOME/1_accuweather/last_days}${goto 255}${execi 600  sed -n '29p' $HOME/1_accuweather/last_days}${font}
${voffset -45}${goto 100}${execpi 600 sed -n '8p' $HOME/1_accuweather/last_days}°${goto 210}${execpi 600 sed -n '13p' $HOME/1_accuweather/last_days}°${goto 330}${execpi 600 sed -n '18p' $HOME/1_accuweather/last_days}°
${goto 100}/${execpi 600 sed -n '9p' $HOME/1_accuweather/last_days}°${goto 210}/${execpi 600 sed -n '14p' $HOME/1_accuweather/last_days}°${goto 330}/${execpi 600 sed -n '19p' $HOME/1_accuweather/last_days}°

${font Arial:size=8}${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c1-20}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c1-20}
${execpi 600 sed -n '10p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 135}${execpi 600 sed -n '15p' $HOME/1_accuweather/last_days|cut -c21-40}${goto 255}${execpi 600 sed -n '20p' $HOME/1_accuweather/last_days|cut -c21-40}$font
${hr 2}
]];

Offline

#1663 2017-06-15 10:21:05

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

ector1935 wrote:

This should be fine if I understand it right!

Okay but what if you want a solid window?

	own_window_colour = 'black',
	own_window_transparent = false,

Then it's not so fine!

fdQ5VBZm.png
http://i.imgur.com/fdQ5VBZ.png

Last edited by chairman67 (2017-06-15 14:32:19)

Offline

#1664 2017-06-15 11:25:35

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

Here is example of conkyrc_1_images_2015/6 with height reduced. Their height can be reduced by deleting the empty lines at the end of the conkyrc as suggested by Teo. But for some strange reason it doesn't work on conkyrc_1_weatherfont.

6ujF995m.png

http://i.imgur.com/6ujF995.png

Offline

#1665 2017-06-15 20:23:04

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

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

The behavior is confirmed on my system as well.
It happens no matter what, whether you use an images' conky or the weatherfont one.
It happens even when you delete all conky text and just leave the title WEATHER alone.
Could it be a conky bug?
A setting we don't know about?
What conky version are you using?
I'm using 1.10.6-2.


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

#1666 2017-06-15 22:27:11

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

G'day Teo,
I'm on 1.10.1-3

It happens no matter what, whether you use an images' conky or the weatherfont one.
It happens even when you delete all conky text and just leave the title WEATHER alone.

I disagree. See the marked up image URL posted below that explains.
http://i.imgur.com/NMp5OkL.png
NMp5OkLm.png
I found the cause for the different behavior with conkyrc_1_weatherfont.
Its this offset setting in the script for the first large weatherfont.

${voffset -170}

If you delete the first (largest) weatherfont from the script the excess height
gets reduced like the others. See the image URL below which shows the height resolved.
http://i.imgur.com/yzEUhHe.png
yzEUhHem.png
I am not sure if the conkyrc script can be modified to resolve it?
This finding proves it's not a conky bug!
Check it out to see for yourself.

Last edited by chairman67 (2017-06-15 22:57:04)

Offline

#1667 2017-06-15 22:47:22

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

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

chairman67 wrote:

G'day Teo,
I'm on 1.10.1-3

It happens no matter what, whether you use an images' conky or the weatherfont one.
It happens even when you delete all conky text and just leave the title WEATHER alone.

I disagree. See the marked up image URL posted below that explains.
http://i.imgur.com/NMp5OkL.png
http://i.imgur.com/NMp5OkLm.png
I found the cause for the different behavior with conkyrc_1_weatherfont.
Its this offset setting in the script for the first large weatherfont.

${voffset -170}

If you delete the first (largest) weatherfont from the script the excess height
is reduced like the others. See the image below which shows it.
http://i.imgur.com/yzEUhHe.png
http://i.imgur.com/yzEUhHem.png
I am not sure if the conkyrc script can be modified to resolve it?
This finding proves it's not a conky bug!
Check it out to see for yourself.

nqQKsext.jpg
Perhaps it can be corrected in conky 1.10.1-3, but not in 1.10.6-2
...unless it's a new and obscure setting we're missing...


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

#1668 2017-06-15 23:09:48

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

Perhaps it can be corrected in conky 1.10.1-3, but not in 1.10.6-2
...unless it's a new and obscure setting we're missing...

There is nothing obscure with the conky 1.10.6-2!

You need to change your minimum_height to 10 from 500 and then you will see the height get reduced all the way up to the WEATHER text!

Now, if you put everything back and then remove just the first weatherfont from the script altogether you will produce what I get in the second image I posted.

Remove just this code.

${font conkyweather:size=130}${execi 600  sed -n '22p' $HOME/1_accuweather/curr_cond}${font}
${voffset -170}${font}

So there is something about the -170 vertical offset with the first weatherfont pic that forces the height down at the bottom of the window! I am not sure if the script can be modified to stop this knock on effect?

Last edited by chairman67 (2017-06-15 23:16:42)

Offline

#1669 2017-06-15 23:10:20

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

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

Well, you's got the idea BUT ... there is always a BUT!

Conky puts one line on the screen for every line you have under TEXT (or:  conky.text = [[ )

Text
line1
line2
line3
line4
line5

Which produces a conky 5 line on the screen.  Now what happens when you start playing with ${voffset}  --- you are moving "where the line displays on the screen" BUT conky is still putting it on the proper line - and then moving it.

So you end up with that "free space".  Take a look at this: Goto/offset/voffset

And try this:

1=================
                  ${voffset -14}2=================
3===================================
4=================
                  ${voffset -14}5=================
6===================================

${voffset xx) will vary depending on your font and fontsize
2017-06-15_200024_Scrot11.jpg

Now to get rid of that space on the end....

On the last working line of your conky add an \ like this: ${somecommand}\  then on the next line:

${voffset 20}----------

and play with that "20" hitting [ Ctrl + s ] on every change until the line comes up to where you want the conky window to end just under the final displayed text.


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

Offline

#1670 2017-06-15 23:20:44

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

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

@ chairman67 - why not use scrot.moe an image site setup and hosted by a BunsenLab user, mrneilypops, for all BunsenLab users - it's FREE! too.  smile


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

Offline

#1671 2017-06-15 23:23:42

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

Thanks for your valued input Sector. I will take a closer look at your post after some sleep.. it's been an all nighter for me! Will pick this up later. Cheers for now.
Edit: Sec, I will look into Scrot later as well. Thanks for the tip.

Last edited by chairman67 (2017-06-15 23:25:31)

Offline

#1672 2017-06-15 23:43:13

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

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

Yea go get some sleep ... 9:30ish in the AM is a LONG night.
World time weather conky ...
2017-06-15_204001_Scrot11.th.jpg
Remember this one Teo?  World time, world weather (you did the script) and International Dateline by colour change with an updating image of the world c/w day/night shadow and cloud cover.

Took me a few days to get the ( + ) marks over the cities as the clouds kept covering them up  smile


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

Offline

#1673 2017-06-16 05:09:47

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

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

Oh God, talking about a brainfart.
Sorry everyone, that one went completely over my head; I totally forgot about the min height variable.

@chairman67
Read S11's post, it explains everything.
Just change your conkyrc's last lines from

...
${hr 2}
]];

to

...
${hr 2}${voffset -145}
]];

Play with voffset's value and you'll fix your issue.

@S11
Thanks buddy for the clear judgement.
I think that world weather thingy reminds me of something, but it must have been some years, haven't they?

Last edited by TeoBigusGeekus (2017-06-17 05:25:34)


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

#1674 2017-06-16 06:32:33

chairman67
Member
From: West Coast, Australia
Registered: 2017-06-12
Posts: 18

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

Teo & S11,
This workaround fix does the trick. Thanks a whole bunch, you guys are both legends!

S11, now trying out scrot.moe for the first time. Nice! Posted image below shows the effect of adding voffset variable at the last line of the conkyrc for the 3 main weather conkys. This does a real nice job in fine tuning the window's height. Fantastic stuff!
3conkyrcs4.th.png

Offline

#1675 2017-06-16 06:35:07

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

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

Good to know you've solved your problem and sorry again for the brainfart.


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