<commit_before># node-sonos-client

A simple NodeJS client for programmatically controlling Sonos wireless speakers within a network.

## Things Are Moving Fast

This package is still in the process of early development. Things may completely change. Things may be totally broken. If they're not already, they probably will at some point.

## Installation

As of yet, this package doesn't appear on NPM. I'd like to get it to a better place before I put it on there. In the meantime, if you really enjoy frustrating yourself, you can pull this package down from GitHub.

## Goals

- Discovery of all Sonos devices on the network.
- Support for device actions.
    - [x] `GetMute`
    - [x] `SetMute`
    - [ ] `ResetBasicEQ`
    - [x] `GetVolume`
    - [x] `SetVolume`
    - [ ] `SetRelativeVolume`
    - [ ] `GetVolumeDB`
    - [ ] `SetVolumeDB`
    - [ ] `GetVolumeDBRange`
    - [ ] `GetBass`
    - [ ] `SetBass`
    - [ ] `GetTreble`
    - [ ] `SetTreble`
    - [ ] `GetEQ`
    - [ ] `SetEQ`
    - [ ] `GetLoudness`
    - [ ] `SetLoudness`
    - [ ] `GetHeadphoneConnected`
    - [ ] `RampToVolume`
    - [ ] `RestoreVolumePriorToRamp`
    - [x] `GetLEDState`
    - [x] `SetLEDState`
    - [ ] `CreateStereoPair`
    - [ ] `SeparateStereoPair`
    - ...
- Support for zone and transport actions.
    - [ ] `SetAVTransportURI`
    - [ ] `SetNextAVTransportURI`
    - [x] `GetMediaInfo`
    - [x] `GetTransportInfo`
    - [x] `GetPositionInfo`
    - [x] `GetTransportSettings`
    - [x] `GetCrossfadeMode`
    - [x] `Stop`
    - [x] `Play`
    - [x] `Pause`
    - [ ] `Seek`
    - [x] `Next`
    - [ ] `NextSection`
    - [x] `Previous`
    - [ ] `PreviousSection`
    - [x] `SetPlayMode`
    - [x] `SetCrossfadeMode`
    - [ ] `BecomeCoordinatorOfStandaloneGroup`
    - [ ] `DelegateGroupCoordinationTo`
    - [ ] `BecomeGroupCoordinator`
    - [ ] `BecomeGroupCoordinatorAndSource`
    - [ ] `ChangeCoordinator`
    - [ ] `ChangeTransportSettings`
    - [ ] `StartAutoplay`
    - ...
- Support for playlist management.
    - [ ] `AddURIToQueue`
    - [ ] `AddMultipleURIsToQueue`
    - [ ] `ReorderTracksInQueue`
    - [ ] `RemoveTrackFromQueue`
    - [ ] `RemoveTrackRangeFromQueue`
    - [ ] `RemoveAllTracksFromQueue`
    - [ ] `SaveQueue`
    - [ ] `BackupQueue`
    - [ ] `CreateSavedQueue`
    - [ ] `AddURIToSavedQueue`
    - [ ] `ReorderTracksInSavedQueue`
- Support for alarms.
    - ...
- Support for multiple music services. _Not sure if this is in scope._
    - [ ] Spotify<commit_msg>Mod: README<commit_after># node-sonos-client

A simple NodeJS client for programmatically controlling Sonos wireless speakers within a network.

## Things Are Moving Fast

This package is still in the process of early development. Things may completely change. Things may be totally broken. If they're not already, they probably will at some point.

## Installation

As of yet, this package doesn't appear on NPM. I'd like to get it to a better place before I put it on there. In the meantime, if you really enjoy frustrating yourself, you can pull this package down from GitHub.

## Goals

- [x] Discovery of all Sonos devices on the network.
- [ ] Support for device actions.
    - [x] `GetMute`
    - [x] `SetMute`
    - [ ] `ResetBasicEQ`
    - [x] `GetVolume`
    - [x] `SetVolume`
    - [ ] `SetRelativeVolume`
    - [ ] `GetVolumeDB`
    - [ ] `SetVolumeDB`
    - [ ] `GetVolumeDBRange`
    - [ ] `GetBass`
    - [ ] `SetBass`
    - [ ] `GetTreble`
    - [ ] `SetTreble`
    - [ ] `GetEQ`
    - [ ] `SetEQ`
    - [ ] `GetLoudness`
    - [ ] `SetLoudness`
    - [ ] `GetHeadphoneConnected`
    - [ ] `RampToVolume`
    - [ ] `RestoreVolumePriorToRamp`
    - [x] `GetLEDState`
    - [x] `SetLEDState`
    - [ ] `CreateStereoPair`
    - [ ] `SeparateStereoPair`
    - ...
- [ ] Support for zone and transport actions.
    - [ ] `SetAVTransportURI`
    - [ ] `SetNextAVTransportURI`
    - [x] `GetMediaInfo`
    - [x] `GetTransportInfo`
    - [x] `GetPositionInfo`
    - [x] `GetTransportSettings`
    - [x] `GetCrossfadeMode`
    - [x] `Stop`
    - [x] `Play`
    - [x] `Pause`
    - [ ] `Seek`
    - [x] `Next`
    - [ ] `NextSection`
    - [x] `Previous`
    - [ ] `PreviousSection`
    - [x] `SetPlayMode`
    - [x] `SetCrossfadeMode`
    - [ ] `BecomeCoordinatorOfStandaloneGroup`
    - [ ] `DelegateGroupCoordinationTo`
    - [ ] `BecomeGroupCoordinator`
    - [ ] `BecomeGroupCoordinatorAndSource`
    - [ ] `ChangeCoordinator`
    - [ ] `ChangeTransportSettings`
    - [ ] `StartAutoplay`
    - ...
- [ ] Support for playlist management.
    - [ ] `AddURIToQueue`
    - [ ] `AddMultipleURIsToQueue`
    - [ ] `ReorderTracksInQueue`
    - [ ] `RemoveTrackFromQueue`
    - [ ] `RemoveTrackRangeFromQueue`
    - [ ] `RemoveAllTracksFromQueue`
    - [ ] `SaveQueue`
    - [ ] `BackupQueue`
    - [ ] `CreateSavedQueue`
    - [ ] `AddURIToSavedQueue`
    - [ ] `ReorderTracksInSavedQueue`
- [ ] Support for alarms.
    - ...
- [ ] Support for multiple music services. _Not sure if this is in scope._
    - [ ] Spotify
{'fraction_non_alphanumeric': 0.1419187898089172, 'fraction_numerical': 0.0, 'mean_word_length': 2.4679089026915113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4163859', 'n_tokens_mistral': 1787, 'n_tokens_neox': 1756, 'n_words': 413}