You are not logged in.

#181 2015-11-20 23:31:29

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

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

Wait?  We don't 'wait' we conky-on!  tongue  lol  lol  lol


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#182 2015-11-21 17:38: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)

It's an excellent job S11, but using almost 23% of my CPU power, I don't think I can use this as my main, daily conky
kGHT4mgt.jpg

...on the other hand, I bet very few people have as shitty a PC as I do, so I'm puttin a link of your post on the front page.
Well done me old chap!


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

#183 2015-11-21 17:48:15

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,271
Website

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

I think the CPU leaks mostly are the "weather icon png's" fault, i remember png's 512x512 or 256x256 they consumed a few CPU's

Reducing to 32x32 or 48x48 or 64x64 brings pretty positive changes.

Maybe I'm wrong but I found large png icons a bit CPU leak.

Nili

Last edited by Nili (2015-11-21 18:00:11)


Tumbleweed | KDE Plasma

Offline

#184 2015-11-21 17:55:09

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

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

There only one large png if I'm not mistaken, the first one, setting the background.
But there are quite a few small ones...
I think this conkyrc would work better on my pc with a script that uses a weather font instead of images...


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

#185 2015-11-21 18:02:28

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,271
Website

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

Then, if the icons are small enough, must see anything in the code.

Weather font it is the best lighter solution imo.


Tumbleweed | KDE Plasma

Offline

#186 2015-11-21 18:05:29

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

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

Too many calls (execi), that's it.

But on a modern, non crappy pc, my 23% should be something like 5-10%, so it's not a big deal.


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

#187 2015-11-21 18:11:39

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,271
Website

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

Perhaps it is any old code that S11 does not put too much hand or efforts? I'm sure S11 can make a check then fix it.


Tumbleweed | KDE Plasma

Offline

#188 2015-11-21 18:21:39

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

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

No, it's the opposite, S11 is overworking himself.

You see, when I create the scripts, I have the choice to create a conkyrc (the text part) INSIDE the conky script itself.
This way, the conkyrc would need to call just one execi command to show all the info.
But this would seriously limit the user's freedom to create their own conkyrcs.

It's better to use a bit more CPU than to give ready, non flexible solutions to the end user.


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

#189 2015-11-21 18:36:53

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,271
Website

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

Very accurate, We know that S11 works very hard with conky, I myself have come to #! years ago first for his conky works then for the distro and then stayed for the community smile

...but I thought anyway, maybe wrong.

Perhaps it is just a matter of code preferences as you explained (loss somewhere, profit elsewhere).
S11 may tell us what he think about CPU usage, better i'm waiting to read his interpretation.


Tumbleweed | KDE Plasma

Offline

#190 2015-11-21 19:11:09

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

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

Hi Guys ... I'll bet some $$ on the png's being a "part" of the problem.  But not calling them so much as resizing them.  Conky is resizing every png on the fly ... IF my forgetter isn't failing me.

Because as it sits, the conky 'should' only be CPU hungry when it has to access an 'execi' call then for the next xxx seconds nothing but ${image ...} is every time it updates.

Teo, change the update_interval to 3, 5, 10, and see what happens, if that lowers your 23% it's the image resizing calls.

@Nili & Teo - Thank you for the kind words.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#191 2015-11-21 19:42:45

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

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

Hey Guys ... check out the new Accuweather-Time-Date-Computer thingy!  ]:D


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#192 2015-11-21 20:19:46

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

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

I copied the image directory and resized the images to 50x30 (used in MEGA conky).  I didn't see much of an improvement when I removed all the " -p 50x30" section of the image calls.

But I did see a noticeable improvement when I added a 0 to the 1: "update_interval 10"

Which only goes to show the good old 0 is something after all!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#193 2015-11-21 20:55:54

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 1,271
Website

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

Thanks for explaining or changes you made, S11

The awesome clock looks pretty fine just like how it was a year ago.

Glad to see that conky back smile


Tumbleweed | KDE Plasma

Offline

#194 2015-11-22 10:55:25

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

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

Yep, changing the update interval to 10 fixed it.

...although I don't see a reason why the update_interval shouldn't be something like 300 or 600...


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

#195 2015-11-22 12:27:41

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

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

^ Well that's a thought.  In fact since it has no calls that require more frequent displaly, ie: time, cpu% temps, etc. it's an EXCELLENT idea.
Change:

own_window_hints below,skip_taskbar,skip_pager #,undecorated

to:

own_window_hints skip_taskbar,skip_pager

and it's on top of apps when it opens very similar to a text editor or other GUI app.

And if one turns OFF transparency and makes the background colour a light slate grey, it looks quite nice!

own_window_transparent no #yes
own_window_colour 778899

EDIT: With an extra bonus: The moon images look like transparent backgrounds.  MUCH nicer!

Here it is set to "update_interval 600" and the changes indicated above:
2015_11_22_09_14_18_Scrot11.jpg
I really like the new look. AND my CPU usage in my "system" conky tells me it's almost not there. 
2015_11_22_09_20_47_Scrot11.png
From a Mega conky that - "Who'd want to use it" to something quite plausible for any machine.

Which only goes to prove: Two heads are always better than one.  wink
Thank you Teo, thank you.

Last edited by Sector11 (2015-11-22 12:31:50)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#196 2015-11-22 15:08:12

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

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

Anytime buddy!


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

#197 2015-11-22 23:02:17

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

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

»»»»» Conky v1.90 «««««

1b1 Accuweather - Images - 1b1_29-10-15

There's a new kid on the block.  A simple clock, a simple today weather and a small bit of system info:
2015_11_22_16_41_03_Scrot11.png 2015_11_22_16_42_16_Scrot11.png 2015_11_22_16_42_58_Scrot11.png

2015_11_22_16_43_23_Scrot11.png 2015_11_22_16_45_08_Scrot11.png 2015_11_22_16_45_33_Scrot11.png


A minor edit, forgot CPU usage: 2015_11_22_19_46_22_Scrot11.jpg
The conky:

# pkill -xf "conky -q -c /media/5/Conky/S11_Star_Clock_2.conky" &
###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_hints skip_taskbar,skip_pager
own_window_colour 778899 #119 136 153	LightSlateGray
own_window_class Conky
own_window_title S11 Star-Weather Clock - LUA

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

minimum_size 400 210	## width, height
maximum_width 400		## width

gap_x 20	### l|r
gap_y 20	### u|d

alignment tr
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Monofur:bold:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

default_color DCDCDC # Gainsboro
# default_color C0C0C0 # Silver
color0 666666 #BunsenFlame Grey
#color1 C0C0C0 # Silver
#color1 D3D3D3 #LightGrey
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  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

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

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

# change GiB to G and MiB to M
short_units yes

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


# Width for $top name value (default 15 characters)
top_name_width 6

##############################################  End Miscellaneous Section  ###

### The LUA Clock ###
lua_load /media/5/Conky/LUA/star_clock_2.lua ## yellow hands, red second hand
lua_draw_hook_pre main

update_interval 1

TEXT
${texeci 1500 bash /media/5/Conky/1b1_accuweather_images/1b1}\
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 75,020}\
${image /media/5/Conky/images/3dconky/star-clock-2.png -p 105,11}\
${alignc}${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs}

${voffset -5}${goto 120}${platform f71882fg.2560 temp 1}° CPU${goto 245}Board ${platform f71882fg.2560 temp 2}°${voffset 5}
${voffset -5}${goto 110}${hddtemp /dev/sda}° HDD ${goto 255}GPU   ${nvidia temp}°${voffset 5}
${voffset -5}${goto 040}TotUp ${totalup eth0} KB ${goto 270}NetUp ${upspeedf eth0} KB${voffset 5}
${voffset -5}${goto 040}TotDn ${totaldown eth0} KB ${goto 280}NetDn ${downspeedf eth0} KB${voffset 5}
${goto 10}${time %a, %d %b %y}${goto 300}${uptime}

${goto 060}/root  ${fs_size /}${goto 270}/home  ${fs_size /home}
${goto 060}Used   ${fs_used_perc /}%${goto 270}Used   ${fs_used_perc /home}%
${goto 060}Free   ${fs_free /}${goto 270}Free   ${fs_free /home}
${goto 060}${color7}Now ${execi 90 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${goto 120}High ${execi 90 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 245}UVI ${execi 90 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond} out of 11
${goto 060}±±± ${execi 90 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${goto 120}Low  ${execi 90 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${goto 245}BAR ${execi 90 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color}
${alignc}${alignc}% CPUA ${color}${if_match ${cpu cpu0}<10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${color9}${cpu cpu0}${endif}${endif}\
${color} CPU1 ${color5}${if_match ${cpu cpu1}<10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100} ${cpu cpu1}\
${else}${color9}${cpu cpu1}${endif}${endif}\
${color} CPU2 ${color5}${if_match ${cpu cpu2}<10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100} ${cpu cpu2}\
${else}${color9}${cpu cpu2}${endif}${endif}\
${color} CPU3 ${color5}${if_match ${cpu cpu3}<10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100} ${cpu cpu3}\
${else}${color9}${cpu cpu3}${endif}${endif}${color}
${alignc}${kernel}

And you'll want this too, the centre piece: star-clock-2.png


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#198 2015-11-23 10:17:48

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

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

Great job Yoda Fantastic   ]:D  ]:D


Nothing happens by chance

Offline

#199 2015-11-23 17:46:09

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

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

Nice one S11 (Yoda I mean :8)


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

#200 2015-11-23 19:02:12

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

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

heheheheh
2015_11_23_15_56_04_Scrot11.jpg

It's a conky:
2015_11_23_16_01_06_Scrot11.jpg

... slow day today!

Thanks Teo.

EDIT:  As you see, mine has been tweaked a little bit.

Last edited by Sector11 (2015-11-23 19:03:26)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB