Metadata-Version: 2.1
Name: snapcastr
Version: 0.2.0
Summary: webinterface to control a snapcast server
Home-page: https://github.com/xkonni/snapcastr
License: MIT
Author: xkonni
Author-email: konstantin.koslowski@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: Flask (>=1.1.2,<2.0.0)
Requires-Dist: flask-bootstrap (>=3.3.7,<4.0.0)
Requires-Dist: flask-nav (>=0.6,<0.7)
Requires-Dist: snapcast (>=2.1.0,<3.0.0)
Requires-Dist: wtforms (>=2.2.1,<3.0.0)
Requires-Dist: xdg (>=4.0.1,<5.0.0)
Project-URL: Repository, https://github.com/xkonni/snapcastr
Description-Content-Type: text/markdown

# snapcastr

 Snapcastr is a webinterface to control a [snapcast](https://github.com/badaix/snapcast/) server.

 It is written in python with flask, wtforms and python-snapcast

- [python 3](https://www.python.org/)
- [flask](http://flask.pocoo.org/)
- [wtforms](https://wtforms.readthedocs.io)
- [python-snapcast]( https://github.com/happyleavesaoc/python-snapcast)


## getting started

### install requirements

use your package manager, e.g. apt or pacman and install

- python3
- poetry

### install

#### get source

```bash
$ git clone https://github.com/xkonni/snapcastr
```

#### install locally

```bash
$ cd snapcastr
$ poetry install
```

#### install system-wide

```bash
$ cd snapcastr
$ poetry build
$ sudo pip3 install dist/snapcastr-0.1.0.tar.gz
```


## run/debug
### run

show help

```bash
$ snapcastrd -h

usage: snapcastrd [-h] [--host host] [--port port] [--sc_host sc_host] [-c CONFIG] [-d]

snapcastr

optional arguments:
  -h, --help            show this help message and exit
  --host host           webinterface host
  --port port, -p port  webinterface port
  --sc_host sc_host, -s sc_host
                        snapcast host
  -c CONFIG, --config CONFIG
                        config file
  -d, --debug           debug mode


```

run the application

- when installed locally

```bash
$ cd snapcastr
$ poetry run snapcastrd --sc_host=address_of_your_snapserver
```

- when installed system-wide

```bash
$ snapcastrd --sc_host=address_of_your_snapserver
```

The `address_of_your_snapserver` might be 127.0.0.1 or localhost, if you are running
snapcastr on the same machine as your snapserver. Snapcastr doesn't need to run with super
user privileges (so you don't need to run it with `sudo`).

Be aware that the last used configuration is saved in `$HOME/.config/snapcastr.json`.

### debug

to debug the application

- when installed locally

```bash
$ cd snapcastr
$ poetry run snapcastrd -d [other-options]
```

- when installed system-wide

```bash
$ snapcastrd -d [other-options]
```


## use

Open http://localhost:5011 in your browser.


## features

### main screen
* View general status, number of clients, streams, groups of clients
![main](https://github.com/xkonni/snapcastr/blob/master/doc/main.png)

### clients
* View connected clients and change their volume
![clients](https://github.com/xkonni/snapcastr/blob/master/doc/clients.png)

### groups
* View the groups and the stream being played by each group
![groups](https://github.com/xkonni/snapcastr/blob/master/doc/groups.png)

### streams
* View the status of the various streams available
![streams](https://github.com/xkonni/snapcastr/blob/master/doc/streams.png)



## roadmap, in no particular order

### clients
* rename
* remove old

### groups
* rename
* remove
* add

### streams
* rename

