With a Sonos player, adding local service to customSD does not show up Music Services

ぐ巨炮叔叔 提交于 2020-01-16 10:30:11

问题


I have the starting shell of a SMAPI service programmed in Node.js. The service is running off of a local IP address.

When I goto the customSD page for my Sonos Play:1 and add the service details to it and it returns 'Success!' upon clicking submit.

When I open the Sonos Controllers on both my desktop and mobile, the service does not show up in the list of music services you can add.

I have logging on the server turned on to max and there are no connection attempts ( either SSL or HTTP ) at all.

From what I've read, a running service is not needed for it to show up in the list. Once it's added via customSD it should show up in the Music Service settings.

TO NOTE: A self signed cert is being used for https for connection testing only. I have certificate request logging turned on and there is NO connection attempt from the Sonos Play:1 to the local server at all. From everything I've read this shouldn't matter as it should show up in the Music Service list until you try to add it and then it will connect to the service.

The only thing I can think of is if this service needs to be registered with Sonos before it can be added via customSD, however at this time nothing I've read says that.

The other thing is if this service needs to be running off a domain name for some reason. However in the documentation it lists IP address so it would be bad documentation then.

I expect the service added via customSD should show up in the list. It does not appear when clicking on add.


回答1:


Understood the issue and YvesGrantSonos has updated the documentation.

If you're developing locally a non-https IP address should be used for both the secure and non-secure API URI's.




回答2:


You should be able enter a local IP address for the SMAPI service. For testing, this should be on the same local network as the Sonos player. Be sure to include the port number that the service is running on (i.e. http://192.168.1.2:8080/musicservice). You can use the same IP and port for secure and insecure connections.



来源:https://stackoverflow.com/questions/57281874/with-a-sonos-player-adding-local-service-to-customsd-does-not-show-up-music-ser

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!