Author Topic: PMRP - Poor Man's Radio Player  (Read 3907 times)

hakerdefo

  • Posts: 484
    • View Profile
    • Looking at Linux through the Windows of Life
PMRP - Poor Man's Radio Player
« on: August 06, 2015, 06:36:49 PM »
I was confused whether to post this as update to 'RADIO VSIDO - VSIDO's very own Internet radio player' or to start a new thread? But after some consideration I decided to start it as a new topic.
* So here it is. PMRP - Poor Man's Radio Player. Probably the best bash based Internet radio player in the world.
* Over 250 hand-picked radio stations spanning across different genres and subjects. Whatever you feel like listening to, you'll find it in PMRP.
* Better menus for easier navigation-selection of radio stations.
* Currently playing track information (If available).
Installing PMRP is easy. PMRP uses mpg123 as the back-end so first install it,

Code: [Select]
sudo apt-get install mpg123

I've attached pmrp here so download it first.

Download PMRP

And save it somewhere in your $PATH with the name 'pmrp' and 'chmod 755' it.
That's it! Open terminal, run 'pmrp', and enjoy from over 250 radio stations.
As usual view-review-comments are welcome.
Cheers!!!

You Can't Always Git What You Want

Snap

  • Posts: 462
    • View Profile
Re: PMRP - Poor Man's Radio Player
« Reply #1 on: August 06, 2015, 08:15:00 PM »
IIRC, mpg123 is amongst the Vsido defaults.

Cool, hackerdefo! Downloading and checking

VastOne

  •      v-ger
  • Posts: 3841
    • View Profile
    • VSIDO Community
Re: PMRP - Poor Man's Radio Player
« Reply #2 on: August 07, 2015, 12:07:28 AM »
Fantastic work... This is brilliant

I appreciate the ambient inclusions.. It is a genre I listen to quite a bit, keeps me calm as I dev..

Listening to and recording PMRP - Electronic - Chill One in one tab and recording with the How To : Record effortlessly from terminal in VSIDO/Linux in another tab while building the next ISO's in VirtualBox

Ya gotta fucking love VSIDO!
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

jedi

  • DEFCON 1
  • Posts: 1491
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Re: PMRP - Poor Man's Radio Player
« Reply #3 on: August 07, 2015, 02:56:58 AM »
W  O  W!!!

color me blown-away!  Listening to 'Air Lounge'...
outstanding little radio player hakerdefoe!  very nice work!   8)
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

PackRat

  • Posts: 1795
    • View Profile
Re: PMRP - Poor Man's Radio Player
« Reply #4 on: August 08, 2015, 12:14:45 AM »
Awesome piece of work. Excellent mix of music.

Need to add:

Code: [Select]
sakura -e pmrp
to the VSIDO fluxbox menu.
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

hakerdefo

  • Posts: 484
    • View Profile
    • Looking at Linux through the Windows of Life
Re: PMRP - Poor Man's Radio Player
« Reply #5 on: August 08, 2015, 06:40:51 PM »
Fantastic work... This is brilliant

I appreciate the ambient inclusions.. It is a genre I listen to quite a bit, keeps me calm as I dev..

Listening to and recording PMRP - Electronic - Chill One in one tab and recording with the How To : Record effortlessly from terminal in VSIDO/Linux in another tab while building the next ISO's in VirtualBox

Ya gotta fucking love VSIDO!
Yeah Ya fuc**ng Gotta  8)
By the way VastOne, 'Station  Categories' -> '14 Rock' -> '14 pinkfloydteguz' was added keeping in mind a certain Mr. Terry Ganus.
Cheers!!!
You Can't Always Git What You Want

hakerdefo

  • Posts: 484
    • View Profile
    • Looking at Linux through the Windows of Life
Re: PMRP - Poor Man's Radio Player
« Reply #6 on: August 08, 2015, 06:43:58 PM »
@jedi @PackRat Thanks for encouraging words!
Cheers!!!
You Can't Always Git What You Want

seppalta

  • Posts: 15
    • View Profile
    • LXDE-OPENBOX GUIDE
Re: PMRP - Poor Man's Radio Player
« Reply #7 on: August 12, 2015, 06:37:51 AM »
A very nice script-application!  I took the liberty of upgrading the classical music (my music passion) category and adding a small folk music category.  You can get the result with
Code: [Select]
wget http://lxlinux.com/pmrp .

Snap

  • Posts: 462
    • View Profile
Re: PMRP - Poor Man's Radio Player
« Reply #8 on: August 12, 2015, 07:40:39 AM »
Nice addition. Thanks.

EDIT: BTW, are you the man behind the http://lxlinux.com/ site? Great job!. It made my day a few times when tweaking OB. One of my main bookmarked references for Openbox.

seppalta

  • Posts: 15
    • View Profile
    • LXDE-OPENBOX GUIDE
Re: PMRP - Poor Man's Radio Player
« Reply #9 on: August 12, 2015, 06:21:11 PM »
"are you the man behind the http://lxlinux.com/ site?"  Yes, and happy to hear that you use it.   It is my Linux Toolbox, or Memory Bank - saves a lot of searching!  Just add new things as they cross my path and try to keep the rest up-to-date.  Will put up a section on pmrp, a really well put-together app, and lightweight, too, soon. 

 Oh!  I corrected (today Wed, Aug. 12) in the lxlinux version a typo (by me) at the end of the classics section: "13) clear Muzic ;;" should be "33) clear Muzic ;;".    Cheers.

Snap

  • Posts: 462
    • View Profile
Re: PMRP - Poor Man's Radio Player
« Reply #10 on: August 13, 2015, 05:18:56 AM »
Quote
saves a lot of searching!

Ideed!

Thanks for the correction.

PackRat

  • Posts: 1795
    • View Profile
Re: PMRP - Poor Man's Radio Player
« Reply #11 on: August 16, 2015, 10:09:02 PM »
....... and adding a small folk music category.

Irish pub folk songs - now that is classical music -  8)
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

seppalta

  • Posts: 15
    • View Profile
    • LXDE-OPENBOX GUIDE
Re: PMRP - Poor Man's Radio Player
« Reply #12 on: August 19, 2015, 06:09:30 AM »
I made another small change in the pmrp script to accommodate those who might want quick availability of the station link, for example, to rip what is playing.  By replacing the following line in each station section, echo -e "$BLUE PMRP $NC -> $BLUE Classical $NC -> $BLUE $Name01 $NC:", with  echo -e "$BLUE PMRP $NC -> $BLUE Classical $NC -> $BLUE $Name01 $NC -> $BLUE $link01 $NC:".   This will then display the link on the main page.  I only made the change for classical stations, since I rarely use the others.

Digit

  • Techno Hippie
  • Posts: 295
  • savant (alegedly), polymath (wannabe)
    • View Profile
    • wastedartist.com
Re: PMRP - Poor Man's Radio Player
« Reply #13 on: February 07, 2016, 06:12:27 PM »
gave this a whirl.  unuseable on my bandwidth.  is there a way to get it to only use the low bandwidth streams?

*gone back to my own even-more-poor man's radio player for now.*

misko_2083

  • Posts: 61
    • View Profile
Re: PMRP - Poor Man's Radio Player
« Reply #14 on: October 02, 2016, 01:16:25 PM »
Excelent script hakerdeko.

I'm going to play with yad and this.

Code: [Select]
#!/bin/bash

mpg123 --remote --fifo /tmp/pipem --utf8 --title --preload 1 --buffer 768 --smooth &
PID="$!"

if [ ! -e "/tmp/pipem" ]; then
  mkfifo /tmp/pipem
fi
sleep 1

function load () {
  echo "load http://relay.181.fm:8134" > /tmp/pipem
}
export -f load

function pause () {
  echo "pause" > /tmp/pipem
}
export -f pause

function stop () {
  echo "stop" > /tmp/pipem
}
export -f stop

yad --form --button "exit!gtk-no:1" \
    --field "load:btn" 'bash -c load' \
    --field "pause:btn" 'bash -c pause' \
    --field "stop:btn" 'bash -c stop'

if [[ $? == 1 || $? == 252 ]]; then
  echo stop > /tmp/pipem
  kill $PID
  rm /tmp/pipem
fi

Categories could go into notebook tabs. I doubt it would all fit. There are tons of stations and categories in PMRP. :)
As for displaying what's playing, separate --text-info window is the only way.