Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ $(output_dir)/iris.%.conf: $(CONFIG) templates/iris.template $(RENDER)
$(output_dir)/home-assistant.%.yaml: $(CONFIG) templates/home-assistant.yaml.template
$(RENDER) -z $* -d $< templates/home-assistant.yaml.template > $@

$(output_dir)/70-multizone-audio.%.rules: $(CONFIG) templates/70-multizone-audio.rules.template $(RENDER)
$(RENDER) -z $* -d $< templates/70-multizone-audio.rules.template > $@


snapserver: $(output_dir)/snapserver.conf
systemctl $(SYSTEMCTL_USER) restart snapserver
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ A **config generator** for a multizone audio system based on snapcast, Mopidy an
- [ ] no snapcast controls visible to end-users(!)
- [x] eliminate unnecessary software volume controls
- [x] replaygain support
- [x] supports multiple audio outputs per player

# Architecture

Expand Down
29 changes: 29 additions & 0 deletions example.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,35 @@
},
"streams": ["spotify", "airplay", "iris"],
"other_streams": ["Google Chromecast"]
},
{
"name": "room-with-static-soundcard-name",
"name_": "room_with_static_soundcard_name",
"Name": "Room with Static Soundcard Name",
"airplay": {
"port": "5112"
},
"mopidy": {
"http_port": "6692",
"mpd_port": "6612"
},
"snapcast": {
"latency": 0,
"opts": "-s MyCard --mixer=hardware",
"volume": 65
},
"spotify": {
"api_port": "24812",
"crossfade_ms": "0",
"zeroconf": "39812"
},
"udev": {
"soundcard": {
"name": "MyCard",
"path": "/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/sound"
}
},
"streams": ["spotify", "airplay", "iris"]
}
],
"announcers": [
Expand Down
4 changes: 4 additions & 0 deletions templates/70-multizone-audio.rules.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# multizone-audio: give soundcards deterministic names
{{#zone.udev.soundcard}}
ACTION=="add", SUBSYSTEM=="sound", DEVPATH=="{{path}}/card?", ATTR{id}="{{name}}"
{{/zone.udev.soundcard}}