Skip to content

This Swift/SwiftUI (MacOS) demo uses unsupported (i.e. unofficial) Sonos API requests to access Sonos devices on the local network.

License

Notifications You must be signed in to change notification settings

denisblondeau/SonosAPIDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonos API Demo

This Swift/SwiftUI (MacOS) demo uses unsupported (i.e. unofficial) Sonos API requests to access Sonos devices on the local network.

Static Badge Static Badge

About the Project

This demo:

  • Retrieves all Sonos devices on the local network.
  • Displays the groups (consisting of Sonos speakers/devices) in the local household.
  • Displays the media image for the selected group with various details (e.g. track title, track length, etc.)
  • Subscribes to Sonos events (e.g. volume change, etc.)

Prerequisites

  • Before building/running this application, the Sonos API package needs to be installed: https://github.com/denisblondeau/SonosAPI

  • In SonosModel.swift, you need to set the callback URL. The callback URL is used by the Sonos coordinator to notify this demo of specific events.

  private var callbackURL = URL(string: "URL:PORT")

Testing

Once you have launched this application:

1) Select a Sonos group in the demo.
2) Launch the Sonos application on your mobile device and select the same group that you selected in the demo.
3) Changing the volume in the Sonos application on your mobile device will automatically adjust the volume in the demo application.

License

Distributed under the MIT License. See LICENSE.txt for more information.

About

This Swift/SwiftUI (MacOS) demo uses unsupported (i.e. unofficial) Sonos API requests to access Sonos devices on the local network.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages