Giter Site home page Giter Site logo

whipradio's Introduction

Whip Radio

Whip Radio is a little shell script that streams internet radio stations I like.

whipradio-screenshot.png

Requirements

This requires a Unix-like system.

  • bash (version 4)
  • git (to get the code)
  • mpv (to play the stream)
  • whiptail (to do the dialog box)

On Ubuntu, this will install what you need (whiptail is built in):

sudo apt install git mpv

On Mac OS X, run this to get whiptail (requires the Homebrew package manager):

brew install newt

It will even work on Android, with Termux. Open a shell, then run:

pkg install git whiptail mpv

Installation

This command will download all the files without requiring a GitHub account:

git clone https://github.com/wdenton/whipradio.git

Usage

Run the script on its own, for example:

./whipradio # If you are in the directory
~/whipradio/whipradio # Or a full path can be specified

Use the arrow keys to go up or down to the station you want to hear, then hit Enter.

To quit, hit Tab to move to OK, then Tab (or right-arrow) to Cancel, then hit Enter.

Adding a station

Edit stations.txt and add a line with three parts separated by pipes:

name|url|description

Related

Sources of radio stream information:

Similar projects:

whipradio's People

Contributors

wdenton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

whipradio's Issues

Newt for Mac OS X

$ brew install newt is a replacement for whiptail, works great.

Add to README?

syntax error in expression

hey @wdenton!

I'm getting this error with every station I select:

โžœ  whipradio git:(master) ./whipradio
./whipradio: line 3: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
./whipradio: line 5: BBC Radio Three: syntax error in expression (error token is "Radio Three")
./whipradio: line 6: BBC Radio Four: syntax error in expression (error token is "Radio Four")
./whipradio: line 7: BBC Radio Four Extra: syntax error in expression (error token is "Radio Four Extra")
./whipradio: line 8: BBC World Service: syntax error in expression (error token is "World Service")
./whipradio: line 9: Boom 97.3: syntax error in expression (error token is "97.3")
./whipradio: line 10: CBC Radio One (Toronto): syntax error in expression (error token is "Radio One (Toronto)")
./whipradio: line 11: Radio Aporee: syntax error in expression (error token is "Aporee")
./whipradio: line 12: Resonance FM: syntax error in expression (error token is "FM")
./whipradio: line 13: Resonance Extra: syntax error in expression (error token is "Extra")
./whipradio: line 14: Soundart Radio: syntax error in expression (error token is "Radio")
./whipradio: line 16: TSF Jazz: syntax error in expression (error token is "Jazz")
./whipradio: line 19: WQXR New Sounds: syntax error in expression (error token is "New Sounds")
 ... BBC Radio Three ...

./whipradio: line 55: BBC Radio Three: syntax error in expression (error token is "Radio Three")

What am I missing? ๐Ÿ˜…

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.