Yamaha-nodejs
A node module to control your yamaha receiver. Tested with RX-V775, should work with all yamaha receivers with a network interface.
Install
npm install yamaha-nodejs
Example
var YamahaAPI = ;var yamaha = "192.168.0.100";yamaha;
Prerequisites
- To power on the yamaha, network standby has to be enabled
- The Yamaha reveiver is stateful. Some commands only work work if the receiver is in the right state. E.g. to get web radio channels, the "NET RADIO" input has to be selected.
Methods
var yamaha = "192.168.0.100"var yamaha = // Auto-Discoveryyamaha // or "System" for sytem poweryamaha // or "System" for sytem poweryamahayamaha //Volumeyamaha // Value must be divisble by 5 or value will be rejectedyamahayamahayamahayamaha //Extended Volume Settingsyamaha //-60 to 60 (may depend on model)yamaha //-60 to 60 (may depend on model)yamaha //-60 to 60 (may depend on model)yamaha //0 to 5 (may depend on model)yamaha //0 to 3 (may depend on model)yamahayamahayamahayamahayamahayamaha //Playbackyamahayamahayamahayamahayamaha //Remote (Case Sensitive Values)yamaha // 'Up', 'Down', 'Left', 'Right', 'Return', 'Sel'yamaha // 'Option', 'Display' //Switch Inputyamahayamaha //Party Modeyamahayamahayamahayamaha //Basicyamaha //Get Infoyamaha yamahayamahayamahayamaha // FM Tuneryamahayamahayamahayamaha //Select Menu Itemsyamahayamaha // Single Commands, receiver has to be in the right stateyamahayamaha // Chained Commands, they ensure the receiver is in the right stateyamahayamaha // Find the index of a list item to select using the name of the item,// returns -1 if not found. Will move the list page down so index will always// between 1 and 8.yamaha // Zone Commandsyamahayamaha
Zones
The zone parameter is optional, you can pass a number or a string
Promises
All these methods return a promise:
yamaha
Execute Tests
mocha mochatestjs --ip 192168025or with autodiscoverymocha mochatestjs
Discovery
If the IP is omitted in the constructor, the module will try to discover the yamaha ip via a SSDP call. Thanks @soef @mwittig
Changelog
0.8:
- FIX Remove get request delays