easiest way to listen internet radio ?


20 posts
by wally » Thu Sep 20, 2012 10:59 am
Hi,
what is easiest way to listen internet radio on raspi ?
I sued radiotray so far, but does not work anymore after recent wheezy update.

thx wally
Posts: 45
Joined: Mon Aug 06, 2012 12:07 pm
by BoloMKXXVIII » Thu Sep 20, 2012 11:16 am
I haven't received my Pi yet so I cannot answer your question, but I am interested if anyone has tried Pithos?

http://kevinmehall.net/p/pithos/
It isn't yours if you can't hack it.
User avatar
Posts: 5
Joined: Tue Sep 18, 2012 12:15 pm
Location: Somewhere on or near Earth
by redhawk » Thu Sep 20, 2012 12:36 pm
sudo apt-get install qmmp make sure you turn off the graphic equaliser on first run otherwise your audio will stutter.

Richard S.
User avatar
Posts: 2925
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1
by W. H. Heydt » Thu Sep 20, 2012 6:15 pm
I've been using mplayer.

Code: Select all
mplayer -ao alsa:device=default http://8343.live.streamtheworld.com:80/KDFCFMAAC_SC

I put that in cron (use "crontab -e") and use it as an alarm clock....it's our local Classical Music station.
Posts: 1372
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)
by csgabe » Thu Sep 20, 2012 7:28 pm
You can use cmus too.
Posts: 19
Joined: Thu May 17, 2012 2:45 pm
by wally » Fri Sep 21, 2012 6:47 am
Thank you !

@ csgabe
cmus works nice :)

wally
Posts: 45
Joined: Mon Aug 06, 2012 12:07 pm
by basiladair » Tue Oct 30, 2012 10:41 pm
BoloMKXXVIII wrote:I haven't received my Pi yet so I cannot answer your question, but I am interested if anyone has tried Pithos?

http://kevinmehall.net/p/pithos/


I just recv'd my pi and tried pithos today with no luck. I'm new and don't know how to download/install the GIT command protocols necessary Any help is appreciated.

Basil
Posts: 2
Joined: Tue Oct 30, 2012 10:36 pm
by wally » Wed Oct 31, 2012 8:58 am
Hi,

i also wanted to try, but met problems understanding
How to do it.

wally
Posts: 45
Joined: Mon Aug 06, 2012 12:07 pm
by blavery » Wed Oct 31, 2012 9:15 am
Today I upgraded to this week's Raspbian release. And ... RadioTray is now back in going order. So easy.
Posts: 46
Joined: Sun Jul 01, 2012 2:57 am
Location: QLD. Australia
by wally » Wed Oct 31, 2012 9:27 am
i think we talk about pitos
Posts: 45
Joined: Mon Aug 06, 2012 12:07 pm
by blavery » Wed Oct 31, 2012 9:31 am
I think this thread is

"easiest way to listen internet radio ?"
Posts: 46
Joined: Sun Jul 01, 2012 2:57 am
Location: QLD. Australia
by wally » Wed Oct 31, 2012 9:36 am
sure, sorry
Posts: 45
Joined: Mon Aug 06, 2012 12:07 pm
by emcsquirreled » Wed Oct 31, 2012 1:33 pm
If you like pandora.com, interned radio is as easy as

Code: Select all
sudo apt-get install pianobar


Pianobar is a terminal client for pandora, and works quite nicely (and skips the advertisements ;) )
Linux -- The operating system with a CLUE (Command Line User Environment)
--
FTC Team 4508
E=MC Squirreled
emcsquirreled.github.com
Posts: 91
Joined: Sat Aug 18, 2012 1:26 am
Location: Portland, OR USA
by rinky451 » Sun Nov 04, 2012 9:26 pm
blavery wrote:Today I upgraded to this week's Raspbian release. And ... RadioTray is now back in going order. So easy.

as for radio tray i cannot download it either with apt-get or yum. How did u install this?
Posts: 25
Joined: Sun Nov 04, 2012 5:08 pm
Location: USA
by blavery » Sun Nov 04, 2012 11:56 pm
Upgraded my running OS with Raspbian release from a week or so back:
--- apt-get update/upgrade/dist-upgrade
--- rpi-update
(In other words, all available updating functions)
Then installed radiotray with synaptic (which I have been using):
radiotray 0.7.2-1

Now, I do notice this morning (I am in Australia) some repository update files won't access. Maybe some residual mirror problems from the US Superstorm disruptions? That's just a guess.
Posts: 46
Joined: Sun Jul 01, 2012 2:57 am
Location: QLD. Australia
by rob0 » Mon Nov 05, 2012 5:20 am
For others looking for the same topic - specifically for those who want to play internet radio from the command line.

I've setup a headless pi to use as a media server strictly for audio - it's connected to a stereo via the audio out. Using cron and some python and shell scripts along with mplayer and lighttpd I've cobbled together a system that:

1) Downloads and manages a set of podcasts
2) Records radio programs for later time shifted playback
3) Will act as as the equivalent of a radio Tivo or DVR (well a Digital Radio Recorder) with the ability to pause live radio streams, rewind and fast forward (using a buffer).
4) Skip ahead / back 30s or 5 min (user adjustable)
5) Move through playlists of music or podcasts
6) Adjust volume and stop the stream
7) Can play back mp3 albums
8) All controlled via iPhone, Andriod or computer via webpage.

Downside - I've cobbled it together and it's NOT packaged for easy one click install by any means but I can offer advice on how to do the same [so perhaps this isn't the easiest way to listen to internet radio at first....but once it's set up it's pretty easy].

1st off the advantage of mplayer is it's really easy to set it to accept commands from a script or even another ssh session using a named pipe (I tried omxplayer but for some reason it was giving me issues). Using the named pipe allows you to change volume, pause, stop, change position in the track, skip forward / back in the playlist etc.

mplayer will also dump a stream to disk allowing you to save a stream that's not packaged as a podcast.

Finally mplayer will let you save a stream and play that stream at the same time - this allows you to create a buffer for an internet radio station much like a DVR and that allows you to skip around in the buffer.

I also found the podgrab.py (http://joshua14.homelinux.org/downloads/PodGrab.py) program very useful for managing the subscribing / downloading of podcasts, it's easy to subscribe via the shell and have run via cron.

Finally setting up python scripts to run in cgi-bin via lighttpd is a really easy way to create a web remote and with a little css and javascript it's possible to make a single page python script that controls all the playback functions and lets you change podcasts / stations etc. (This is also be useful for remote control of home automation projects.)

If anyone is interested I can post some code and give some pointers on setting up a similar system - OR if anyone knows of a similar system that's further developed I'd be glad to hear. I'm not really looking to add an LCD or use any that requires a GUI running on the pi since I find it more convenient to use the smart phone in my pocket as a remote so I can do it from anywhere in the house.
Posts: 4
Joined: Mon Nov 05, 2012 4:49 am
by basiladair » Mon Nov 05, 2012 2:51 pm
Please post away. I've been trying to get pandora working thru my PI via pithos (my favourite) with no luck. Perhaps your routine is a better, functioning, alternative.

Regards
Basil
Posts: 2
Joined: Tue Oct 30, 2012 10:36 pm
by rob0 » Tue Nov 06, 2012 3:53 am
basiladair wrote:Please post away. I've been trying to get pandora working thru my PI via pithos (my favourite) with no luck. Perhaps your routine is a better, functioning, alternative.

Regards
Basil


I posted some code and explanation in a separate thread to avoid hijacking this one.
viewtopic.php?f=36&t=22194
Posts: 4
Joined: Mon Nov 05, 2012 4:49 am
by wally » Sat Nov 17, 2012 4:10 pm
Hi,

i want to use cmus as radioplayer on raspberry pi running
without monior, keyboard , mouse and no xserver.

I figured out how to autologin and execute an script on boot.

cmus starts but still needs an [ENTER] to start playing.

For installing and setting up i still have monitor and keyboard
connected but later it should work "naked"

i tried " echo -ne '\n' | cmus "
but monitor flickers very much and i think something is not ok
this way.
also tried "cmus --listen [url]

and "cmus" followed by "cmus-remote --play"

nothing fits my needs

How can i start cmus in script so it immediately starts playing ?

thank you
wally
Posts: 45
Joined: Mon Aug 06, 2012 12:07 pm
by h20oni » Fri Mar 15, 2013 12:03 am
hey folks I just set up pithos and it worked...
then it stopped working and now freezes every time I start to use it...
(sigh!) back to the drawing board!!
Posts: 1
Joined: Thu Mar 14, 2013 11:52 pm