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

https://github.com/cmfcmf/snapcast-control

A simple web interface to control Snapcast, including limited support for Mopidy.
https://github.com/cmfcmf/snapcast-control

python react snapcast

Last synced: 7 months ago
JSON representation

A simple web interface to control Snapcast, including limited support for Mopidy.

Awesome Lists containing this project

README

          

# Snapcast Control Web Interface

![Overview](docs/overview.png)

A web interface for [Snapcast](https://github.com/badaix/snapcast).
It allows you select which stream is played on which client.
It also has support to select local radio and files from Mopidy instances.
Currently, the UI is in German. If you are interested in using an English version, please open an issue.

## Installation

```bash
sudo apt install python3 python3-pip
sudo pip3 install -r requirements.txt

cd frontend-react
yarn install && yarn build
```

Add an entry to crontab to start snapcast-control after booting:

```bash
sudo crontab -e # sudo is only needed for ports < 1000
```

```crontab
@reboot sleep 10 && /absolute/path/to/snapcast-control/server.py --port 80
```

## Development

Server:

```
sudo apt install python3 python3-venv
python3 -m venv .venv
source .venv/bin/activate
python server.py --debug --port 8080
```

Client:

```
cd frontend-react
yarn install && yarn start
```

## SnapCast Update

```
cd ansible
ansible-playbook playbook.yml
```