node-eiscp
node-eiscp copied to clipboard
Command mapping broken
Trying this out at home and actually having the exact same issue as this: https://github.com/tillbaks/node-eiscp/issues/5#issue-23552765. If I do eiscp.raw('MVLxx') I can manipulate the volume, but eiscp.command('volume=xx') gets me an "arg not in range" error.
I am having this issue also.
I have node -v v7.3.0
I can run the example 3.js script and get: [ 'system-power', 'audio-muting', 'speaker-a', 'speaker-b', 'speaker-layout', 'master-volume', 'volume', 'tone-front', 'tone-front-wide', 'tone-front-high', 'tone-center', 'tone-surround', 'tone-surround-back', 'tone-subwoofer', 'sleep-set', 'speaker-level-calibration', 'subwoofer-temporary-level', 'center-temporary-level', 'display-mode', 'dimmer-level', 'setup', 'memory-setup', 'audio-infomation', 'video-infomation', 'input-selector', 'recout-selector', . . .
I used wget to populate the eiscp-commands.yaml file. When I run "node eiscp-commands-convert.js" I get:
[jack@jbox eiscp]$ node eiscp-commands-convert.js
/home/jack/node-eiscp/node_modules/eiscp/eiscp-commands.yaml:4
description: System Power Command
^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:78:16)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.
so.. if I send: eiscp.raw("AMTQSTN");
I get the status of the mute ( AMT ) but if I do something like: audio-muting toggle I get: 24 Dec 19:40:32 - DEBUG (command_to_iscp) Zone: main | Command: audio-muting | Argument: toggle 24 Dec 19:40:32 - ERROR (cmd_not_supported) Command audio-muting in zone main is not supported on this model.
or volume=22 I get: 24 Dec 19:41:45 - DEBUG (command_to_iscp) Zone: main | Command: volume | Argument: 22 24 Dec 19:41:45 - ERROR (arg_not_in_range) Command volume=22 is not available on this model
to install I created a package.json file with: { "dependencies": { "eiscp": "git://github.com/tillbaks/node-eiscp.git" } }
and did a npm install then I ran the sample .js scripts.
I have a "model":"TX-NR616" receiver.
jack