mariolukas/HydraPlay

Integrate Snapcast_stream_switch

rogerquake opened this issue · 1 comments

I'm trying to integrate snapcast_stream_switch into the docker container. I got the build piece in the Dockerfile working fine, but I haven't been successful in getting the python file to execute after snapcast is running. It's just a stand-alone python file that connects to snapcast to send API calls to switch between streams. Any advice would be appreciated for the optimal way to integrate the python file.

Got it all working! Added the steps to download the file into the DockerFile and then modified the entrypoint.sh file to this:

/app/hydraplay.sh --config /tmp/hydra.config.json &
python3 -u /usr/local/lib/snapcontrol.py