Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gpenverne/audio-cd-caster
- Owner: gpenverne
- License: mit
- Created: 2018-01-29T01:54:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T08:12:50.000Z (almost 7 years ago)
- Last Synced: 2024-10-07T03:09:32.418Z (about 1 month ago)
- Topics: cd-audio, chromecast, chromecast-audio, raspberry-pi, streaming-audio
- Language: Python
- Homepage: https://gkdv.net/Chromcast-raspberry-audio-cd-reader/
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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