SEARCH

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

You are not logged in.

#5976 2013-08-23 08:04:36

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

I share the work of arpinux Always good to have Inspirations
Thanks for all his work in CrunchBang #! FR

Arpinux Conky Work

Offline

Help fund CrunchBang, donate to the project!

#5977 2013-08-23 10:19:37

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

Re: Conky v1.9 Thread

is it possible to show the current weather status of mount teide in spain? i do not know a town near this mountain. only the coordinates. the telescope i'm using is on this mountain.

Offline

#5978 2013-08-23 10:43:17

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Conky v1.9 Thread

^ Do you mean Teide in the Canary Islands? wink
http://en.wikipedia.org/wiki/Teide
I have yet to experiment with Teo's scripts, but Wunderground is aware of Tenerife, if that helps.

Offline

#5979 2013-08-23 12:02:39

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

Re: Conky v1.9 Thread

pvsage wrote:

^ Do you mean Teide in the Canary Islands? wink
http://en.wikipedia.org/wiki/Teide
I have yet to experiment with Teo's scripts, but Wunderground is aware of Tenerife, if that helps.

yepp, teide in the canaray islands! the telescopes of slooh are there!

i think that i should try teo's scripts.

Offline

#5980 2013-08-23 12:04:35

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

^^ Santa Cruz de Tenerife - capitol city of the island - is available from accuweather and weather.com -

appears to work with Teo's scripts (weather.com anyway):

adb4CLkj.jpg

didn't check for a closer city.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5981 2013-08-23 12:09:58

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

@Sector11

#~~ lovelybacon.deviantart.com~~
     
     
    background no
    update_interval 1
     
    override_utf8_locale yes
     
    double_buffer yes
    no_buffers yes
     
    text_buffer_size 2048
    imlib_cache_size 0
     
     
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_class conky
    own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
    border_inner_margin 0
    border_outer_margin 0
    maximum_width 600
    minimum_size 350 450
     
     
    alignment br
    gap_x 50  #Vm380, Vr1238, Vl-40, Hr915, Hmr 780 Hbr 900 BR 1000
    gap_y 50  #Vb-520, Vt70 Ht-136, Hb-17, Hmr -240 BR -736
     
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders no
     
    use_xft yes
    xftfont Tamsyn:size=8
    xftalpha 0,1
     
    uppercase no
    ## 97A9B2
    default_color 9ea19d
    color1 BBBCBD
    color2 696C6B
    color3 525555
    color4 9ea19d
  
    TEXT
    ${offset -12}${voffset -2}${color}${kernel}${voffset 2}
    ${offset -12}${cpugraph cpu0 28,84 4E4F4D 3D3E40}${downspeedgraph eth0 28,100 3D3E40 2C2E32}${upspeedgraph eth0 28,100 2C2E32 1B1D25}
    ${offset -12}${voffset -2}${color1}cpu${offset 6}${color4}${hwmon 0 temp 1}  °C${offset 43}${color2}down${offset 63}${color3}up

    ${offset -24}${execi 60 ~/loungeradio.sh}
    
   
    ${image /home/neil/loungeradio.jpg -p 20,120 -s 300x300}
#!/bin/bash
    #pulling info from loung-radio.com for conky by nlinedesignz(at)web(dot)de 2013
     
    wget http://www.lounge-radio.com/code/pushed_files/now.html -O ~/loungeradio.html >/dev/null 2>&1 &&
     
    artist=$(awk '/id="artist"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
    album=$(awk '/id="album"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
    track=$(awk '/id="track"/{getline; print}' ~/loungeradio.html | sed "s/<div>\|<\/div>//g")
     
    wget "http://www.lounge-radio.com/code/pushed_files/$(awk '/id="covercontainer"/{print}' ~/loungeradio.html | sed -r 's/.*src="(.*)" width=.*/\1/')" -O ~/loungeradio.jpg >/dev/null 2>&1 &&
     
    #echo '${image ~/loungeradio.jpg -p 42,42 -s 123x123 }';
    echo 'Artist:' $artist;
    echo 'Track:'  $track;
    echo 'Album:'  $album;
     
    exit

Last edited by chameleon (2013-08-23 21:29:41)

Offline

#5982 2013-08-23 18:27:19

slyr114
Member
Registered: 2011-09-10
Posts: 39

Re: Conky v1.9 Thread

ive been googling for like an hour now and cannot find an answer to my question. How do i make conky display the name of the currently connected network be it wifi or wired? Like id want it to say Network: Linksys342 or Network: TedsWifi etc.

Offline

#5983 2013-08-23 18:53:51

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

^ I believe you want this.

wireless_essid 	(net) 	
    Wireless access point ESSID (Linux only)

ESSID is the technical name for the Network ID broadcast by a router so this should be what you want.

You would use it like this in a .conkyrc

${wireless_essid wlan0}

replacing "wlan0" with whatever your wireless interface is called on your system.

Offline

#5984 2013-08-23 18:56:54

slyr114
Member
Registered: 2011-09-10
Posts: 39

Re: Conky v1.9 Thread

arclance wrote:

^ I believe you want this.

wireless_essid 	(net) 	
    Wireless access point ESSID (Linux only)

ESSID is the technical name for the Network ID broadcast by a router so this should be what you want.

You would use it like this in a .conkyrc

${wireless_essid wlan0}

replacing "wlan0" with whatever your wireless interface is called on your system.

yes thank you so much! i could not find anyone else displaying their network name with conky so i guess no one else uses this command lol. Again thanks!

Offline

#5985 2013-08-23 18:59:16

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

^
for your wireless access point.

${wireless_essid <interface>}

I don't think there is conky setting for a wired network name; you would have to extract that info with another app and use something like awk to parse the info so conky could display it.

edit - what arclance said.  8o

Last edited by PackRat (2013-08-23 19:00:05)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#5986 2013-08-23 19:00:42

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

@ chameleon
One thing that someone who understands bash scripts more than I do should check is to make sure the "awk" command is not picking up something extra at the end of the strings it is parsing from the web page.
If it is doing that it could show up at the end of the string in conky.
I don't know enough bash to test that myself.

Offline

#5987 2013-08-23 20:08:17

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

@arclance
Interestingly, I decided to do a VOID 32bit install (so far been on 64bit) on a spare rig....
And lo and behold the weird symbols have changed as per screenshot;

2013_08_23_220914_1920x1080_scrot.jpg

tongue

Last edited by chameleon (2013-08-23 20:23:02)

Offline

#5988 2013-08-23 21:08:22

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

I saved the output of the script to a text file like this

lougeradio.sh >> /tmp/test.txt

and opened it in a text editor and found that PackRats idea about dos line endings was correct though the cause is not.
adflP2L4.png

PackRat wrote:

^
What text editor are you using?

Those squares are common if you used a Windows text editor (created by the enter key) to create the conkyrc and can be fixed with dos2unix or a linux text editor. Read back through your posts and doesn't seem to be the case for your issue.

I believe that there is something wrong with the awk and sed combo being used that is not striping these off the string it returns.
This is further supported by the fact that there is a lot of extra white space (four spaces) at the front of the strings that should not be there if this was working correctly.
I am not familiar with either awk or sed so someone else would need to fix that.

Last edited by arclance (2013-08-23 22:16:35)

Offline

#5989 2013-08-23 21:13:48

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

Thanks for the feedback - very interesting.
I am sure some 'script kiddy' would be able to manipulate this output.
I have had similar conky text formatting problems in the past and a solution is often found.
Actually, on 32bit I quite like the effect  wink

Offline

#5990 2013-08-23 21:16:48

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

chameleon wrote:

@Sector11

Thank's, - one question - two actually -

1. where in your conky are you calling the bash script for the music?
2. a VOID 32bit install ??


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5991 2013-08-23 21:21:32

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

Re: Conky v1.9 Thread

@chameleon
You should use this BASH script instead:

    #!/bin/bash
     
    wget http://www.lounge-radio.com/code/pushed_files/now.html -O /tmp/loungeradio.html >/dev/null 2>&1 &&
     
    artist=$(mawk -F"\"" '/id="artist"/{getline; gsub(/<div>|<\/div>/, "", $1); print $1}' /tmp/loungeradio.html)
    album=$(mawk -F"\"" '/id="album"/{getline; gsub(/<div>|<\/div>/, "", $1); print $1}' /tmp/loungeradio.html)
    track=$(mawk -F"\"" '/id="track"/{getline; gsub(/<div>|<\/div>/, "", $1); print $1}' /tmp/loungeradio.html)
     
    wget -q "http://www.lounge-radio.com/code/pushed_files/$(mawk -F"\"" '/id="covercontainer"/ {print $4}' /tmp/loungeradio.html)" -O - | convert - -scale 123x123 /tmp/loungeradio.png
     
    #echo '${image /tmp/loungeradio.png -p 42,42 -s 123x123 }';
    echo 'Artist:' $artist
    echo 'Track:'  $track
    echo 'Album:'  $album
     
    exit

Last edited by dk75 (2013-08-23 21:47:55)


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

#5992 2013-08-23 21:31:48

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

@Sector11
Well spotted  tongue
I had cut off my conky code  -corrected in the above post.

Void Linux;
http://www.voidlinux.eu/

Offline

#5993 2013-08-23 21:36:39

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

@dk75
Thanks for the input this results in a SIGTERM for conky;

[neil@void ~]$ killall conky
[neil@void ~]$ conky
Conky: desktop window (1e4) is root window
Conky: window type - override
Conky: drawing to created window (0x600001)
Conky: drawing to double buffer
/home/neil/loungeradio.sh: line 6: mawk: command not found
/home/neil/loungeradio.sh: line 7: mawk: command not found
/home/neil/loungeradio.sh: line 8: mawk: command not found
/home/neil/loungeradio.sh: line 10: mawk: command not found
Conky: Unable to load image '/home/neil/loungeradio.jpg'
^CConky: received SIGINT or SIGTERM to terminate. bye!

Offline

#5994 2013-08-23 21:49:50

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

Re: Conky v1.9 Thread

install "mawk" (lightweight AWK), and use updated script (same post) which converts every pictures to PNG


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

#5995 2013-08-23 22:06:48

Wodanford
Member
From: The Netherlands
Registered: 2013-08-19
Posts: 35

Re: Conky v1.9 Thread

Let me throw in some basic conky stuff as well. As a movie buff, I tried to blend the Tron: Legacy color scheme with a Terminator/Skynet-esque GUI. The hostname, IP, time and "mugshot" are objects, the rest plain text and images. Some graphs like disk I/O and cpu usage are on my wish list but I am not unhappy with the current result.

screenshotthumb.png

Source material:

The only thing that I changed in rc.xml is the name of the first desktop. The number of desktops is reduced to just one.

Edit1: I used spaces to get the Terminator series and model besides the image, instead of right over it. I guess this should be decently dealt with through columns, or perhaps even a fourth conky.
Edit2: Since I can't get my wlan working yet, I tethered the connection through my phone. If you want the first script to work for you, you might want to change usb0 to eth0 or wlan0.
Edit3: Updated file locations.

Last edited by Wodanford (2013-08-28 20:31:28)


Silverstone SUGO SG05BB-450 · Asus P8Z77-I Deluxe · Intel Core i5-3570K (lapped)
Intel HD Graphics 4000 ·Crucial 128GB m4 SSD · Crucial BX Tactical 8 GB DDR3-1600
Bluray drive (taken from an Acer Aspire 5940G) · iiyama ProLite B2776HDS
Logitech K230 · Razer Abyssus

Offline

#5996 2013-08-24 01:06:11

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

chameleon wrote:

@Sector11
Well spotted  tongue
I had cut off my conky code  -corrected in the above post.

Void Linux;
http://www.voidlinux.eu/

Thank you and thank you.  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#5997 2013-08-24 01:07:44

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,727

Re: Conky v1.9 Thread

@Wodanford nice looking setup.. I like the integration between conky and background.  big_smile

Offline

#5998 2013-08-24 06:06:44

Naik
#! Die Hard
From: Leipzig
Registered: 2012-11-16
Posts: 595

Re: Conky v1.9 Thread

@dk75: Thanks for "mawkin" the ugly code!
I have to admite that i had no idea about awk and sed, before starting this radio-projekt... tongue

@raggamtrix: i dont think this is possible! This script only works because there is this *now.html where all the info is put together in a nice fluffy html.
But: I personaly are listening to livestreams a lot to and if you get the stream-address and play them in moc you will have to advantages 1. the webplayer-thingy will be out of your way 2. if you are lucky title and artist can be shown in conky (${exec mocp -Q %title}), as provided by the streamhoster!
(this should work with mpd and xmms as well)


*kaum macht man es richtig, funktioniert es sofort*

Offline

#5999 2013-08-24 09:44:16

chameleon
UK #! Guy
From: Luxembourg
Registered: 2009-01-13
Posts: 719
Website

Re: Conky v1.9 Thread

@dk75
Thanks for the feedback.I am testing out a new distro at the moment (Void) and I have asked the developer to package mawk.
Keep you posted...

Offline

Be excellent to each other!

#6000 2013-08-24 16:18:10

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

Re: Conky v1.9 Thread

Just use AWK instead - it have even more options that MAWK.
Some scripts for AWK could not work with MAWK but every works with GAWK.


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

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.
Server: acrobat

Debian Logo