Skip to content

Commit

Permalink
fix: Fixing build (#15)
Browse files Browse the repository at this point in the history
* fix: Fixing build
* docs: Typ-o in readme
  • Loading branch information
svrooij authored Dec 21, 2019
1 parent 4efa7f8 commit 1058f7e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ manager.InitializeWithDiscovery(10) // Search for all devices in your network, f

I also implemented extra functionatity for each player. (mostly combining calls):

- **.AddUriToQueue('spotify:track:0GiWi4EkPduFWHQyhiKpRB')** - Add a track to be next track in the queue, metadata is guessed.
- **.AlarmList()** - List all your alarms
- **.AlarmPatch({ ID: 1, ... })** - Update some properties of one of your alarms.
- **.JoinGroup('Office')** - Join an other device by it's name. Will lookup the correct coordinator.
- **.PlayNotification({})** - Play a single url and revert back to previous music source (playlist/radiostream). See [play-notification.js](./examples/play-notification.js)
- **.PlayTTS({})** - Generate mp3 based on text, play and revert back to previous music source. See [Text-to-Speech](#text-to-speech)
- **.SetAVTransportURI('spotify:track:0GiWi4EkPduFWHQyhiKpRB')** - Set playback to this url, metadata is guessed. This doens't start playback all the time!
- **.SwitchToLineIn()** - Some devices have a line-in. Use this command to switch to it.
- **.AddUriToQueue('spotify:track:0GiWi4EkPduFWHQyhiKpRB')** - Add a track to be next track in the queue, metadata is guessed :musical_note:.
- **.AlarmList()** - List all your alarms :alarm_clock:
- **.AlarmPatch({ ID: 1, ... })** - Update some properties of one of your alarms :clock330:.
- **.JoinGroup('Office')** - Join an other device by it's name. Will lookup the correct coordinator :speaker:.
- **.PlayNotification({})** - Play a single url and revert back to previous music source (playlist/radiostream) :bell:. See [play-notification.js](./examples/play-notification.js)
- **.PlayTTS({})** - Generate mp3 based on text, play and revert back to previous music source :mega:. See [Text-to-Speech](#text-to-speech)
- **.SetAVTransportURI('spotify:track:0GiWi4EkPduFWHQyhiKpRB')** - Set playback to this url, metadata is guessed :musical_note:. This doens't start playback all the time!
- **.SwitchToLineIn()** - Some devices have a line-in. Use this command to switch to it :microphone:.
- **.SwitchToQueue()** - Switch to queue (after power-on or when playing a radiostream).
- **.SwitchToTV()** - On your playbar you can use this to switch to TV input.
- **.TogglePlayback()** - If playing or transitioning your playback is paused. If stopped or paused your playback is resumed.
- **.SwitchToTV()** - On your playbar you can use this to switch to TV input :tv:.
- **.TogglePlayback()** - If playing or transitioning your playback is paused :arrow_forward:. If stopped or paused your playback is resumed.

### Shortcuts

Expand Down Expand Up @@ -299,5 +299,5 @@ Creating a library from scratch is quite hard, and I'm using a lot of stuff from

[link_sponsor]: https://github.com/sponsors/svrooij
[link_issues]: https://github.com/svrooij/node-sonos-ts/issues
[link_npm]: https://www.npmjs.com/package/@svrooij/sonos-ts
[link_npm]: https://www.npmjs.com/package/@svrooij/sonos
[link_travis]: https://travis-ci.org/svrooij/node-sonos-ts
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"gen-srv": "node ./src/generator/service-generator.js",
"coverage": "nyc -r lcov -e .ts -x \"*.test.ts\" npm run test",
"postinstall": "echo \"Check out the documentation in https://github.com/svrooij/node-sonos-ts or give me a shoutout on twitter @svrooij\"",
"semantic-release": "semantic-release"
"semantic-release": "semantic-release",
"prepack": "npm run build"

},
"repository": {
"type": "git",
Expand Down

0 comments on commit 1058f7e

Please sign in to comment.