You are not logged in.
hello,
i'd like to draw peoples attention to shell-fm once more.
it's in the repos but when compiled from git it works better -
it's the one thing that makes me listen to last.fm - i don't know why, i just don't like to listen to music from my browser and this little cli app is just so neat and cool.
it would be great to keep this little app alive...
it works smoothly, but some small improvements would be good... like remembering the volume level or being able to start shell-fm with less than 100% volume...
oh well, please happy hackers help!
i posted some scripts here to integrate shell-fm into your desktop:
http://crunchbang.org/forums/viewtopic. … 30#p276130
http://crunchbang.org/forums/viewtopic. … 27#p276227
Last edited by ohnonot (2012-12-02 21:56:59)
Offline
I am a lover of last.fm's artist radio function, so I will certainly keep this application in mind. Thank you very much for highlighting it! 
Last edited by R3nCi (2012-11-25 18:11:55)
Registered Linux User #555301
Things worth clicking on: UbuWeb | Autistici/Inventati | Hackerspaces.org wiki | Famicoman's blog
Offline
@ohnonot: Did you get "Chunked!" errors from the version in the repos? Is this one of teh fixes in the current git version?
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Online
^ I am getting the same errors
I also cannot build from the git install with errors there too.
This is my build machine, with every build tool under the stars available and I still could not solve the issues from with the git build process.
VSIDO
If you build it, they will come...
Words That Build Or Destroy
Offline
thanks for answering.
@pvsage: yes, and yes. but there have been new error messages recently.
@vastone: ??? strange. i had no problems whatsoever on two rather different distros (xubuntu and cb!).
btw, is this the page telling me about most recent changes, and are they always automatically included when i rebuild the app?
i got an email last week saying:
Hello,
We're writing you to let you know that there will soon be a change to Last.fm radio that may affect you. Our stats show that you've listened to radio through an application that uses our old streaming protocol. On 1 December we will deprecate this old protocol, so in some applications radio will no longer work.
If you would like to continue enjoying Last.fm Radio, consider upgrading to a new application or using http://www.last.fm/listen
Thanks,
The Last.fm Team
-...
i really hope someone can look into this.
but it has been working so far.
btw, is it possible to control shell-fm in other ways than through the terminal window? like from the menu? current track displaying in conky?
man shell-fm says something about adressing ports locally and i'm just so noob with these network protocol thingymajigs...
Offline
It looks like today was the day Last FM changed there streaming protocol. I use Vagalume on Debian and aLastFM Player (no longer maintained) on Android and they both went kaput today. Boo.
Vagalume, a Last FM GUI client, may get a fix as it's in the Debian repos and I think it's still maintained.
Offline
yea, same here. shell-fm just exits...
has this change been announced, i mean did coders have time to change their software, or do we just have to wait?
right now i would love to be able to listen to last.fm in any way except from my browser, graphical or cli...
apart from that, what other services are out there?
i'm just trying out libre.fm - they have only music that is freely distributable, yes?
trying out zomg (terminal app to listen to libre.fm and supposedly also last.fm), doesn't seem to work.

Last edited by ohnonot (2012-11-28 08:27:52)
Offline
Odd...the version of shell-fm from the Stable repo still works. It still chunks, but at least it still works.
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Online
Odd...the version of shell-fm from the Stable repo still works. It still chunks, but at least it still works.
confirmed. it says
debug: chunkedbut it also says
couldn't scrobble tracks. - question is: is it just saying that or is it really not scrobbling.
i just logged into last.fm website - i can see the song i loved 5min ago, but where's the info about scrobbling???
is it under .../tracks?
anyways, this is good news.
but then i'd like to get rid of the terminal window and control shell-fm with commands.
could someone please, please walk me through this:
bind = host
This specifies the network interface you want shell-fm to bind to. host should be the host name or an IP address of host shell-
fm is running on. shell-fm will open a port (see the port option below) on the specified interface which you can connect to to
control shell-fm remotely (or from local scripts, see key0x?? above). Check the NETWORK INTERFACE COMMANDS section below for a
list of known commands. NOTE: The network interface has no user authentication, so anyone with access to your network/host can
control shell-fm. Use it only if you really need to control shell-fm over a network. Otherwise use the UNIX socket interface (see
below).
unix = path
If this is set to a proper path, on that path a UNIX socket will be created for local "remote" control. This socket interface
takes the same commands as the TCP socket interface (see above).
port = port-number
With this option you can change the port shell-fm will listen on (if bind is specified). Default is 54311.- taken from man shell-fm.
Last edited by ohnonot (2012-11-28 16:47:46)
Offline
I spoke too soon, Vagalume is working like a peach today and aLastFmPlayer is working as well as it can. Crossing my fingers that they've transitioned and it's not effecting those apps and that it's not that the site was down for something unrelated and I'll lose these apps after the 1st.
Offline
Thanks for posting this. I never would have know about it.
"To me, the extraordinary aspect of martial arts lies in its simplicity. The easy way is also the right way, and martial arts is nothing at all special; the closer to the true way of martial arts, the less wastage of expression there is." - Bruce Lee
Offline
so now both versions are working again.

well i guess i should just be happy. sorry if i startled other people than myself.
Last edited by ohnonot (2012-11-28 19:34:30)
Offline
Good to hear it still works!
Thanks for this post, ohnonot!
Offline
you're welcome.
i made some cool adjustments to my shell-fm.rc; combined with conky they put song info & cover art on my desktop, plus keeping up a history file.
here's my complete shell-fm.rc:
username = <you>
password = xxxxxx
default-radio = lastfm://user/<you>/recommended
delay-change = 1
# download = /home/<you>/music/shellfm/%a;%t;%l;%d.mp3
# extern = mplayer -really-quiet -
title-format = %t by %a
preview-format = %t by %a
volume-update = Vol. %v
# unix = /home/<you>/.shell-fm/unix ????
np-file = /home/<you>/.shell-fm/info/nowtrk
np-file-format = %s %t by %a (%l) %f (%V)
# extern = tee "/home/<you>/music/shellfm/%a;%t;%l;%d.mp3" | madplay -Q -a -2 -
# downloads all - also non-free tracks
np-cmd = cd /home/<you>/.shell-fm/info/ ; echo %I > get ; echo %t > trkinf0 ; echo %a > trkinf1 ; echo %l > trkinf2 ; echo %s > trkinf3 ; ./np.sh > /dev/zero ;
# all this to be executed after every track
# ./update_id3.sh; this only if download=... is enabled.
stream-timeout = 10
# no-rtp = 1
discovery = 1
gap = 0
minimum = 75
expiry = 864000
# key0x4C = /usr/bin/python ~/.shell-fm/scripts/lyrics.py %a %t
# key "L" triggers...
t-color = 1;34
a-color = 1;34
l-color = 1;34
v-color = 1;34
f-color = 1;34
# V-color = 0;33
b-color = 1;34
A-color = 1;34
S-color = 1;34
# screen-format = shell-fm
# term-format = shell-fm: %a: %tand the relevant part of my .conkyrc:
${if_running shell-fm}${if_existing /home/<you>/.shell-fm/info/icon.png}${image /home/<you>/.shell-fm/info/icon.png -p 0,335 -s 170x170 -n}
${voffset 170}$endif
${if_existing /home/<you>/.shell-fm/info/trkinf1}$alignr${tail /home/<you>/.shell-fm/info/trkinf1 1,1}:$endif
${if_existing /home/<you>/.shell-fm/info/trkinf0}${voffset 4}$alignr${tail /home/<you>/.shell-fm/info/trkinf0 1,1}$endif
${voffset 9}${if_existing /home/<you>/.shell-fm/info/trkinf2}$alignr(${tail /home/<you>/.shell-fm/info/trkinf2 1,1})$endif
${voffset 7}${if_existing /home/<you>/.shell-fm/info/trkinf3}$alignr Radio:
$alignr${tail /home/<you>/.shell-fm/info/trkinf3 1,1}$endif$endifreplace <you> with your username!
then, untar this to your .shell-fm folder. (i haven't tried this upload service yet. i hope it's ok. please post if it isn't.)
should be working now. if shell-fm is already running, press Shift-C to reload config.
sadly, i still could not find a way to control shell-fm via socket or ip address

Offline
Got this all setup today, really cool app. Thanks for posting this.
Offline
thanks!
2 more additions:
- toggle shell-fm on/off with a shell script (that can be called from the menu)
- and start it straight into the system tray with alltray.
#!/bin/bash
if (pidof -x shell-fm) ; then
killall shell-fm
rm -f /home/<you>/.shell-fm/info/icon.*
rm -f /home/<you>/.shell-fm/info/trkinf*
rm -f /home/<you>/.shell-fm/info/get ;
else
rm -f /home/<you>/.shell-fm/info/icon.*
rm -f /home/<you>/.shell-fm/info/trkinf*
rm -f /home/<you>/.shell-fm/info/get
alltray -st -stask -i ~/.shell-fm/lastfm2.png urxvt -uc -geometry 47x13+10+400 -e shell-fm
fi--- "killall shell-fm" is not very elegant.
still waiting for some help with setting up that unix socket--- pretty please?
Last edited by ohnonot (2012-12-02 21:58:48)
Offline
...it seems that this time it really doesn't work anymore.
starting shell-fm, i get this error:
Invalid HTTP: HTTP/1.0 403 Forbidden
from: http://ws.audioscrobbler.com/radio/adju … 2Fpersonal
(i replaced the session code and my username)
- and i've been getting this error for 3 days now.
vagalume starts playing my recommended radio but i can't change stations.
does anybody know how the new protocol goes?
if i could only set my default radio in shell-fm.rc with the new protocol, i might even dare to take a look at the source code...
has anybody heard any news/rumours concerning last.fm and open source coding?
edit: i got the new shell-fm from github. some changes have been made a couple of days ago.
this time, after first startup, it tells me to
Please open http://www.last.fm/api/auth/?token=xxxx … xxxxxxxxxx in your browser to autorize shell-fm.
however, this time last.fm itself tells me that something does not work at the moment. in 10 languages, but no further info...
after that i can log in with shell-fm but not listen.
it says
Sorry, couldn't set station to user/daniel227/recommended. The Webservices API key supplied does not have permission to stream / create new radio trials.
everything works nicely when i use the website itself to listen.
Last edited by ohnonot (2012-12-08 17:08:54)
Offline
Offline
I think this might be related to ongoing efforts of the labels to get money (allegedly to pay the artists' residuals, but we all know where most of the money goes). D@mn RIAA...that's one of the reasons I mostly listen to indie artists now.
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Online
I spoke too soon, Vagalume is working like a peach today and aLastFmPlayer is working as well as it can.
In my case Vagalume stopped and still does not work. And I thought it uses already the newer API. The regular but not so nice Lastfm player works. Should try it again.
Offline
a few days and many unanswered forumposts later i come to this conclusion:
without a subscription, nothing doing anymore. not even through my web browser.
for some weird reason, vagalume still plays my default radio station, and scrobbles.
Offline
Even with a subscription, nothing doing through shell-fm...I keep getting 403 forbidden messages. 
while ( ! ( succeed = try() ) );
We've earned a reputation as a nice, friendly community; please help us keep it that way.
Online
i wrote a question to last.fm support.
they answered promptly, which is a good thing.
but they told me that even if i would get a subscription, radio streaming will become unavailable in my country from jan, 15th onwards.
i guess they mean streaming through an app instead of a browser?
this is starting to feel like discrimination: only credit card owners who use the newest mainstream systems and are willing to give up their privacy are allowed to use last.fm, evenif they pay for it. wtf?
and why is it different in finland than in germany or uk or us of friggin a? i mean, it's not like piratebay.
ps: vagalume also gave up today. it says "no more content to play" but the weird thing is, it also says that about my librefm account.

Last edited by ohnonot (2012-12-13 07:28:05)
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.