Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gpenverne/audio-cd-caster

Cast audio cd to chromecast
https://github.com/gpenverne/audio-cd-caster

cd-audio chromecast chromecast-audio raspberry-pi streaming-audio

Last synced: 12 days ago
JSON representation

Cast audio cd to chromecast

Awesome Lists containing this project

README

        

# Audio-cd-caster

Play audio cd to chromecast

Thanks to:
- [https://github.com/martinohanlon/AutoRipper](https://github.com/martinohanlon/AutoRipper)
- [https://github.com/balloob/pychromecast](https://github.com/balloob/pychromecast)

## Setup

Requirements:

- python3
- nodejs
- abcde
- pygame for python3

```shell
npm install
sudo apt-get build-dep python-pygame
pip3 install -r requirements.txt
sudo apt-get install abcde
cp config.json.dist config.json
```

## Configuration

Edit ``config.json`` file:

- ``chromecast_friendly_name``: target chromecast to play audio
- ``public_url_prefix``: the public url of the server.js server (needed by chromecast)

## Start it!

Launch launcher.py:

```shell
python3 launcher.py
```

## Start it at start!
```shell
crontab -e
```

Add this line to your crontab:
```
@reboot python3 /home/pi/mp3/laucher.py > /tmp/rip.log
```

## Details

``server.js`` will serve a fake big wav file. Chromecast will stream it.

``launcher.py`` will check if audio cd is here. If audio cd is ready, it launches the ``play.sh`` script, and look for wav file. If wav file found, it launches it on chromecast

``play.sh`` will launch the nodejs server, and abcde to rip the disc, and writes pid files

``stop.sh`` will kill abcde and server.js