File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ The actions supported as of today:
97
97
* clipall
98
98
* join / leave (Grouping actions)
99
99
* sub (on/off/gain/crossover/polarity) See SUB section for more info
100
+ * nightmode (on/off, PLAYBAR only)
101
+ * speechenhancement (on/off, PLAYBAR only)
102
+
100
103
101
104
State
102
105
-----
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ function nightMode ( player , values ) {
4
+ const enable = values [ 0 ] === 'on' ;
5
+ return player . nightMode ( enable ) ;
6
+ }
7
+
8
+ function speechEnhancement ( player , values ) {
9
+ const enable = values [ 0 ] === 'on' ;
10
+ return player . speechEnhancement ( enable ) ;
11
+ }
12
+
13
+ module . exports = function ( api ) {
14
+ api . registerAction ( 'nightmode' , nightMode ) ;
15
+ api . registerAction ( 'speechenhancement' , speechEnhancement ) ;
16
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sonos-http-api" ,
3
- "version" : " 1.3.1 " ,
3
+ "version" : " 1.4.0 " ,
4
4
"description" : " A simple node app for controlling a Sonos system with basic HTTP requests" ,
5
5
"scripts" : {
6
6
"start" : " node server.js"
18
18
"json5" : " ^0.5.1" ,
19
19
"node-static" : " ~0.7.0" ,
20
20
"request-promise" : " ~1.0.2" ,
21
- "sonos-discovery" : " https://github.com/jishi/node-sonos-discovery/archive/v1.3.2 .tar.gz"
21
+ "sonos-discovery" : " https://github.com/jishi/node-sonos-discovery/archive/v1.4.0 .tar.gz"
22
22
},
23
23
"engines" : {
24
24
"node" : " >=4.0.0" ,
You can’t perform that action at this time.
0 commit comments