You are not logged in.

#701 2016-03-18 09:05:54

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

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

Thank you for

sector11 wrote:

Next: you are calling the script to work twice.  Not good.

but my question was more onthe script call
>> draw_bg.lua >> Line 79

require 'cairo'

how to be solved in the conky-version1.10?   hmm

Offline

#702 2016-03-18 11:23:18

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

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

Hello guys ..... I'm back ... excuse my long absence Secotr - TEO ..... that combined reading the forum ..... how are you? invent something ? ...


Nothing happens by chance

Offline

#703 2016-03-18 12:13:53

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

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

@unklar

Do you have libcairo2-dev installed?

sudo apt-get install libcairo2-dev
 18 Mar 16 @ 09:03:47 ~
  $ list libcairo2-dev
    Alias for: apt list -a filename
Listing... Done
libcairo2-dev/stable,now 1.14.0-2.1 amd64 [installed,automatic]

 18 Mar 16 @ 09:10:19 ~
  $ 

When I do "apt-cache depends conky-all" I get it listed as a depend. (Depends: libcairo2)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#704 2016-03-18 12:22:40

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:

Hello guys ..... I'm back ... excuse my long absence Secotr - TEO ..... that combined reading the forum ..... how are you? invent something ? ...

Welcome back LUke (aka: fvirgola80)
Pizza and Grappa for everyone.  cool

There is a new "1c Accuweather Hourly" script.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#705 2016-03-18 12:33:21

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

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

Welcome back Luke!
Yoda's done some body modifications - he wants to become Darth Vader I think...


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

#706 2016-03-18 12:40:49

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

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

@Sector11   {)

libcairo2-dev

Excellent Tip!
To which I had not come.   :8

Offline

#707 2016-03-18 12:50:45

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

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

No no - Darth Vader is bad, he's evil even if he has a neat helmet.
2016_03_18_09_47_09_Scrot11.jpg
Yea, that's me.   wink   Upgraded!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#708 2016-03-18 12:51:04

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

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

unklar wrote:

@Sector11   {)

libcairo2-dev

Excellent Tip!
To which I had not come.   :8

I hope it works for you.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#709 2016-03-18 15:32:33

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

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

Sector11 wrote:
fvirgola80 wrote:

Hello guys ..... I'm back ... excuse my long absence Secotr - TEO ..... that combined reading the forum ..... how are you? invent something ? ...

Welcome back Luke (aka: fvirgola80)
Pizza and Grappa for everyone.  cool

There is a new "1c Accuweather Hourly" script.  smile

Pizza and Beer grappa after dinner .... now beginning to see the new 1c ...

big_smile cool


Nothing happens by chance

Offline

#710 2016-03-18 15:33:21

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

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

TeoBigusGeekus wrote:

Welcome back Luke!
Yoda's done some body modifications - he wants to become Darth Vader I think...


lol lol lol


Nothing happens by chance

Offline

#711 2016-03-18 19:28:19

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

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

Sector11 wrote:

I hope it works for you.

Yeah  big_smile
The package

libcairo2-dev

is installed. No more error message in conky.

ButI   sad
get the

corner_radius

not to see.
I think I tried all settings ...

The system is siduction.
When arch-linux and KaOS there is not the package with the label. Something like I have not found.

My configuration

conky.config = {
-- pkill -xf "conky -c /home/unklar/.1b1_images_1c_hourlyconkyrc" &
-- Works perfect: Thu 29 Oct 2015 Sector11 modify unklar 15.01.2016

--##  Begin Window Settings  ###
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
--own_window_colour = '#000000',
	own_window_class = 'Conky',
	own_window_title = 'Teo Accuweather',

--## ARGB can be used for real transparency - requires composite manager
--## Plays hell on conky with images.
--own_window_argb_visual = true,-- Options: yes or no
--## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
--own_window_argb_value = 220,

	minimum_width = 160, minimum_height = 00,-- w|h
	maximum_width = 160,

	gap_x = 5,-- l|r
	gap_y = 5,-- u|d

	alignment = 'top_left',
--##  End Window Settings  ###

--##  Font Settings  ###
	use_xft = true,
	font = 'monofur:bold:size=9',
	xftalpha = 1.0,
	override_utf8_locale = true,
--##  End Font Settings  ###

--##  Color Settings  ###
	draw_shades = true,
	default_shade_color = '#000000',
	draw_outline = false,
	default_outline_color = '#000000',

	default_color = '#DCDCDC',--Gainsboro
	color0 = '#A9A9A9',--DarkGray
	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 = '#FFA07A',--LightSalmon
--##  End Color Settings  ###

--##  Borders Section  ###
-- border margins
	border_inner_margin = 5,
	border_outer_margin = 0,
--##  End Borders Secton  ###

--##  Miscellaneous Section  ###
	background = true,
	use_spacer = 'none',
	no_buffers = true,
--imlib_cache_size = 0,
        imlib_cache_flush_interval = 900,
	double_buffer = true,
--##  End Miscellaneous Section  ###

--${image $HOME/images/red+x.png
--${texeci 1200 bash $HOME/1b1_images/1b1}\
--${texeci 1200 bash $HOME/1c_hourly/1c}\

	update_interval = 2,
--## LUA  ##
    lua_load = '/home/unklarer/LUA/draw-bg.lua',

};

conky.text = [[
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}\
${texeci 1200 bash $HOME/1b1_images/1b1}\
${texeci 1200 bash $HOME/1c_hourly/1c}\
${image $HOME/1_pixel_images/bk_30.png -p 0,0 -s 160x748}\
 ${color5}Aktuell${color}${image $HOME/1_pixel_images/cyan_1.png -p 75,0 -s 1x748}\
  ${goto 85}Next 14 Std.
${color9}${execi 900 sed -n '29p' $HOME/1b1_images/curr_cond}°${color5}${goto 95}${execi 900 sed -n '1p' $HOME/1c_hourly/aktualisiert}${color}
  ${goto 85}${execi 900 sed -n '2p' $HOME/1c_hourly/hourly_raw1}\
${image $HOME/1b1_images/cc.png -p 2,15 -s 70x42}
${image $HOME/1c_hourly/20.png -p 105,37 -s 50x30}\
  ${goto 85}${execi 900 sed -n '52p' $HOME/1c_hourly/hourly_raw1}
      ${color8}±${execi 900 sed -n '30p' $HOME/1b1_images/curr_cond}°${color}\
  ${goto 85}±${execi 900 sed -n '61p' $HOME/1c_hourly/hourly_raw1}
 ${execi 900 sed -n '33p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}
 UVI ${execi 900 sed -n '34p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '3p' $HOME/1c_hourly/hourly_raw1}
 HUM ${execi 900 sed -n '32p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '53p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/23.png -p 105,89 -s 50x30}\
 DP  ${execi 900 sed -n '35p' $HOME/1b1_images/curr_cond}°\
  ${goto 85}±${execi 900 sed -n '62p' $HOME/1c_hourly/hourly_raw1}
 Wnd ${execi 900 sed -n '31p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}20
 @ ${execi 900 sed -n '38p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '4p' $HOME/1c_hourly/hourly_raw1}
 Vis ${execi 900 sed -n '37p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '54p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/26.png -p 105,141 -s 50x30}\
 Cld ${execi 900 sed -n '36p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 900 sed -n '63p' $HOME/1c_hourly/hourly_raw1}
 ${color8}S ${execi 900 sed -n '39p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 82}${membar 0}
 ${color8}↓ ${execi 900 sed -n '40p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 85}${execi 900 sed -n '5p' $HOME/1c_hourly/hourly_raw1}
 M ${execi 900 sed -n '41p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '55p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/29.png -p 105,193 -s 50x30}\
 ↓ ${execi 900 sed -n '42p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 900 sed -n '64p' $HOME/1c_hourly/hourly_raw1}
 ${color5}${time %a %e %b}${color}\
  ${goto 82}${membar 0}
 ${color9}${execi 900 sed -n '26p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '6p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/tod.png -p 25,232 -s 50x30}\
${image $HOME/1c_hourly/32.png -p 105,245 -s 50x30}\
 ${color8}± ${execi 900 sed -n '27p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 900 sed -n '56p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${execi 900 sed -n '28p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 900 sed -n '65p' $HOME/1c_hourly/hourly_raw1}
 ${color5}Heute Abend${color}  ${goto 82}${membar 0}
 ${color9}${execi 900 sed -n '31p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '7p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/ton.png -p 25,287 -s 50x30}\
${image $HOME/1c_hourly/35.png -p 105,297 -s 50x30}\
 ${color8}± ${execi 900 sed -n '32p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 900 sed -n '57p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${color}${execi 900 sed -n '33p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 900 sed -n '66p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '8p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 900 sed -n '4p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 900 sed -n '58p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/6.png -p 25,350 -s 50x30}\
${image $HOME/1c_hourly/38.png -p 105,349 -s 50x30}\
 ${color7}${execi 900 sed -n '5p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '67p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '9p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 900 sed -n '8p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '59p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/11.png -p 25,400 -s 50x30}\
${image $HOME/1c_hourly/41.png -p 105,401 -s 50x30}\
 ${color7}${execi 900 sed -n '9p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '68p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${color5}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '2p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '13p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '52p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/16.png -p 25,453 -s 50x30}\
${image $HOME/1c_hourly/120.png -p 105,453 -s 50x30}\
 ${color7}${execi 900 sed -n '14p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 900 sed -n '61p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '3p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '9p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '53p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/21.png -p 25,507 -s 50x30}\
${image $HOME/1c_hourly/123.png -p 105,505 -s 50x30}\
 ${color7}${execi 900 sed -n '10p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '62p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '4p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '18p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '54p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_2.png -p 25,560 -s 50x30}\
${image $HOME/1c_hourly/126.png -p 105,557 -s 50x30}\
 ${color7}${execi 900 sed -n '19p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 900 sed -n '64p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '5p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '23p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '55p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_7.png -p 25,612 -s 50x30}\
${image $HOME/1c_hourly/129.png -p 105,609 -s 50x30}\
 ${color7}${execi 900 sed -n '24p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 900 sed -n '65p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '6p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '14p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 900 sed -n '56p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_12.png -p 25,663 -s 50x30}\
${image $HOME/1c_hourly/132.png -p 105,661 -s 50x30}\
 ${color7}${execi 900 sed -n '15p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '66p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '7p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '19p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 900 sed -n '57p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_17.png -p 25,715 -s 50x30}\
${image $HOME/1c_hourly/135.png -p 105,713 -s 50x30}\
 ${color7}${execi 900 sed -n '20p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '67p' $HOME/1c_hourly/hourly_raw2}
#${membar 0}
]];

1024x768
C6xgvk5g

Perhaps you see a mistake ...   hmm

Offline

#712 2016-03-18 20:37:16

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

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

1.  You got rid of the error and the background works.  That's a step in the right direction.

2.  Everything looks good, the line:

${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}\

should be showing 10 pixel rounded corners with a shade set at 0.2

Try this ... in the other conky you have there - the system conky

lua_load = '/home/unklarer/LUA/draw-bg.lua',
lua_draw_hook_pre = 'draw_bg 25 0 0 0 0 0x000000 0.5',
};

conky.text = [[

Not knowing how conky v1.10 works it might be something like this:

lua_draw_hook_pre draw_bg = '25 0 0 0 0 0x000000 0.5',

although I don't think so.... test differnt ways.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#713 2016-03-19 17:06:13

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

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

Unfortunately, no success.

I did spend hours testing. I also once again moved from the laptop to the desktop because there is running in siduction the compositor in the background ...

Nothing, noope, nende,
no corner_radius   sad

Offline

#714 2016-03-19 17:51:20

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

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

unklar wrote:

Unfortunately, no success.

I did spend hours testing. I also once again moved from the laptop to the desktop because there is running in siduction the compositor in the background ...

Nothing, noope, nende,
no corner_radius   sad

sad  And no errors.  Here is a depends list for conky-all v1.90.  Check v1.10 and see it there is something in v1.9 that isn't in v1.10.  If there is something different - add it to see if that helps.

  $ dep conky-all
alias dep=apt-cache depends
conky-all
  Depends: libaudclient2
  Depends: libc6
  Depends: libcairo2
  Depends: libcurl3-gnutls
  Depends: libdbus-glib-1-2
  Depends: libglib2.0-0
  Depends: libimlib2
  Depends: libiw30
  Depends: liblua5.1-0   <<<--- ???
  Depends: libncurses5
  Depends: libtinfo5
  Depends: libx11-6
  Depends: libxdamage1
  Depends: libxext6
  Depends: libxfixes3
  Depends: libxft2
  Depends: libxml2
  Depends: libxmmsclient6
  Depends: libxnvctrl0

We know the LUA script works in v1.90 so something changed in v1.10 - my first thought is maybe: liblua5.1-0

Which is interesting, it is NOT installed here.  I have liblua5.2 installed.  So maybe the depends is v5.1 (or greater)

 19 Mar 16 @ 14:42:34 ~
  $ sho lua
aptitude show filename
No current or candidate version found for lua
Package: lua
State: not a real package
Provided by: lua5.1, lua5.2, lua5.3, lua50
 
 19 Mar 16 @ 14:42:45 ~
  $ sho lua5.1
aptitude show filename
Package: lua5.1                   
State: not installed
Multi-Arch: foreign
Version: 5.1.5-7.1

 19 Mar 16 @ 14:43:12 ~
  $ sho lua5.2
aptitude show filename
Package: lua5.2                   
State: installed
Automatically installed: yes
Multi-Arch: foreign
Version: 5.2.3-1.1
 
 19 Mar 16 @ 14:43:30 ~
  $ sho lua5.3
aptitude show filename
Package: lua5.3                   
State: not installed
Multi-Arch: foreign
Version: 5.3.1-1~bpo8+1
 
 19 Mar 16 @ 14:43:49 ~
  $ sho lua50
aptitude show filename
Package: lua50                    
State: not installed
Version: 5.0.3-7

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#715 2016-03-19 18:06:15

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

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

@unklar - In conky v1.10, can you do various squares / rectangles with the script in different colours?
2016_03_19_15_02_29_Scrot11.jpg

lua_load /media/5/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre main

TEXT
 ${lua conky_draw_bg 0 10 10 150 150 0xDCDCDC 0.4}\
 ${lua conky_draw_bg 0 40 40 150 150 0xB0E0E6 0.5}\
 ${lua conky_draw_bg 0 70 70 150 150 0xF4A460 0.6}\

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#716 2016-03-19 19:28:12

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

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

aptitude show conky-all
Paket: conky-all                                
Version: 1.10.1-3
Zustand: Installiert
Automatisch installiert: nein
Priorität: optional
Bereich: utils
Verwalter: Vincent Cheng <vcheng@debian.org>
Architektur: i386
Unkomprimierte Größe: 1.662 k
Hängt ab von: libaudclient2 (>= 2.3), libc6 (>= 2.17), libcairo2 (>= 1.8.0),
              libcurl3-gnutls (>= 7.16.2), libdbus-glib-1-2 (>= 0.78), libgcc1
              (>= 1:4.2), libglib2.0-0 (>= 2.12.0), libimlib2 (>= 1.4.5),
              libiw30 (>= 30~pre1), liblua5.1-0, libncurses5 (>= 6), librsvg2-2
              (>= 2.35.2), libstdc++6 (>= 5.2), libtinfo5 (>= 6), libx11-6,
              libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxft2 (> 2.1.1),
              libxml2 (>= 2.7.4), libxmmsclient6 (>= 0.7DrNo), libxnvctrl0
Schlägt vor: apcupsd, audacious, moc, mpd, xmms2
Kollidiert mit: conky-cli, conky-std
Beschädigt: conky (< 1.8.0-1)
Ersetzt: conky (< 1.8.0-1), conky-cli, conky-std
Beschreibung: Hochkonfigurierbare Systemüberwachung (Vollversion)
 Conky ist eine Systemüberwachung die so ziemlich alles anzeigen kann -
 entweder auf Ihrem Desktop oder in einem eigenen Fenster. Conky verfügt über
 viele integrierte Objekte sowie die Fähigkeit, externe Programme oder Skripte
 auszuführen (entweder extern oder durch die integrierte Lua-Unterstützung). 
 
 Das ist eine Conky-Vollversion, bei der fast alle Optionen bei der
 Kompilierung übersetzt worden: 
 
 X11, XDamage, XDBE, Xft, MPD, MOC, math, hddtemp, portmon, RSS, Wetter, WLAN,
 IBM, nvidia, eve-online, Imlib2, ALSA-Mixer, apcupsd, E/A-Stati, argb, Lua
 sowie die cairo- und imlib2-lua-Verknüpfungen, Audacious und XMMS2.
Homepage: http://conky.sourceforge.net/
Markierungen: admin::monitoring, implemented-in::c, interface::x11,
              role::program, scope::utility, uitoolkit::xlib, use::monitor,
              x11::applet
aptitude show lua
Kein Installationskandidat für lua gefunden     
Paket: lua
Zustand: kein echtes Paket
Bereitgestellt von: lua5.1 (5.1.5-8), lua5.2 (5.2.4-1), lua5.3 (5.3.1-1), lua50
                    (5.0.3-7)
aptitude show lua5.1
Paket: lua5.1                                   
Version: 5.1.5-8
Zustand: nicht installiert

aptitude show lua5.2
Paket: lua5.2                                   
Version: 5.2.4-1
Zustand: nicht installiert

aptitude show lua5.3
Paket: lua5.3                                   
Version: 5.3.1-1
Zustand: nicht installiert

aptitude show lua50
Paket: lua50                                    
Version: 5.0.3-7
Zustand: nicht installiert
apt-cache policy liblua5.1
liblua5.1-0:
  Installiert:           5.1.5-8
  Installationskandidat: 5.1.5-8
  Versionstabelle:
 *** 5.1.5-8 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages
        100 /var/lib/dpkg/status


apt-cache policy liblua5.2
liblua5.2-0:
  Installiert:           5.2.4-1
  Installationskandidat: 5.2.4-1
  Versionstabelle:
 *** 5.2.4-1 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages
        100 /var/lib/dpkg/status


apt-cache policy liblua5.3
liblua5.3-dev:
  Installiert:           (keine)
  Installationskandidat: 5.3.1-1
  Versionstabelle:
     5.3.1-1 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages
liblua5.3-0-dbg:
  Installiert:           (keine)
  Installationskandidat: 5.3.1-1
  Versionstabelle:
     5.3.1-1 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages
liblua5.3-0:
  Installiert:           (keine)
  Installationskandidat: 5.3.1-1
  Versionstabelle:
     5.3.1-1 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages

 apt-cache policy liblua50
liblua50:
  Installiert:           (keine)
  Installationskandidat: 5.0.3-7
  Versionstabelle:
     5.0.3-7 500
        500 http://httpredir.debian.org/debian unstable/main i386 Packages

8o  8o

Take a not so fast, I'm older...   big_smile   roll

Offline

#717 2016-03-19 20:08:42

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

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

Sector11 wrote:

@unklar - In conky v1.10, can you do various squares / rectangles with the script in different colours?

conky.config = {
	background = true,

-- font settings
	use_xft = true,
	font = 'monospace-12',
	uppercase = false,

-- update every 3 secs
	update_interval = 1,

-- stay running forever
	total_run_times = 0,

-- draw to root window
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'skip_taskbar,skip_pager', 
        own_window_colour = '#000000',
        own_window_class = 'Conky',

-- avoid flickering
	double_buffer = true,

-- size
	minimum_width = 350, minimum_height = 380,
--maximum_width 1280

-- position
	alignment = 'top_left',
	gap_x = 40,
	gap_y = 40,

-- colors
	default_color = 'white',
	default_shade_color = 'black',
	default_outline_color = 'black',
	color0 = '#ffffff',--white
	color1 = '#144556',--dunkelblue
	color2 = '#33b0dc',--hellblue
	color3 = '#ff8c00',--dark orange
	color4 = '#00ffff',--cain
	color5 = '#c0c0c0',--silver
	color6 = '#808080',--gray

-- borders
	draw_borders = false,
	stippled_borders = 8,
--border_inner_margin 4
	border_width = 1,

-- shades
	draw_shades = true,

-- outline
	draw_outline = false,

-- spacer
--use_spacer no

-- buffers
	no_buffers = true,

-- sampling
	cpu_avg_samples = 2,
	net_avg_samples = 2,

--# LUA #--
    lua_load = "/home/unklarer/LUA/draw_bg.lua",        

};

conky.text = [[
${lua conky_draw_bg 0 10 10 150 150 0xDCDCDC 0.4}\
${lua conky_draw_bg 0 40 40 150 150 0xB0E0E6 0.5}\
${lua conky_draw_bg 0 70 70 150 150 0xF4A460 0.6}\
]];

No  mad  Empty window

Offline

#718 2016-03-19 20:39:40

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

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

Sector11 wrote:

unklar wrote:

Unfortunately, no success.

I did spend hours testing. I also once again moved from the laptop to the desktop because there is running in siduction the compositor in the background ...

Nothing, noope, nende,
no corner_radius   

  And no errors.

Errors relating to the syntax

conky: Syntax error (/home/unklarer/.1b1_images_1c_hourlyconkyrc:77: '}' expected (to close '{' at line 1) near 'draw_bg') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:138: attempt to index local 'settings' (a nil value)

the concerning

lua_draw_hook_pre draw_bg = "25 0 0 0 0 0x000000 0.5"

it does not work

lua_draw_hook_pre = "draw_bg 25 0 0 0 0 0x000000 0.5"

it's OK.. smile

Offline

#719 2016-03-19 23:38:10

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

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

unklar wrote:

No  mad  Empty window

SORRY!  MY MISTAKE!! ... try this:

--# LUA #--
    lua_load = "/home/unklarer/LUA/draw_bg.lua",        

};

conky.text = [[
 ${lua conky_draw_bg 0 10 10 150 150 0xDCDCDC 0.4}\
 ${lua conky_draw_bg 75 40 40 150 150 0xB0E0E6 0.5}\
 ${lua conky_draw_bg 0 70 70 150 150 0xF4A460 0.6}\
${time %T}${alignr}${utime %T}
${uptime}${alignr}${time %x}
${alignc}CPU Avg ${if_match ${cpu cpu0}<10}${color1}00${color6}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color1}0${color5}${cpu cpu0}\
${else}${color9}${cpu cpu0}${endif}${endif}${color5}%${color}
${alignc}Conky v${conky_version}
${alignc}${color9}${membar 0,25}${color} ↓ test code ↓ ${color9}${membar 0,25}${color}
${color9}${membar 0}${color}

1 = 20             corner_radius
2 = 0             x_position l|r
3 = 0             y_position u|d
4 = 0             width
5 = 0             height
6 = 0x000000      color
7 = 0.4           alpha

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

2016_03_19_20_25_16_Scrot11.jpg

Xing fingers.  My mistake was giving you three lines that all ended in \ making them only one line with nothing under it.

I see you have the proper lua stuff installed too.  sad
This might be another problem with conky v1.10

BUT:
unklar wrote:
--# LUA #--
    lua_load = "/home/unklarer/LUA/draw_bg.lua",  
    lua_draw_hook_pre = "draw_bg 25 0 0 0 0 0x000000 0.5",

it's OK.. smile

Good - that works. You got rounded corners?  smile smile
Or just the dark shaded background?

Now try this:

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

... you should get a light blue circle.  smile

EDIT:

NOTE: by using both lines above TEXT it will darken the images in a conky as it draws the background OVER the images, not under them.  sad
2016_03_19_20_49_13_Scrot11.jpg 2016_03_19_20_49_35_Scrot11.jpg

Last edited by Sector11 (2016-03-19 23:51:15)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#720 2016-03-20 11:23:12

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

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

Something is missing ... for the representation of LUA.  neutral
59WE0NHf

Sector11 wrote:

Good - that works. You got rounded corners?   
Or just the dark shaded background?

Neither ... nor.

Offline

Board footer

Powered by FluxBB