jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.83k stars 462 forks source link

Old players not found #812

Open Sjekke opened 2 years ago

Sjekke commented 2 years ago

I've installed the bootable version on a RPI 3. When I go to zones, the S1's are not found (connect:Amp and Play 5 GEN1 both via Wifi). My Play:1 (wifi) and Beam GEN1 (cable) are found. Suggestions?

jishi commented 2 years ago

The api can only handle one system at a time. Since you seem to be using a split setup, you would need to run two different installations with two different configs. You can peg the api to only discover one of the systems through settings.json, you need to specify the household ID.

See https://github.com/jishi/node-sonos-http-api/issues/783 for a reference.

On Sun, 7 Nov 2021, 16:21 Sjekke, @.***> wrote:

I've installed the bootable version on a RPI 3. When I go to zones, the S1's are not found (connect:Amp and Play 5 GEN1 both via Wifi). My Play:1 (wifi) and Beam GEN1 (cable) are found. Suggestions?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2IY7VI5WNY46YID6Z53UK2KRHANCNFSM5HQ5UARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Sjekke commented 2 years ago

Thx for the quick response. I thought it was based on UPNP because my Infuse app discovers all my players.

Have a nice day.

jishi commented 2 years ago

It is upnp but upnp has no concept of grouping, hence it only finds one player to discover the topology and that one defines which other players are part of the same topology.

Sjekke commented 2 years ago

Do you thinks it possible to run 2 versions in Docker (on a Synology) but with 2 different configs with different listening ports and using the household.id?

jishi commented 2 years ago

Yes, it should work. You need to specify the two different households in the settings file, and then also map them to different ports. I'm not sure if the http-api has a configurable port though, but you can easily change that in server.js if needed.

On Fri, 12 Nov 2021, 16:44 Sjekke, @.***> wrote:

Do you thinks it possible to run 2 versions in Docker (on a Synology) but with 2 different configs with different listening ports and using the household.id?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/812#issuecomment-967214850, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I6KDVVS7WKAALMWLJDULUY45ANCNFSM5HQ5UARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

dwightstanley commented 2 years ago

I am altering the settings.json file on my Unraid Docker for this. The program is looking for /app/settings.json but on my system it should be /app/setting/settings.json I don't know how I can change this to make is work properly. When use the docker console I cannot create the settings.json in the /app folder.

This is my docker output

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='docker-node-sonos-http-api' --net='host' -e TZ="America/Halifax" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Tower" -e HOST_CONTAINERNAME="docker-node-sonos-http-api" -e 'TCP_PORT_5005'='5005' -e 'PUID'='99' -e 'PGID'='100' -e 'TCP_PORT_5006'='5006' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:5005]' -l net.unraid.docker.icon='https://github.com/jishi/node-sonos-http-api/blob/master/static/sonos-icon.png?raw=true' -v '/mnt/user/appdata/sonos/settings/':'/app/settings':'rw' -v '/mnt/user/appdata/sonos/clips':'/app/static/clips':'rw' -v '/mnt/user/appdata/sonos/cache':'/app/cache':'rw' -v '/mnt/user/appdata/sonos/presets':'/app/presets':'rw' -v '/mnt/user/appdata/letsencrypt/keys/':'/keys':'rw' --restart=always 'chrisns/docker-node-sonos-http-api' ` Any ideas on how I can create a settings.json file that my system can find?

jishi commented 2 years ago

@dwightstanley you can mount individual files as well in addition to folders when starting a container.

-v '/mnt/user/appdata/sonos/settings/settings.json':'/app/settings.json':'rw'

killthekid commented 2 years ago

Hey Folks, were shall i enter my household ID into the settings.js file?

jishi commented 2 years ago

You create a settings.json and put it in there. See https://github.com/jishi/node-sonos-http-api/issues/396

On Mon, 24 Jan 2022, 22:34 Alex, @.***> wrote:

Hey Folks, were shall i enter my household ID into the settings.js file?

— Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/812#issuecomment-1020570757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I622HNEN46XSON2SUTUXXAW3ANCNFSM5HQ5UARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

killthekid commented 2 years ago

You create a settings.json and put it in there. See #396 On Mon, 24 Jan 2022, 22:34 Alex, @.> wrote: Hey Folks, were shall i enter my household ID into the settings.js file? — Reply to this email directly, view it on GitHub <#812 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I622HNEN46XSON2SUTUXXAW3ANCNFSM5HQ5UARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.>

Hey @jishi - if you are talking about the settings.js stored in /home/pi/node-sonos-http-api/settings.js - this one is (was) already there - if here, in what area of the code can i input the values?

If not, in what path should i create the settings.js ?

THANKS!

EDIT: may i understood it just now. I have to create a new file, called settings.json (not settings.js as already there by the system) in the system folder. on the RPi in home/pi/node-sonos-http-api/"settings.json" ? correct?

jishi commented 2 years ago

No, you create a new file called settings.json in the same folder as settings.js.

On Mon, 24 Jan 2022, 23:44 Alex, @.***> wrote:

You create a settings.json and put it in there. See #396 https://github.com/jishi/node-sonos-http-api/issues/396 … <#m1869891565670941219> On Mon, 24 Jan 2022, 22:34 Alex, @.> wrote: Hey Folks, were shall i enter my household ID into the settings.js file? — Reply to this email directly, view it on GitHub <#812 (comment) https://github.com/jishi/node-sonos-http-api/issues/812#issuecomment-1020570757>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I622HNEN46XSON2SUTUXXAW3ANCNFSM5HQ5UARQ https://github.com/notifications/unsubscribe-auth/AAYE2I622HNEN46XSON2SUTUXXAW3ANCNFSM5HQ5UARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.>

Hey @jishi https://github.com/jishi - if you are talking about the settings.js stored in /home/pi/node-sonos-http-api/settings.js - this one is (was) already there - if here, in what area of the code can i input the values?

If not, in what path should i create the settings.js ?

THANKS!

— Reply to this email directly, view it on GitHub https://github.com/jishi/node-sonos-http-api/issues/812#issuecomment-1020624563, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYE2I52JUBNOF3A6MKUYXDUXXI3RANCNFSM5HQ5UARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>