For several months I have been an enthusiastic owner of a Sonos home sound system. In addition to a brilliant sound and the operation via smartphone and WLAN, this also offers the possibility to implement a control via the SOAP protocol to implement user-defined functions. This means, that it's possible to "hack" the Sonos devices.
Free APIs Available
Fortunately, some non-proprietary APIs are available on the net or on GitHub:
- For Java on any machine and OS (by VMichalak)
- For python on Raspberry Pi
- SoCo API for Python on Raspberry Pi
It has to be said, that the Python APIs not neccessarily run on Windows (at least they didn't run on my machine), but this is not to expect when they are proclaimed as a Raspberry Pi project.
Dependency Nightmare
Though the API of VMichalak was the one that worked for me, it has a lot of dependecies which need to be downloaded or to be downloaded an build what requires Maven.
- OKHTTP (okhttp-3.11.0.jar)
- OKIO (okio-1.14.1.jar)
- Apache Commons Text (commons-text-1.4.jar)
- Apache Commons Lang (commons-lang3-3.7.jar)
- SSDPClient (also from VMichalak)
Kommentare
Kommentar veröffentlichen