GithubHelp home page GithubHelp logo

snapcast_stream_switch's Introduction

Snapcast stream switch

Snapcast stream switch is a controller for auto stream select.

If some of the streams changes its status to "playing", controller sets this stream for all of the groups.

If some of the streams changes its status to "idle", controller sets the streams with the highest priority from a streams with status "playing" for all of the groups. If there are no streams with status "playing" then nothing will be changed.

Install

The controller must be installed on the device where Snapcast is installed.

git clone https://github.com/d-xtich/snapcast_stream_switch.git
cd snapcast_stream_switch
./install.sh

Uninstall

cd snapcast_stream_switch
./uninstall.sh

Start/Stop

systemctl start snapcontrol.service
systemctl stop snapcontrol.service

Configuration

The controller configuration is done in snapcontrol.conf

Snapserver host and port configured in the snapcast section

Streams priority configured in the streams_priority section, default priority is 0.

The controller will not set stream from disabled_streams section when it becomes 'playing'. In spite of this section, streams still may be enabled if it 'playing' and other streams 'idle'.

NOTE: All stream names in configuration file are case insensitive

snapcast_stream_switch's People

Contributors

dxtich avatar

Stargazers

 avatar  avatar  avatar  avatar Martin Gafner avatar  avatar  avatar Franz Reiter avatar

Watchers

Martin Gafner avatar  avatar

Forkers

kubovy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.