SEARCH

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

You are not logged in.

#4276 2012-12-05 22:22:28

ragamatrix
#! CrunchBanger
From: Horgen Switzerland
Registered: 2012-12-05
Posts: 236

Re: The New Monster Conky Thread

Here's another way to display picture of the day in conky.I put convert effect on it changes are possible.
Call the picture witch is in /tmp folder.
imageday_nasa.png
image day
modifs and feedback are welcome.
nasa-day.sh:

#!/bin/bash

test=`curl -s http://www.nasa.gov/rss/image_of_the_day.rss | grep 'url=' | sed 's/^.*url="//' | sed 's/".*$//'` && wget -O /tmp/image_nasa.jpg $test
convert /tmp/image_nasa.jpg  /tmp/image_nasa.png
##aqua effect
convert /tmp/image_nasa.png -alpha off -fill white -colorize 100% \
     -draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \
     \( +clone -flip \) -compose Multiply -composite \
     \( +clone -flop \) -compose Multiply -composite \
     -background gray60 -alpha Shape    /tmp/thumbnail_mask.png
###aqua effect2
convert /tmp/thumbnail_mask.png -bordercolor None -border 1x1 \
          -alpha Extract -blur 0x10  -shade 130x30 -alpha On \
          -background gray60 -alpha background -auto-level \
          -function polynomial  3.5,-5.05,2.05,0.3 \
          \( +clone -alpha extract  -blur 0x2 \) \
          -channel RGB -compose multiply -composite \
          +channel +compose -chop 1x1 \
          /tmp/thumbnail_lighting.png
##final
convert /tmp/image_nasa.png -alpha Set /tmp/thumbnail_lighting.png \
          \( -clone 0,1 -alpha Opaque -compose Hardlight -composite \) \
          -delete 0 -compose In -composite \
          /tmp/imageday_nasa.png

rm /tmp/thumbnail_lighting.png ;rm /tmp/thumbnail_mask.png 

Offline

Be excellent to each other!

#4277 2012-12-05 22:49:20

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: The New Monster Conky Thread

@dk75 sorry bad couple of days probably should have waited till today to work on this.

ok here is exactly what i am trying to do, i have a cpu table gives me the last 10 cpu values. this is nice but i need every other value to be a negative number as it travels down the line. I now think that this should be handled inside the table not outside as i was planing. but before we get to that, i still need to get one of the switches to work. the 1 or -1 that is put out by this is so that i can multiply the cpu value by it getting the negative or positive values i need

I reread your post and have changed them, I now get a reading like this from terminal:
1
-1
----
-1
1
----
-1
1
and so on stuck with the alt_switch and alt_switch2 at -1 and 1
also I took out the ends you call extra, they aren't. without the ends that were taken out the whole thing freaked out and gave all kinds of errors.

if updates == 6 then alt_switch=1 end
if updates > 6 then if alt_switch2 == -1 then alt_switch=-1 end end
if alt_switch2 == 1 then alt_switch=-1 end
if updates >= 6 then if alt_switch == 1 then alt_switch2=-1 end end
if alt_switch == -1 then alt_switch2=1 end
print("---------")
print(alt_switch)
print(alt_switch2)

You can find my work here

Make everything ok button

Offline

#4278 2012-12-05 23:37:04

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: The New Monster Conky Thread

still don't understand why old CPU values must be negative to travel down the table...

Hard way, you add new values at the end of table making it bigger every loop. You could rearrange it if it hits max set capacity. A lot of coding but still don't see needs for any arithmetics with ever changing values of some switches.

Or you can make it easy way and insert any new CPU values before first value in a table and delete last value from table if it hits max set capacity. Easy:

table.insert(cputable, 1, cpuvalue)
while #cputable>maxtablesize do table.remove(cputable, #cputable) end

then cputable[1] will be always newest CPU value, and you can call all values like

for i in pairs(cputable) do print(cputable[i]) end

If for some reason that you didn't clarified you really need all older than newest cpuvalue to be negative then:

table.insert(cputable, 1, cpuvalue)
if #cputable > 1 and cputable[2] > 0 then cputable[2]=cputable[2]*-1 end
while #cputable > maxtablesize do table.remove(cputable, #cputable) end

If for some reason you need every even update the cpuvalue to be positive and every odd update the cpuvalue to be negative then:

if updates%2 ~= 0 then cpuvalue=cpuvalue*-1 end
table.insert(cputable, 1, cpuvalue)
while #cputable > maxtablesize do table.remove(cputable, #cputable) end

Last edited by dk75 (2012-12-05 23:50:42)


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#4279 2012-12-05 23:50:22

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: The New Monster Conky Thread

@dk75 they don't have to in order to move down the table. i want some of them to be negative, so that when i put them in to start_y+((end_y/max_value)*cpu_value) it will either go up or down, which is controlled by one of the switches multiply the cpu value by 1 or -1

this isn't so that it works right it's so that it looks right when i draw it in conky


update:
nevermind, found a different way to do it and it is working beautiful

Last edited by ansem_of_nexus (2012-12-06 06:10:48)


You can find my work here

Make everything ok button

Offline

#4280 2012-12-06 09:25:38

ragamatrix
#! CrunchBanger
From: Horgen Switzerland
Registered: 2012-12-05
Posts: 236

Re: The New Monster Conky Thread

I've found 2 sat maps to display in conky wich this one is updated every hours.I'll post script and conky if you find it interessant.(sorry for my English)us-sat-map
Do you think it's possible to display the text explanation of the picture of the day in these script ?

Offline

#4281 2012-12-06 10:19:18

ragamatrix
#! CrunchBanger
From: Horgen Switzerland
Registered: 2012-12-05
Posts: 236

Re: The New Monster Conky Thread

Another thing; this script take a random image from this website nasa_pictures_archive
And do a dynamic wallpaper, I'd like to use this script to display random nasa pictures with explanations in conky...Do you think it's possible ?
script_link
I've modify it to only display images in a folder like this :

system(" ~/wallpapers/$img$ext");

and now i'd like to call it in conky but the pictures change of name because it's "randomized"  I don't know how ? Thanks for help if you have understood my strange English. smile

Offline

#4282 2012-12-06 10:42:22

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: The New Monster Conky Thread

@ragamatrix

what should i do to remove  the alpha-effect?

Last edited by lionhead (2012-12-06 11:27:35)

Offline

#4283 2012-12-06 12:36:44

ragamatrix
#! CrunchBanger
From: Horgen Switzerland
Registered: 2012-12-05
Posts: 236

Re: The New Monster Conky Thread

lionhead wrote:

@ragamatrix

what should i do to remove  the alpha-effect?

you just want the picture with no effect around?

Offline

#4284 2012-12-06 13:37:30

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: The New Monster Conky Thread

the corners could be round. but no alpha-effekt.

Offline

#4285 2012-12-06 14:46:07

ragamatrix
#! CrunchBanger
From: Horgen Switzerland
Registered: 2012-12-05
Posts: 236

Re: The New Monster Conky Thread

well if you want to modify the effects in the script I advice you this website witch explain things with convert and imagemagick; I don't find the acqua effect and alpha ones explanations....I'm searching...
imagemagick_convert_menu

I think I've founded :
Lighting Mask Technique:lighting mask tech
Just use the first effect to have a background with rounded corners.
That was the effects I did in this script :
aqua_effect

Last edited by ragamatrix (2012-12-06 14:56:53)

Offline

#4286 2012-12-06 20:23:21

ragamatrix
#! CrunchBanger
From: Horgen Switzerland
Registered: 2012-12-05
Posts: 236

Re: The New Monster Conky Thread

Hi all I've just finished the "GlobeWeatherSatConky" for usa
GWSUS
Conkygwsus:

# — Conky settings — #

background yes

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0


# — Window specifications — #

#own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 400 400 #Taille minimum (px) ; largeur / hauteur
maximum_width 400

alignment ml

gap_x 60
gap_y 10



# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont LCDMono2:size=8
xftalpha 1.0

default_color FFFFFF

uppercase no
use_spacer right



TEXT


${execi 1200 /home/climatix/.conky/script/gwsus.sh}
${image /tmp/sphere_goes_enam_1070_100.png -p 15,15 -s 380x380 -n}

gwsus.sh:

#!/bin/bash
###Script de sphérisation carte satellite pour les Etats-Unis  		  ## http://weather.msfc.nasa.gov/GOES/ICG13-09312012339.jpg ##
									  ## http://www.meteo-mc.fr/dedie/Images/sat/satireu1.gif
									  ## http://weather.rap.ucar.edu/satellite/g13.2012339.1645_US_vis.jpg
									  ## http://www.meteo.gc.ca/data/satellite/goes_enam_1070_100.jpg

##--[[test=`curl -s http://weather.msfc.nasa.gov/GOES/goeseastconusir.html | grep -m 1 'GOES-E CONUS" TYPE=' | sed -e 's/^.*SRC="//' | sed -e 's/".*$//' | sed 's/^/http:\/\/weather\.msfc\.nasa\.gov/'` && wget -O /tmp/gwsus.jpg $test---]##

wget  -q -O  /tmp/goes_enam_1070_100.jpg "http://www.meteo.gc.ca/data/satellite/goes_enam_1070_100.jpg"
									  
convert /tmp/goes_enam_1070_100.jpg -resize 450x450 /tmp/goes_enam_1070_100.png 

convert /tmp/goes_enam_1070_100.png  -filter Lanczos -crop  380x380+0+45\! /tmp/goes_enam_1070_100.png

#creation du masque 
convert -size 380x380 xc:black -fill white -draw 'circle 189.5,189.5 189.5,0'   /tmp/masque.png

convert -size 380x380 xc:  -channel R  -fx 'yy=(j+.5)/h-.5; (i/w-.5)/(sqrt(1-4*yy^2))+.5' \
-separate  +channel     /tmp/sphere_lut.png

convert /tmp/masque.png \
 \( +clone -blur 0x20 -shade 110x21.7 -contrast-stretch 0% \
 +sigmoidal-contrast 6x50% -fill grey50 -colorize 10%  \) \
 -composite /tmp/overlay.png



convert /tmp/goes_enam_1070_100.png -resize 380x380   /tmp/sphere_lut.png   -fx 'p{ v*w, j }' \
/tmp/overlay.png   -compose HardLight  -composite \
/tmp/masque.png -alpha off -compose CopyOpacity -composite \
/tmp/sphere_goes_enam_1070_100.png


rm /tmp/overlay.png ;rm /tmp/masque.png ;rm /tmp/sphere_lut.png

Enjoy !

Last edited by ragamatrix (2012-12-06 20:28:47)

Offline

#4287 2012-12-06 21:56:01

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: The New Monster Conky Thread

You could want to run gwsus.sh script from ${texeci} - it make new tread, separate from Conky one, so Conky won't stall if there would be some connection problem:

${texeci 1200 /home/climatix/.conky/script/gwsus.sh}

Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#4288 2012-12-08 00:49:17

tedbell
#! Junkie
Registered: 2012-05-08
Posts: 311

Re: The New Monster Conky Thread

Is anyone else having trouble with accuweather?

Offline

#4289 2012-12-08 04:51:37

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: The New Monster Conky Thread

tedbell wrote:

Is anyone else having trouble with accuweather?

Working fine for me. Im using Teo's accuweather script

Offline

#4290 2012-12-08 04:52:58

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: The New Monster Conky Thread

dk75 wrote:

You could want to run gwsus.sh script from ${texeci} - it make new tread, separate from Conky one, so Conky won't stall if there would be some connection problem:

${texeci 1200 /home/climatix/.conky/script/gwsus.sh}

Thank you dk75 I was having that exact issue and that seemed to have fixed it for me also.

Offline

#4291 2012-12-08 17:32:01

opn1
New Member
Registered: 2012-12-07
Posts: 3

Re: The New Monster Conky Thread

Horizontal Conky Bar

tZ21jeQ

own_window yes 
own_window_colour 262729
own_window_transparent no 
own_window_type normal 
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right 
use_xft yes
#font snap-7
xftfont silkscreen:size=6
xftalpha 1
text_buffer_size 2048 
alignment bottom
gap_x 0 
gap_y 3

# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1.0
stippled_borders 0
minimum_size 1366 3
maximum_width 1366 2
border_margin 3
border_width 0
default_color 5e7175
# --- Text --- #
draw_outline no
draw_borders no
#font -*-profont-*-*-*-11-*-*-*-*-*-*-* 
uppercase no
draw_shades no 

TEXT
${alignc}${color aeb492}CrunchBang Linux ${color d3d3d3}Debian squeeze | ${color aeb492}Machine${color d3d3d3} $nodename | ${color}${color aeb492}Kernel${color d3d3d3} $kernel | ${color aeb492}Ram ${color d3d3d3}${mem} | ${color aeb492}Home ${color e0e0e0}${font}${fs_free /} | ${color aeb492}Uptime ${color d3d3d3} $uptime | ${color aeb492}Cpu ${color d3d3d3}${execpi 5 sensors | grep "CPU T" | awk '{print $3}' | cut -c2-3}°C, ${cpu}%

links:
http://uriel1998.deviantart.com/art/Hor … -188947042

Last edited by opn1 (2012-12-08 23:04:03)

Offline

#4292 2012-12-09 07:55:55

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: The New Monster Conky Thread

Been absolutely insane at work but i finally got a little time tonight to change things up a bit

tZ21pbQ

tZ21pbA

Offline

#4293 2012-12-10 03:28:00

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: The New Monster Conky Thread

i had a few spare minutes today so I made this
Screenshot_at_2012_12_09_21_20_01.jpg
needs a bit of tweaking before i'm finished

Offline

#4294 2012-12-10 05:06:19

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: The New Monster Conky Thread

mrpeachy wrote:

i had a few spare minutes today so I made this
http://s7.postimage.org/ie5ar6jon/Screenshot_at_2012_12_09_21_20_01.jpg
needs a bit of tweaking before i'm finished

WOW! Love it mrpeachy! As always fabulous job buddy!

Offline

#4295 2012-12-10 10:33:24

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: The New Monster Conky Thread

mrpeachy wrote:

i had a few spare minutes today so I made this
http://s7.postimage.org/ie5ar6jon/Screenshot_at_2012_12_09_21_20_01.jpg
needs a bit of tweaking before i'm finished

i can not work until you finished your tweaking. i really like this clock and would integrate it into my conky!

Offline

#4296 2012-12-10 10:41:47

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,056
Website

Re: The New Monster Conky Thread

mrpeachy wrote:

i had a few spare minutes today so I made this
http://s7.postimage.org/ie5ar6jon/Screenshot_at_2012_12_09_21_20_01.jpg
needs a bit of tweaking before i'm finished

Yipes! 

Now that's nice!

Does it come in a 24HR version?  Hey I'm just curious!


To #! or not to #!?  That is the question! | #! Forum Moderator
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OTHCG'er
StartPage -  protect your privacy | IcyBlack | LinuxBBQ

Offline

#4297 2012-12-10 15:23:41

ragamatrix
#! CrunchBanger
From: Horgen Switzerland
Registered: 2012-12-05
Posts: 236

Re: The New Monster Conky Thread

Hi;
I've found a way to display nasa archive "picture of the day" in a conky slide show, with a perl script modified and a resize convert one...I must clean things but it's working.Changing every minutes or more if you want.
Carrefull of your eyes:
nasa_slide_show

Offline

#4298 2012-12-10 17:28:51

ansem_of_nexus
#! CrunchBanger
Registered: 2012-09-19
Posts: 234

Re: The New Monster Conky Thread

Sector11 wrote:
mrpeachy wrote:

i had a few spare minutes today so I made this
http://s7.postimage.org/ie5ar6jon/Screenshot_at_2012_12_09_21_20_01.jpg
needs a bit of tweaking before i'm finished

Yipes! 

Now that's nice!

Does it come in a 24HR version?  Hey I'm just curious!

Should just put a if statement that says something like if am then hours are 1-12 else if pm then hours are 13-00 end


You can find my work here

Make everything ok button

Offline

#4299 2012-12-10 19:44:10

mrpeachy
20% cooler
From: The Everfree Forest
Registered: 2009-11-08
Posts: 3,460

Re: The New Monster Conky Thread

^ thanks all smile

no 24 hour format yet, but should be easy to put in

however, i think its going to have to wait till ive recovered from this cold ive got sad

Offline

Help fund CrunchBang, donate to the project!

#4300 2012-12-10 19:47:12

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,056
Website

Re: The New Monster Conky Thread

ansem_of_nexus wrote:
Sector11 wrote:
mrpeachy wrote:

i had a few spare minutes today so I made this
http://s7.postimage.org/ie5ar6jon/Screenshot_at_2012_12_09_21_20_01.jpg
needs a bit of tweaking before i'm finished

Yipes! 

Now that's nice!

Does it come in a 24HR version?  Hey I'm just curious!

Should just put a if statement that says something like if am then hours are 1-12 else if pm then hours are 13-00 end

No that's just changing the numbers - still a 12 hour clock.

I mean like this:
abiTmDsH.jpg
On the left a 24 hour clock, on the right a 12 hour clock.  big_smile


To #! or not to #!?  That is the question! | #! Forum Moderator
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OTHCG'er
StartPage -  protect your privacy | IcyBlack | LinuxBBQ

Offline

Board footer

Powered by FluxBB

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

Debian Logo