ahayworth / snapcast-autoconfig Goto Github PK
View Code? Open in Web Editor NEWAutomatically re-configure snapcast groups based on playing streams
Automatically re-configure snapcast groups based on playing streams
os: Arch linux
snapclient: 0.25.0
snapserver: 0.25.0
First off, I realise this is a side-effect of how Snapcast works when removing clients from groups ;)
In this scenario:
c1
and c2
s1
, s2
)s0
is lower priority and plays to both s1
and s2
To repro:
s0
such that c1
and c2
form a playing group g0
.s0
-> c1
and c2
remain in g0
which is Idles1
-> the group splitsResult:
c1
is in group g1
playing s1
c2
is in group g2
playing s1
<-- DOH!Expected:
c2
remains in group g0
which is IdleConfig:
---
server: tcp://localhost:1705
streams:
Canard:
clients:
- canard
Kitchen:
clients:
- kitchen
Party 1:
clients:
- canard
- kitchen
The result is the same even with more clients in g0
. All clients end up in individual groups playing s1
.
log.txt
This actually works pretty well for me, but the README is snarky and not helpful. We should re-write it to actually better describe what this does and how to use it.
This script is highly specific to how I run my home audio system, but it could be a lot more flexible. The configuration file should express three concepts:
That would allow us to build a more flexible system, and specify what to do for undefined situations (eg: if a group exists with a configured client but doesn't match a rule, what should be done? Leave it alone? Forcibly move it? To where? etc).
Add:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.