afaden / babelpod

Add line-in and Bluetooth input to the HomePod (or other AirPlay speakers); intended to run on Raspberry Pi.
MIT License
226 stars 36 forks source link

Pre-Configured Input and Output #6

Open m-ruhl opened 6 years ago

m-ruhl commented 6 years ago

I would like to use this as a kind of HomeKit device. So I could start and stop the playback with Siri.

The HomeKit Integration can be done with Homebridge. Currently Babelpod can be only configured with the Web-UI. I would suggest something like that we can start Babelpod with a pre-configured Input and Output device.

What do you think?

vmasko commented 5 years ago

Hey Michael,

You'd probably want to check out my fork to do this. There're two variables at the top of the index.js, defaultInputId and defaultOutputId.

Paste in your values (you can get them from the Web UI by opening the dev console and looking the according option values in the <select id="input"> and <select id="output"> tags) and you're good to go!

The only caveat is that you should restart the service if you've switched input/outputs in the web interface and then want your defaults back. I didn't extend the interface since I'm sure the input and output will always be the same.

ukypayne commented 5 years ago

@vmasko But does your fork have an integration with home bridge? Or does it just offer the default settings?