forked from svrooij/node-sonos-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrendering-control.js
More file actions
19 lines (12 loc) · 887 Bytes
/
Copy pathrendering-control.js
File metadata and controls
19 lines (12 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const SonosDevice = require('../lib').SonosDevice
const sonos = new SonosDevice(process.env.SONOS_HOST || '192.168.96.56')
// // Turn on night mode
// sonos.RenderingControlService.SetEQ({ InstanceID: 0, EQType: 'NightMode', DesiredValue: 1 }).catch(console.error)
// // Turn on speech enhancement
// sonos.RenderingControlService.SetEQ({ InstanceID: 0, EQType: 'DialogLevel', DesiredValue: 1 }).catch(console.error)
// Night mode status
// sonos.RenderingControlService.GetEQ({ InstanceID: 0, EQType: 'NightMode' }).then(resp => console.log(resp.CurrentValue))
// // Speech enhancement status
// sonos.RenderingControlService.GetEQ({ InstanceID: 0, EQType: 'DialogLevel' }).then(resp => console.log(resp.CurrentValue))
// sonos.RenderingControlService.GetVolume({ InstanceID: 0, Channel: 'Master' }).then(console.log)
sonos.AVTransportService.GetPositionInfo().then(console.log)