You are not logged in.
I share the work of arpinux Always good to have Inspirations
Thanks for all his work in CrunchBang #! FR
Offline
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
^ Do you mean Teide in the Canary Islands?
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
^ Do you mean Teide in the Canary Islands?
![]()
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
Offline
@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
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
^ 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
^ 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
^
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
@ 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
Offline
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.
^
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
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
Offline
@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
@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
@Sector11
Well spotted
I had cut off my conky code -corrected in the above post.
Void Linux;
http://www.voidlinux.eu/
Offline
@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
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
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.
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
@Sector11
Well spotted![]()
I had cut off my conky code -corrected in the above post.Void Linux;
http://www.voidlinux.eu/
Thank you and thank you.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
@Wodanford nice looking setup.. I like the integration between conky and background.
Peachy's Wun Lua / Peachy's v9000 / Conky PitStop / My DA Page
........
Offline
@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...
@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
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
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