setting up a second instance of sonospy

39 views
Skip to first unread message

wakey

unread,
Aug 2, 2021, 4:13:37 PM8/2/21
to Sonospy Development
hi

I have been running sonospy as my sonos music service for a long time now and it has been great. I'm running it on an ancient dell laptop with linux mint 18 and now I want to set up a second instance on the home network on another laptop because linux mint 18 is EOL.

But everything is working so I don't want to get stuck trying to do an upgrade on the existing service. I'd like to get a parallel sonsopy going on a supported linux.

I have an old thinkpad R61 running linux popos (ubuntu based) and I have transferred a copy of the sonospy folder to it. My first step was to get the database scan.py going, which is now successfully working after getting python to point to python 2.7.18 etc.

Now, I'm not sure how get a second sonospy with a different name (and SID is it?) showing up in Sonos. I use a windows 10 machine with the Sonos S1 Controller and there would be some firewall stuff to do there, but I'm hoping that the iphone sonos controller will be able to show the new instance and I can take it from there.

So my sticking point is how to get the second parallel sonsopy instance going which may mean changes to the startup of the service, currently:

python pycpoint.py -p -sSonospy=Sonospy,sonospy.db,mydefaultindex.ini -r

and the underlying configuration.

Thanks

Nigel

wakey

unread,
Aug 3, 2021, 6:08:47 AM8/3/21
to Sonospy Development
hi

On popos linux laptop with copy of sonospy folder that is working successfully on another old laptop:

1. Added smapi_sid=247 to pycpoint.ini

2. python pycpoint.py -p -sSonospy=FRED,sonospy.db,mydefaultindex.ini -r

3. Results in:
the server couldn't fulfil the request error code 400 Reason: Bad Request
customsd call success: False, args: {'name': '', 'sid': '247'}

the server couldn't fulfil the request error code 400 Reason: Bad Request
customsd call success: False
plus another object dump

4. sonospy doesn't crash

5. Confirmed with gufw that firewall is not activated.

Feels like something obvious...

Cheers

wakey

unread,
Sep 12, 2021, 6:10:45 AM9/12/21
to Sonospy Development
Quick update. With the existing sonospy sid as a default of 240 changed the second instance from a sid of 247 to 241 and it is now working on linux pop-os.
Sonospy now working on two active instances, at the same time.
Reply all
Reply to author
Forward
0 new messages