denon-heos

2.0.0 • Public • Published

Denon Heos

This is a module to control Denon Heos speakers using Node.js. Not all API calls are added yet, but it should be good enough for use.

  • Discover speakers (Wi-Fi & LAN)
  • Send commands (e.g. play, pause, set volume)
  • Listen to events from a speaker (e.g. track or volume changed)
  • Automatically reconnect (even if the device's IP has changed 🎉)

Installation

npm install denon-heos

Example

const { Discover } = require('denon-heos');
const discover = new Discover();
discover.on('device', ( device ) => {
  device.instance.connect().then(async () => {
    const info = await device.instance.playerGetPlayerInfo();
    console.log(info);
  }).catch(console.error);
})
discover.start();

For more examples, see ./examples.

Contributing

More API methods need to be added. Help is welcome, see ./assets/docs/ for the specifications.

Readme

Keywords

none

Package Sidebar

Install

npm i denon-heos

Weekly Downloads

1

Version

2.0.0

License

ISC

Unpacked Size

124 kB

Total Files

8

Last publish

Collaborators

  • robinbolscher
  • weejewel
  • athombv-github-actions