News for hackers. Stuff that matters.
Re:Hacking Sonos by klochner on Tuesday April 22, 2014 @11:57PM (#7632005)
API docs or it didn't happen.

Looks like a cool project, I just find it hard to believe he used wireshark to figure out the API on his own, given that he acknowledges:

    I took a few bits from @n1mda's project: https://github.com/n1mda/sonos-objc
Sorry to be cynical, my BS meter just went through the roof.
Re:Hacking Sonos by n1mda on Wednesday April 23, 2014 @04:23AM (#7632800)
Hey, I'm n1mda. Cool to see this project on HN! I made sonos-objc on my spare time, and it's not too hard to reverse the API with Wireshark.

Perhaps I could continue developing a Sonos API for SonosKit (I have a few improvements on a local repo)

Re:Hacking Sonos by enigmo on Wednesday April 23, 2014 @01:20AM (#7632280)
It's not really that novel. When I wrote a Sonos client (2007) there were a few out there already. Getting things working did involve a lot of time in Netmon (nee: Wireshark), and reading UPnP specs.

https://github.com/NathanHowell/Sonority https://github.com/NathanHowell/upd2 <-- update image extractor

A few of us went a bit further, found some telnet backdoors and cracked the root password.

Re:Hacking Sonos by nthnb on Wednesday April 23, 2014 @02:53AM (#7632554)
Once you figure out all the different service types you can visit http://<SPEAKER_IP>:1400/xml/<SERVICE_NAME>1.xml to get a better idea of the types of things you can do. This was a helpful post after I started poking around: http://blog.travelmarx.com/2010/06/exploring-sonos-via-upnp....
Re:Hacking Sonos by thejosh on Wednesday April 23, 2014 @12:01AM (#7632018)
Re:Hacking Sonos by cushychicken on Wednesday April 23, 2014 @12:11AM (#7632046)
This has migrated into its own project (I don't think Rahim is officially affiliated any more): https://github.com/SoCo/SoCo

Also, the author used his own Sonos library written in ObjectiveC rather than Python: https://github.com/nathanborror/SonosKit

Re:Hacking Sonos by rahim on Wednesday April 23, 2014 @12:22AM (#7632086)
Yup, that's correct, though the old library in my repo still works and is used by some folks, maintenance of SoCo is handled by a group of very talented and friendly developers under https://github.com/SoCo/SoCo

It looks like the author used SoCo for the Raspberry Pi project mentioned at the bottom of the article.

Re:Hacking Sonos by cushychicken on Wednesday April 23, 2014 @03:09AM (#7632591)
Hey Rahim - you did great work on that project. I've used it a few times with an RPi to control my household. Works like a charm!
Re:Hacking Sonos by nthnb on Wednesday April 23, 2014 @02:55AM (#7632558)
SoCo was a big inspiration :)