OK
Pages: 1 2 3
Rating:
4.77
Thread Listing » AWN Applets
Lastfm Player Applet - and a few questions.
#8948 by joni (0.5240) posted on 9:54am Tuesday, September 11th, 2007
( no avatar )
i realy like last.fm internet radio, but i don't like to have the qt-player on my gnome desktop, i also don't like to have my browser always open - so i started to work on a applet to play last.fm radio stations.
[Q]



its just some code i take form LastFMProxy, the gstreamer tutorial and the avatar-factory script thrown into the python hello world applet.
[Q]



after a few hours of coding (i'm actually quiete nooby with python), i got a working result, you can watch in this video i just made (i put a wooby beside to keep it from beeing boring): http://noplu.de/lastfmapplet.ogg
[Q]



i'm sorry, you can't hear, but my crappy screenrecord tool crashes if i enable sound recording.
[Q]



--------------------------
EDIT
--------------------------
[Q]



kremso did a few important improvements, please download his version, you find it on page2 - Post #15828
[Q]



good luck & have fun.
[Q]



*Edited at 7:17am, 11/07/07
Score: 0.98 points
Any particular reason?
#8949 by gilir (0.9999) posted on 10:03am Tuesday, September 11th, 2007
Wow, looks very cool :)
[Q]

Score: 0 points
Any particular reason?
#8951 by Hans Wurscht (0.1654) posted on 10:55am Tuesday, September 11th, 2007
( no avatar )
Wow!
[Q]



That's a really cool applet!
If we just could try it. ;)
[Q]



btw: My first post in this forum. :)
[Q]

Score: 0 points
Any particular reason?
#8952 by mosburger (1.0000) posted on 10:55am Tuesday, September 11th, 2007
Wow - That looks great! I like last.fm, too - can't wait 'til it's finished!
[Q]



I think GConf is where you want to store your user data, right?
[Q]
Score: 0 points
Any particular reason?
#8959 by plunn (1.0000) posted on 11:37am Tuesday, September 11th, 2007
joni said:
a) whats the best storage / place to store for personal informations i need in my applet (like username, encrypted password, maybe a history)?<br />b) as you can see in the video, the gtk.entry and gkt.combo isn't realy eyecandy, i can change the style and i will soon, but why can't awn handle this?
[Q]



Well... this came up when the Gmail screenlet entered the arena a week ago. I am not a dev but have been involved with malware and Windoze...
[Q]



The best solution must be to use Gnomekeyring/Pam
[Q]






But this solution isnt ready. So he changed the screenlet to using a scrambled password to avoid "clear text" password within a config file
[Q]



Nothing is safe today...
[Q]






But a LastFM account is maybe less worth then a lost/stolen
mail account ?
[Q]



*Edited at 11:38am, 09/11/07
Score: 0 points
Any particular reason?
#8962 by StrangeQuark (0.3926) posted on 11:52am Tuesday, September 11th, 2007
joni said:
b) as you can see in the video, the gtk.entry and gkt.combo isn't realy eyecandy, i can change the style and i will soon, but why can't awn handle this?
[Q]



Neil is working on the gtk style, so best not to bother with this (yet).
[Q]



It's looking really good! Can't wait to try it out!
[Q]





*Edited at 11:53am, 09/11/07
Score: 0 points
Any particular reason?
#8973 by asomething (0.9744) posted on 2:32pm Tuesday, September 11th, 2007
Looks cool! I don't use LastFM, but this applet might just change that...
[Q]

Score: 0 points
Any particular reason?
#8985 by jackkerouac (0.2740) posted on 6:02pm Tuesday, September 11th, 2007
I use Last.fm all the time and would seriously love to try this applet. Commit! Commit! Commit! headbang
[Q]



*Edited at 6:03pm, 09/11/07
Score: 0 points
Any particular reason?
#8986 by isaac_j87 (1.0000) posted on 6:10pm Tuesday, September 11th, 2007
joni said:
before i release this applet, i just have a few questions:
[Q]



Can we at least try out what you have so far???
hmm
[Q]

--
-Isaac
Score: 0 points
Any particular reason?
#8987 by searayman (1.0000) posted on 6:31pm Tuesday, September 11th, 2007
wow, that looks sweet!
[Q]
Score: 0 points
Any particular reason?
#8988 by searayman (1.0000) posted on 6:48pm Tuesday, September 11th, 2007
i like how he web is comming to the dock!
[Q]



WOudl liek to see maybe also a meebo applet and or an iscrybe applet
[Q]
Score: 0 points
Any particular reason?
#9003 by joni (0.5240) posted on 1:03am Wednesday, September 12th, 2007
( no avatar )
i edited first post, you all now can download and test, but its not finished yet.
[Q]

Score: 0.82 points
Any particular reason?
#9066 by asomething (0.9744) posted on 11:56am Wednesday, September 12th, 2007
joni said:
EDIT: ok, if you all wan't not ready testet code, you just can have it:
[Q]



I get a white line instead of the applet. Start AWN up errors out with:
[Q]



Traceback (most recent call last):
File "/usr/local/lib/awn/applets/lastfm/lastfmapplet.py", line 217, in <module>
applet = App (awn.uid, awn.orient, awn.height)
File "/usr/local/lib/awn/applets/lastfm/lastfmapplet.py", line 34, in __init__
self.set_temp_icon (self.inactive_icon)
AttributeError: 'App' object has no attribute 'set_temp_icon'
[Q]

Score: 0 points
Any particular reason?
#9067 by rememo (0.4259) posted on 12:07pm Wednesday, September 12th, 2007
( no avatar )
Hi,
[Q]



it's working for me (though I don't have a last.fm account smile). You'll need to update to latest awn revision. set_temp_icon was added only recently...
[Q]

Score: 0 points
Any particular reason?
#9072 by plunn (1.0000) posted on 12:55pm Wednesday, September 12th, 2007
Well... this applet was GREAT rotfl
[Q]



Then to choose between artist, tag or user
[Q]



Thanks !
[Q]

Score: 0 points
Any particular reason?
#9076 by davim (0.9996) posted on 1:43pm Wednesday, September 12th, 2007
great job :)
[Q]



this should come by default with awn :P
[Q]

Score: 0 points
Any particular reason?
#9083 by jackkerouac (0.2740) posted on 2:21pm Wednesday, September 12th, 2007
Looks great. Doesn't work with awn-curves, but that's because (I think), awn-curves doesn't yet support set_temp_icon.
[Q]



... and now it does. Works great!
[Q]



[Q]



*Edited at 6:56pm, 09/12/07
Score: 0 points
Any particular reason?
#9084 by njpatel83 (1.0000) posted on 2:25pm Wednesday, September 12th, 2007
This is sweet, but how do I stop the playback :-)?
[Q]

Score: 0 points
Any particular reason?
#9167 by davim (0.9996) posted on 5:30am Thursday, September 13th, 2007
@reacocard could you get this in your Ubuntu repos??? :P
[Q]



thanks :)
[Q]

Score: 0 points
Any particular reason?
#9169 by joni (0.5240) posted on 6:06am Thursday, September 13th, 2007
( no avatar )
@njpatel83, the only way to stop the playback is to remove the applet or unplug your network or speaker. if that isn't a option for you - you are doomed to listen to last.fm for eternety.
[Q]



@all, thx for the nice feedback, but as i told this is just an idear right now, it has lots of bugs, missing features and unclean code, so don't use it in any default/repo thing right now, you can do what you want when its done.
[Q]



and if that set_temp_icon thing brings so many problems, what the python func if have to call to set the icon (just find that in the python test applet)
[Q]



bye
[Q]



joni
[Q]

Score: 0 points
Any particular reason?
#9170 by njpatel83 (1.0000) posted on 6:07am Thursday, September 13th, 2007
joni said:
@njpatel83, the only way to stop the playback is to remove the applet or unplug your network or speaker. if that isn't a option for you - you are doomed to listen to last.fm for eternety.
[Q]



Sounds like a laugh, however a 'stop' button would be nice ;-).
[Q]

Score: 0 points
Any particular reason?
#9172 by rememo (0.4259) posted on 6:14am Thursday, September 13th, 2007
( no avatar )

and if that set_temp_icon thing brings so many problems, what the python func if have to call to set the icon (just find that in the python test applet)
[Q]



No,set_temp_icon is the right way (since you are changing the icon from time to time with album-art, it avoid's introducing unwanted memleaks). I think every branch now supports it. (however if there would'nt be so many branches, there would be less problems D *cough* merge? *cough* disappear ).
[Q]



*Edited at 6:14am, 09/13/07
Score: 0 points
Any particular reason?
#9177 by davim (0.9996) posted on 6:53am Thursday, September 13th, 2007
+1 for the stop button :p
[Q]

Score: 0 points
Any particular reason?
#9178 by soro (0.5346) posted on 6:55am Thursday, September 13th, 2007
( no avatar )
I have to stop it when I go to the classroom to teach my kids. +1 for the stop button ;-)
[Q]

Score: 0 points
Any particular reason?
#9200 by joni (0.5240) posted on 10:23am Thursday, September 13th, 2007
( no avatar )
you can give the stop button +10000, there won't be a stop button, there will be a toggeling start/stop button.
[Q]



as i pointet in every of my posts in this trhead the code is at no point done at the moment, but i think on weekend i have time to finish, then you all can stop listening to last.fm :p
[Q]

Score: 0 points
Any particular reason?
#9222 by davim (0.9996) posted on 12:22pm Thursday, September 13th, 2007
joni said:
you can give the stop button +10000, there won't be a stop button, there will be a toggeling start/stop button.
[Q]



D I can't wait.
[Q]



*Edited at 12:23pm, 09/13/07
Score: 0 points
Any particular reason?
#9296 by jackkerouac (0.2740) posted on 4:17pm Thursday, September 13th, 2007
Mine stops as soon as I close the dock. Then I re-open and everything is fine. Better than smashing your speakers.
[Q]

Score: 0 points
Any particular reason?
#9316 by Reasons (0.2829) posted on 6:58pm Thursday, September 13th, 2007
As far as I can tell, the applet works. I don't have a last FM and the site is down, but I'll update once it's up and I make an account.
[Q]

Score: 0 points
Any particular reason?
#9407 by Reasons (0.2829) posted on 2:06pm Friday, September 14th, 2007
IT's working but not not perfectly, not that I'd expect it to. =] A stop or pause button would be nice. I just wish they didn't try to incorporate GTK colors, I liked the black for everything.
[Q]

Score: 0 points
Any particular reason?
#9411 by plunn (1.0000) posted on 2:13pm Friday, September 14th, 2007
Reasons said:
IT's working but not not perfectly, not that I'd expect it to. =] A stop or pause button would be nice. I just wish they didn't try to incorporate GTK colors, I liked the black for everything.
[Q]



What is wrong with GTK colors ?
[Q]



I am running Gutsy and Gnome 2.19 so is it maybe regression with
older versions ?
[Q]



I have perfect windows...
[Q]

Score: 0 points
Any particular reason?
#9415 by Reasons (0.2829) posted on 2:26pm Friday, September 14th, 2007
Well, they work for the most part. Just with my favorite themes they don't and changing the gconf options hasn't done anything. For example, with the Nova or Fawn themes, the applet has no buttons. They're there, you just can't see them.
[Q]

Score: 0 points
Any particular reason?
#9418 by plunn (1.0000) posted on 2:37pm Friday, September 14th, 2007
Okidok....
[Q]



I have trying to find gnome-color-chooser but its seems
to be gone... :-(
[Q]






Score: 0 points
Any particular reason?
#9425 by asomething (0.9744) posted on 2:51pm Friday, September 14th, 2007
plunn said:
I have trying to find gnome-color-chooser but its seems
to be gone... :-(
[Q]



It looks interesting, I can seem to find it either. =(
[Q]



I did come across an edgy deb, but it's probably a bad idea to try running that on feisty....
[Q]




Score: 0 points
Any particular reason?
#9427 by plunn (1.0000) posted on 3:04pm Friday, September 14th, 2007
asomething said:
I did come across an edgy deb, but it's probably a bad idea to try running that on feisty....
[Q]



I am running Gutsy... installed and running... :-)
[Q]



Now its just to find all settings..
[Q]

Score: 0 points
Any particular reason?
#9430 by asomething (0.9744) posted on 3:43pm Friday, September 14th, 2007
plunn said:
Now its just to find all settings..
[Q]



Well I just installed it too, and it confirmed something I've been thinking about the libawn dialog's gtk colors. It is defined by Entry Field Background color, which is inconvenient for me. That color is white in the vast majority of themes. Unfortunately, I don't like the libawn dialog being white, but I also can't stand when Entry Fields are a dark color.
[Q]



But this is getting way off topic.... =)
[Q]

Score: 0 points
Any particular reason?
#9590 by gilir (0.9999) posted on 8:54am Sunday, September 16th, 2007
Some news on this applet ? Do you want I upload the last version you publish in awn-extras ?
[Q]

Score: 0 points
Any particular reason?
#9687 by 031999 (0.1665) posted on 3:11pm Sunday, September 16th, 2007
( no avatar )
i dont know if anyone else has this problem, but when i installed the last fm applet, the prefrences for AWN wont open at all. Ive put the applet files in 2 places that should make it work, but when i go to awn prefrences they just dont open.
[Q]

Score: 0 points
Any particular reason?
#9700 by morbidous (0.9063) posted on 5:34pm Sunday, September 16th, 2007
Just tested it on my box. Really nifty applet. Thanks a lot!
[Q]

Score: 0 points
Any particular reason?
#9880 by 031999 (0.1665) posted on 2:52pm Monday, September 17th, 2007
( no avatar )
bump
[Q]

Score: 0 points
Any particular reason?
#10317 by davim (0.9996) posted on 1:28am Friday, September 21st, 2007
any news on this wonderful applet????
[Q]

Score: 0 points
Any particular reason?
#10325 by joni (0.5240) posted on 2:50am Friday, September 21st, 2007
( no avatar )
not at all, work is just killing me at the moment :(
[Q]



i reworked the code a bit and restructured it and fixed a few bugs but its not done yet, hope this weekend i will find some time.
[Q]

Score: 0 points
Any particular reason?
#10326 by davim (0.9996) posted on 2:56am Friday, September 21st, 2007
it's good to know that you're still working on this, even if slowly D
[Q]

Score: 0 points
Any particular reason?
#10378 by joni (0.5240) posted on 10:14am Friday, September 21st, 2007
( no avatar )
well, more bad news are arriving - got some familiar problems wich make it necesary to move to the south for a week - a week i have fully planed with work i have to do after.
[Q]



i just love openscource coding and releasing stuff and there will be a bug free version of this applet with a few new featueres, but don't except something before mid of october.
[Q]

Score: 0 points
Any particular reason?
#13013 by davim (0.9996) posted on 6:35am Wednesday, October 10th, 2007
So! Any news on this applet? Hope you've sorted out all your problems :)
[Q]

Score: 0 points
Any particular reason?
#13123 by searayman (1.0000) posted on 5:41pm Wednesday, October 10th, 2007
yea i can't wait to see new stuff wiht the applet!
[Q]
Score: 0 points
Any particular reason?
#14188 by davim (0.9996) posted on 3:44pm Monday, October 22nd, 2007
no news yet??? Please Joni feedback D
[Q]

Score: 0 points
Any particular reason?
#15440 by mosburger (1.0000) posted on 7:08am Friday, November 02nd, 2007
Hey all,
[Q]



I asked joni if it was OK for me to fix a couple of bugs. Unfortunately, I haven't heard back.
[Q]



So hopefully, he or she won't mind if I post this. Here's what I've done...
[Q]



- Added a stop button.
- Fixed a bug which was causing band names with spaces not to work.
- Added a login dialog when the applet starts up... you no longer need to edit the source file to add this information.
[Q]



I'm no expert on the last.fm API or on gstreamer, so don't expect any other changes from me. :) These were simple enough for me to make, so I just thought I'd share.
[Q]



Score: 0.16 points
Any particular reason?
#15445 by kremso (0.2149) posted on 7:28am Friday, November 02nd, 2007
( no avatar )
I have coded the stop button and login dialog myself and sent it to Joni, but no response yet.
[Q]



The login dialog is gconf backed, where the password is safely (md5 hashed) saved.
[Q]



You can stop the playback by clicking on the play button. It would be cool if I changed the play button to stop button, but I couldn't find a decent picture.
[Q]



Joni has not responded yet so I am publishing it here.
[Q]






Install by unpacking to /usr/local/lib/awn/applets/
[Q]







*Edited at 7:36am, 11/02/07
Score: 0 points
Any particular reason?
#15461 by davim (0.9996) posted on 9:48am Friday, November 02nd, 2007
that's really cool :)
[Q]



thanks
[Q]

Score: 0 points
Any particular reason?
#15647 by kremso (0.2149) posted on 7:24am Sunday, November 04th, 2007
( no avatar )
I have 3 things on my mind:
[Q]



1. Are there any bugs? If so, then report it here so somebody can fix it.
[Q]



2. Do you have any ideas for improvements?
For example, I'd like the applet to create a list of music I liked. When I listen to radio, from time to time I hear a song that I really like. Currently, there is no way to remember its name, but to write it down somewhere (tomboy notes e.g.). I'd like to have a button, which when clicked, would save the song name and artist, and a list with all my "loved" music in form of links to the appropriate last.fm page.
Would you like it? If you have any other idea, just write it here.
[Q]



3. Is there any reason why this is not in awn-py-applets? Joni?
[Q]

Score: 0 points
Any particular reason?
#15709 by kremso (0.2149) posted on 2:51pm Sunday, November 04th, 2007
( no avatar )
I have updated the applet once again.
[Q]



-Added mosburger's bug fix
-Used mosburger's stop button image, so now, while playing, the button will look like stop button and while doing nothing the button will look like a play button
-You can install the applet by simply dropping it to awn preferences window
[Q]






*Edited at 2:52pm, 11/04/07
Score: 0 points
Any particular reason?
#15710 by isaac_j87 (1.0000) posted on 3:04pm Sunday, November 04th, 2007
kremso said:
-Added mosburger's bug fix<br />-Used mosburger's stop button image, so now, while playing, the button will look like stop button and while doing nothing the button will look like a play button<br />-You can install the applet by simply dropping it to awn preferences window
[Q]



Cool stuff, still some bugs here and there, but it's getting there! :)
[Q]



Hey I was looking at the stop button image and it had some white on it so I cleaned it up...
[Q]



[Q]



There ya go :)
[Q]

--
-Isaac

*Edited at 3:04pm, 11/04/07
Score: 0 points
Any particular reason?
#15712 by kremso (0.2149) posted on 3:30pm Sunday, November 04th, 2007
( no avatar )
isaac_j87 said:
Cool stuff, still some bugs here and there, but it's getting there! :)
[Q]



They won't be fixed until you tell us :)
[Q]



I will include your button in next version.
[Q]



By the way, I have added this applet to the awn wiki applet gallery.
http://wiki.awn-project.org/index.php?title=Applet_Gallery
[Q]



Score: 0 points
Any particular reason?
#15731 by moonbeam (1.0000) posted on 11:06pm Sunday, November 04th, 2007
( no avatar )
kremso said:
By the way, I have added this applet to the awn wiki applet gallery.
http://wiki.awn-project.org/index.php?title=Applet_Gallery
[Q]



I've put your latest version into my awn-extras branch. A few people build from it so it may get a few more eyeballs on the applet.
[Q]



Feel free to check it out and verify that I did up the Makefile ok. the link is in my sig
[Q]


Score: 0 points
Any particular reason?
#15742 by davim (0.9996) posted on 3:26am Monday, November 05th, 2007
this applet is great!!
[Q]



btw: the icon is not respecting the bar height, it's twice the size of the other icons on the bar...
[Q]



and the album art is not showing nor the song title/artist on the applet title.
[Q]



*Edited at 3:28am, 11/05/07
Score: 0 points
Any particular reason?
#15748 by kremso (0.2149) posted on 4:55am Monday, November 05th, 2007
( no avatar )
davim said:
and the album art is not showing nor the song title/artist on the applet title.
[Q]



Could you be more specific? Does this happen for all songs, or only for some for them? What does the title show when the problem happens?
[Q]

Score: 0 points
Any particular reason?
#15750 by davim (0.9996) posted on 5:07am Monday, November 05th, 2007
it happens for every song and the applet tittle always displays:
[Q]



"LastFM Applet- Click to start listening!"
[Q]



*Edited at 5:08am, 11/05/07
Score: 0 points
Any particular reason?
#15751 by kremso (0.2149) posted on 5:13am Monday, November 05th, 2007
( no avatar )
What station are you listening to?
[Q]



I have just noticed another bug - when I choose the station 'Music for user' the title displays 'ska Tag Radio'
[Q]

Score: 0 points
Any particular reason?
#15752 by davim (0.9996) posted on 5:16am Monday, November 05th, 2007
i was listening to similar artists radio this the terminal output:
[Q]



 
(lastfmapplet.py:20255): atk-bridge-WARNING **: failure: no device event controller found.
[Q]



lastfm://artist/placebo/similarartists
<gtk.gdk.Pixbuf object at 0x82bfe3c (GdkPixbuf at 0x83c1408)>
sh: jackd: not found
<gtk.gdk.Pixbuf object at 0x82bffcc (GdkPixbuf at 0x83c1350)>
<gtk.gdk.Pixbuf object at 0x82bfe3c (GdkPixbuf at 0x838bd00)>
<gtk.gdk.Pixbuf object at 0x82bffcc (GdkPixbuf at 0x83c0fa0)>
<gtk.gdk.Pixbuf object at 0x82bfe3c (GdkPixbuf at 0x83c1318)>
[Q]

Score: 0 points
Any particular reason?
#15753 by kremso (0.2149) posted on 5:29am Monday, November 05th, 2007
( no avatar )
You don't have jackd installed.
It seems it is some event controller gstreamer depends on.
[Q]



If you are using debian/ubuntu type
[Q]



 
sudo aptitude install jackd
[Q]



Let me know if it helped.
[Q]

Score: 0 points
Any particular reason?
Pages: 1 2 3
Thread Listing » AWN Applets » Lastfm Player Applet - and a few questions.

Post A Reply:

Anonymous posting has been disabled. Please register first before attempting to post.
Powered by Metaforum ©2004-2010
Get your own Free AJAX Forum Messageboard by visiting the offical site.
.