Madsonic Sonos

Sonos


New Firmware 7.1 support

Do you have a Sonos system? Madsonic is for you.


Madsonic comes with built-in support for your Sonos players.
Access your personal music library the same way as other Sonos music services like Spotify or Google Play.

Features

  • Works with giant music libraries. Not limited to 65,000 songs like the native Sonos controller.
  • Configure which folders each user is allowed to access.
  • Access your personal Madsonic playlists (as well as Sonos playlists).
  • Star your favorites.
  • Audioscrobbling and play statistics.
  • Powerful search feature.
  • The Madsonic web app shows who is playing what on Sonos.
  • Artist radio for playing similar songs.
  • Shuffle play whole library or by artist.
  • Album lists: Random, Recently added, Starred, Top rated, Most Played, Recently played, By decade, By genre.
  • Same folder structure / album art / media meta data as in the Madsonic web app.

Setting it up

Connecting Sonos to your Madsonic server is super easy:

  1. In the Madsonic web page, enable the Sonos music service in Settings > Sonos.
  2. In the Sonos controller, click Add Music Services and select Madsonic.
  3. Select I already have an account, then enter your Madsonic username and password.
  4. You're done. The list of music sources now includes the Madsonic music service.

Advanced settings

Lossless audio

For maximum compatibility, Madsonic is by default transcoding non-mp3 music files to mp3 when streaming to Sonos. However, Sonos natively supports several other audio formats, such as FLAC and OGG. To disable the transcoding in Madsonic, select Settings > Players, select the Sonos player, and then disable the "mp3 audio" transcoding.

Multiple Madsonic servers

Sonos music services are uniquely identified by a "SID" (a number between 240 and 253). By default, Madsonic uses SID 244. If you want to make multiple Madsonic servers on your local network available to Sonos, you have to assign a unique SID to each server. This setting is not available through the web interface, but you can add this line to the madsonic.properties file (located in /var/madsonic, c:/madsonic or /Library/Application Support/Madsonic) to change it.

SonosServiceId=250

Remember to restart Madsonic to make it take effect.

Using a remote Madsonic server

Madsonic automatically configures Sonos players on your local network. If Madsonic and Sonos are not on the same network you can still connect them, using a manual one-time registration procedure. Make sure you have the IP address of the Sonos player and Madsonic server available. You can find the Sonos IP by selecting About my Sonos System in the Sonos controller app.

  1. Open http://SONOS_IP:1400/customsd.htm in a browser.
  2. Enter the following values in the web form:
    • SID – Any legal value except 244
    • Service Name – Any name, for instance "Madsonic Remote"
    • Endpoint URL – http://MADSONIC_IP:4040/ws/Sonos?ip=MADSONIC_IP
    • Secure Endpoint URL – http://MADSONIC_IP:4040/ws/Sonos?ip=MADSONIC_IP
    • Polling Interval – 1200
    • Authentication – Session ID
    • Strings Table – Version: 8, URI: http://MADSONIC_IP:4040/sonos/strings.xml
    • Presentation Map – Version: 15, URI: http://MADSONIC_IP:4040/sonos/presentationMap.xml
    • Container Type – Music Service
    • Capabilities – Search, Favorites, User Content Playlists, Extended Metadata

Finally, in the Sonos controller, click Add Music Services and select the newly added Madsonic music service.

Disclaimer

Madsonic is not affiliated with Sonos, Inc. Sonos and its product names are trademarks or registered trademarks of Sonos, Inc.