Skip to main content

A little radio player

Project description

About

A simple radio player implemented in Python3.

https://gitlab.com/philn/CocoRicoFM/raw/master/data/screenshot.png

The currently supported radio stations are:

  • ByteFM

  • Deutschlandfunk Nova

  • DeltaRadio

  • FIP

  • FIP Autour du Groove

  • FIP Autour du Jazz

  • FIP Autour du Monde

  • FIP Autour du Rock

  • FIP Electro

  • FIP Reggae

  • FIP Tout Nouveau

  • France Musique

  • France Musique B.O

  • France Musique Classique Easy

  • France Musique Classique Plus

  • France Musique Concerts

  • France Musique Contemporaine

  • France Musique Jazz

  • France Musique du Monde

  • FranceInter

  • KCSM

  • LeMouv

  • Radio Helsinki

  • RockFM

  • TripleJ

Dependencies:

  • python3

  • python3-gbulb

  • python-aiohttp

  • python-gi

  • gstreamer

  • gst-plugins-base

  • gst-plugins-good

  • python-bs4 (BeautifulSoup4)

  • python-chardet

Optional dependencies:

  • python-lirc

  • python-gntp

  • pygtk (for the graphical user interface)

  • aiohttp_jinja2 and jinja2 for the web remote templates

  • pyobjc (for macOS desktop notifications support)

Features:

  • notifications of song with libnotify or via python-gntp over the network to a Growl daemon

  • scrobbling to lastfm (and/or librefm)

  • optionally dump the stream to local files

  • multimedia keys support (stop, playpause)

  • headless mode, when dbus and/or X11 is not available

  • limited support for Denon AVR amps, power off/on from remote control

  • optional Web remote running on HTTP port 5000.

  • optional GTK+ user interface

Dependencies installation

On Linux

# apt install gstreamer1.0-plugins-{base,good,bad} libsoup2.4-1 python3-pip gir1.2-gst-plugins-base-1.0 gir1.2-gtk-3.0
# apt install liblirc-dev
$ pip3 install --user .
$ pip3 install --user requirements_linux.txt
$ xdg-user-dirs-update

On macOS

Some of the dependencies can be installed with Homebrew:

$ brew install python3 gobject-introspection libsoup gtk+3 gstreamer gst-plugins-{base,good,bad} gst-python

And the remaining Python packages using pip, optionally inside a dedicated virtualenv:

$ pip3 install -r .
$ pip3 install -r requirements_macOS.txt

Running the app

To run without installing, from the project root directory:

$ python3 -m cocoricofm [options]

To install:

  • Use gen_pylast_md5sum.py to get your password hashes for libre.fm/last.fm

  • Copy cocoricofm.cfg.sample to ~/.config/cocoricofm.cfg and edit accordingly

  • Run either one of these commands:

    $ sudo python3 setup.py develop
    $ sudo python3 setup.py install
  • A cocoricofm executable script should now be available in your $PATH.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cocoricofm-1.4.tar.gz (940.7 kB view details)

Uploaded Source

File details

Details for the file cocoricofm-1.4.tar.gz.

File metadata

  • Download URL: cocoricofm-1.4.tar.gz
  • Upload date:
  • Size: 940.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.4

File hashes

Hashes for cocoricofm-1.4.tar.gz
Algorithm Hash digest
SHA256 a72c34620915a4b29fc79226900a9b1a5b3656cfd3d7f085967ad1690076cdf9
MD5 56b2d408e92230f9fb3dd8d11ab56e13
BLAKE2b-256 2919eb9989716ee8c9eb126fad4729b4214a6fe5eb7bbb56ee45f3f59db738c3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page