-
Notifications
You must be signed in to change notification settings - Fork 0
Development on jasperodus
For discovery (via multicast) and UPnP event subscription (via host:port listener) the backend needs to be on the same subnet as the SONOS. For that reason we're developing the backend on jasperodus (on saturn wifi) rather than gargan (on jupiter wired). The frontend is still served from vagrant on gargan.
Jasperodus isn't set up presently to run vagrant/docker, so you can just use a local virtualenv instead. This means that you won't have a dedicated internal IP for your backend, rather you'll serve on jasperodus's IP with a unique port.
Add to .ssh/config
on gargan:
Host jasperodus-wifi jasperodus-wifi.jupiter jj
HostName jasperodus-wifi.jupiter
ForwardAgent yes # so git works
Now you can ssh from gargan to jasperodus:
ssh jj
and get things set up:
git clone [email protected]:scampersand/sonos-back.git
cd sonos-back
mkvirtualenv -p python3 sonos-back
workon sonos-back
pip install -r requirements.txt
Now you can start the server. This will attempt to pick a unique port based on your UID. If it isn't unique, you can override with -p PORT
./run-server.bash