Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps
18 players, bravo ! Nobody will stop you ?! ![]()
Last edited by wlourf (2011-10-10 07:01:51)
CrunchBang Linux Forums » Tips, Tricks & Scripts » How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps
18 players, bravo ! Nobody will stop you ?! ![]()
Last edited by wlourf (2011-10-10 07:01:51)
OH MY! That's ... jaw dropping. I have a hard time trying to remember when I challenged you to do this, but I'm glad I did.
Excellent work VastOne - pure brilliance!
You are a very bad bad influence. jaw dropping indeed.
Nice work VastOne.
Last edited by BoredOOMM (2011-10-12 05:31:20)
Sector11 wrote:OH MY! That's ... jaw dropping. I have a hard time trying to remember when I challenged you to do this, but I'm glad I did.
Excellent work VastOne - pure brilliance!
You are a very bad bad influence. jaw dropping indeed.
Nice work VastOne.
Thank you bored... Need anything, let me know...
Edit - 13 October 2011 Changed the method of starting mpDris in the instructions
Edit - 16 October 2011 - Changed all bash scripts with new functions to copy the cover file one time .. thanks xaos52!! - Grab the latest archive from the same link to capture these changes
Edit - 16 October 2011 - Changed the mpd method of getting the cover thanks to a python change ... Thanks wlourf!! - Grab the latest archive from the same link to capture these changes
HELP!
First...thank you for this, it is awesome! However...
I am using Clementine and have the files in ~/musictools/... (I have changed the files to reflect this location, I hope!)
When I run the launcher everything works (see sreenie) except the cover art and this error is thrown (home directory removed from beginning of line
):
/musictools/conky/conky-music/cover/getcover_sphere.sh: line 96: convert: command not foundAgain...much thanks to VastOne for the HowTo and to any who can help me get it working.
HELP!
First...thank you for this, it is awesome! However...
I am using Clementine and have the files in ~/musictools/... (I have changed the files to reflect this location, I hope!)
When I run the launcher everything works (see sreenie) except the cover art and this error is thrown (home directory removed from beginning of line
):
/musictools/conky/conky-music/cover/getcover_sphere.sh: line 96: convert: command not foundAgain...much thanks to VastOne for the HowTo and to any who can help me get it working.
Did you change this:
# Temp directory must be full path.
tempdir="$HOME/conky/conky-music/cover/"
tempfile="${tempdir}nowplaying"in $HOME/musictools/conky/conky-music/cover/getcover_sphere.sh
to
# Temp directory must be full path.
tempdir="$HOME/musictools/conky/conky-music/cover/"
tempfile="${tempdir}nowplaying"HELP!
First...thank you for this, it is awesome! However...
I am using Clementine and have the files in ~/musictools/... (I have changed the files to reflect this location, I hope!)
When I run the launcher everything works (see sreenie) except the cover art and this error is thrown (home directory removed from beginning of line
):
/musictools/conky/conky-music/cover/getcover_sphere.sh: line 96: convert: command not foundAgain...much thanks to VastOne for the HowTo and to any who can help me get it working.
Hi DrakarNoir!
In my/the tar version of getcover_sphere.sh the line that starts the convert process is line 94 but the error says yours is line 96..
And as Sector11 pointed out, there is a line that needs to be addressed if you have not already done so..
Very nice catch Sector11 .... ![]()
The real issue is imagemagick is what convert comes from and is needed. I was not aware of this.
sudo apt-get install imagemagickwill solve this problem. It is a very small and powerful imaging tool
I am still concerned about the differences in line numbers in the version of getcover_sphere.sh you have...
If you have made changes that is no problem!
First .. Thank you for reporting this... I will update the How To to reflect that ImageMagick is needed..
Next... Thank you for the kind words... It has been a lot of fun doing this and I am glad to see someone using it
Edit - 17 October 2011 - Added ImageMagick requirements
Thanks to DrakarNoir for the heads up that ImageMagick is needed for the convert process in the LUA scripts
sudo apt-get install imagemagickDid you change this:
# Temp directory must be full path. tempdir="$HOME/conky/conky-music/cover/" tempfile="${tempdir}nowplaying"in $HOME/musictools/conky/conky-music/cover/getcover_sphere.sh
to
# Temp directory must be full path. tempdir="$HOME/musictools/conky/conky-music/cover/" tempfile="${tempdir}nowplaying"
Sector11, Yes I changed that line, thank you for asking, it makes me tripple check myself.
I am still concerned about the differences in line numbers in the version of getcover_sphere.sh you have...
If you have made changes that is no problem!
VastOne, thank you for your concern. The numbering difference was due to a non-programmer, me
, attempting to hammer through the problem. I inserted "other possible" commands based upon my other music conky (using conkyClementine) to see if it would work. I had those lines commented out but neglected to remove them before sending the Help request. They have subsequently been removed.
The real issue is imagemagick is what convert comes from and is needed. I was not aware of this.
sudo apt-get install imagemagickwill solve this problem. It is a very small and powerful imaging tool
Again, VastOne, thank you for the heads up on this. Installed imagemagick and all is well! (see screenie)
This conky fits nicely with my clock conky. This post: http://crunchbanglinux.org/forums/post/143405/#p143405
Now to work on a calendar idea I have and get the remaining conkys into rings!
Much thanks to both of you, you are true conkyGuru's! ![]()
Last edited by DrakarNoir (2011-10-18 14:04:29)
Very cool DrakarNoir - Good luck with the rest if your Rings Quest... hmmm that sounds like a movie...
That looks awesome! ![]()
Very cool DrakarNoir - ...hmmm that sounds like a movie...
That looks awesome!
And I think I've seen it!
Good luck with the rest if your Rings Quest...
Thanks for the good wishes. I am not a programmer by any measure of the word but I like to tinker! I am seeing a ring calendar with the daily weather in the center (based on this music conky!) and two rings, Month and day, much like the rings of the music conky. And, perhaps the weeks forcast arranged around the perimeter. Maybe too cluttered, still mulling it over!
Again, thanks for the help!
VastOne wrote:Very cool DrakarNoir - ...hmmm that sounds like a movie...
That looks awesome!
And I think I've seen it!
VastOne wrote:Good luck with the rest if your Rings Quest...
Thanks for the good wishes. I am not a programmer by any measure of the word but I like to tinker! I am seeing a ring calendar with the daily weather in the center (based on this music conky!) and two rings, Month and day, much like the rings of the music conky. And, perhaps the weeks forcast arranged around the perimeter. Maybe too cluttered, still mulling it over!
Again, thanks for the help!
@ DrakarNoir - NICE STUFF!!!!!!!!!!!!!!!!
COMING TO A CONKY NEAR YOU!
wlourf, kaivalagi, vastOne and DrakaNoir
Starring in
The Music of the Rings Quest
![]()
Last edited by Sector11 (2011-10-18 15:58:06)
Oh boy.. time to get some popcorn and my boots on... getting deep in here... ![]()
I notice from the original post that VastOne has not tested this with amarok. Has anyone?
I have implemented the LUA sphere method as per the instructions, and for vlc it works. From there making it work for amarok should be a matter simply of commenting vlc out and amarok in in both the getcover_sphere.sh and player.lua files.
However, this doesn't seem to work. If I do so I get the following
$ rm: cannot remove `/home/ian/conky/conky-music/cover/cover_sphere.png': No such file or directory
Conky: desktop window (5b) is root window
Conky: window type - normal
Conky: drawing to created window (0x1800002)
Conky: drawing to double buffer
sh: dcop: not found
sh: dcop: not found
Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value)
/home/ian/conky/conky-music/cover/getcover_sphere.sh: line 39: dcop: command not found
Conky: Unable to load image '/home/ian/conky/conky-music/cover/cover_sphere.png'
sh: dcop: not found
sh: dcop: not found
Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value)
sh: dcop: not found
sh: dcop: not found
Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value)
sh: dcop: not found
sh: dcop: not found
Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value)
sh: dcop: not found
sh: dcop: not foundetc., and nothing appears in the conky window.
Has anyone had this script work with amarok (2)? Can anyone tell me what's preventing the script from working for me?
I notice from the original post that VastOne has not tested this with amarok. Has anyone?
I have implemented the LUA sphere method as per the instructions, and for vlc it works. From there making it work for amarok should be a matter simply of commenting vlc out and amarok in in both the getcover_sphere.sh and player.lua files.
However, this doesn't seem to work. If I do so I get the following
$ rm: cannot remove `/home/ian/conky/conky-music/cover/cover_sphere.png': No such file or directory Conky: desktop window (5b) is root window Conky: window type - normal Conky: drawing to created window (0x1800002) Conky: drawing to double buffer sh: dcop: not found sh: dcop: not found Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value) /home/ian/conky/conky-music/cover/getcover_sphere.sh: line 39: dcop: command not found Conky: Unable to load image '/home/ian/conky/conky-music/cover/cover_sphere.png' sh: dcop: not found sh: dcop: not found Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value) sh: dcop: not found sh: dcop: not found Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value) sh: dcop: not found sh: dcop: not found Conky: llua_do_call: function conky_main execution failed: /home/ian/conky/conky-music/player.lua:70: attempt to perform arithmetic on global 'amarok_ct' (a nil value) sh: dcop: not found sh: dcop: not foundetc., and nothing appears in the conky window.
Has anyone had this script work with amarok (2)? Can anyone tell me what's preventing the script from working for me?
Looking at it... I am sure that Amarok 2 uses different command functions than I did to display..
Let me load Amarok 2 and fix this... It needs to be done.. When I have it done, I will post to you and fix the How To
Thanks
Last edited by VastOne (2011-10-22 02:30:10)
Fantastic, I look forward to it
Fantastic, I look forward to it
Loaded Amarok 2 and its 6 millions kde hooks
and it looks like an easy one.. I should have it done in an hour or so
I spoke too soon...
Any track I try to play, Amarok2 closes with a seg fault...
Will need more time
Edit - 19 October 2011 - Added Amarok2 at the request of convergent. This replaces the original Amarok - Grab the latest archive from the same link to capture these changes - download musictools.tar.gz
Files added:
conkyAmarok.py
conkyAmarok.template
.conkyamarokrc
amarok.png
Updated files
player.lua
getcover_sphere.sh
Last edited by VastOne (2011-10-20 00:45:11)
Fantastic, I look forward to it
Done and thank you for the request...
Updated the file at all locations
VastOne wrote:Very cool DrakarNoir - ...hmmm that sounds like a movie...
That looks awesome!
And I think I've seen it!
VastOne wrote:Good luck with the rest if your Rings Quest...
Thanks for the good wishes. I am not a programmer by any measure of the word but I like to tinker! I am seeing a ring calendar with the daily weather in the center (based on this music conky!) and two rings, Month and day, much like the rings of the music conky. And, perhaps the weeks forcast arranged around the perimeter. Maybe too cluttered, still mulling it over!
Again, thanks for the help!
What distro are you running?
I just did a fresh install of #! and see that Imagemagick is installed by default..
Just curious..
What distro are you running?
I just did a fresh install of #! and see that Imagemagick is installed by default..
Just curious..
I am running a heavily modified iQuinx. I cannot remember if imagemagick is installed in regular Ubuntu by default or not. However, I am thinking of installing Oneric (w/o the crappy Unity interface
) if I do I will report back.
Question, while running the Music conky (this one or my original) I am getting a heavy hit to my cpu. Any ideas?
VastOne wrote:What distro are you running?
I just did a fresh install of #! and see that Imagemagick is installed by default..
Just curious..
I am running a heavily modified iQuinx. I cannot remember if imagemagick is installed in regular Ubuntu by default or not. However, I am thinking of installing Oneric (w/o the crappy Unity interface
) if I do I will report back.
Question, while running the Music conky (this one or my original) I am getting a heavy hit to my cpu. Any ideas?
Thanks Noir...
I run and have run hundreds of different conky scripts and have not seen a cpu spike, including LUA scripts... I seem to recall there is a memory issue with LUA and a version of conky that was intensive either for memory or cpu
I run Wheezy/Testing Debian and the version of Conky I am using is 1.8.1
I would wait for Sector-san to respond to this, he may have a better scope..
In the meantime, you might want to post the question along with your conky rc over in the Conky thread?
Posts [ 51 to 75 of 358 ]
CrunchBang Linux Forums » Tips, Tricks & Scripts » How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.