Audac R2 client
This client is an adapter to the API provided by audac for the R2, as described by the R2 RS232 Command List.
Bear in mind that this adapter is not complete and only implements setting the volume en switching an input for a zone. Note that this software is only useful when seeking programmatic access to an R2 device via node.
The audac API does not require a password and listens by default on port 5001
var audac = ;// or specify a port: .connect('192.168.1.11',5002);
You can both listen to volume updates (e.g. comming from a DW3020/B wall panel) and set the volume.
This example sets the volume in zone 7 to -50db
Listen for volume updates through node event emitters.
This example sets the input of zone 7 to "input 1"
Listen for these updates as follows: