jtangelder / denon-remote Goto Github PK
View Code? Open in Web Editor NEWControl the Denon AVR in your local network (with telnet)
Control the Denon AVR in your local network (with telnet)
Hi, I got some error when run denon, I run it at raspberry, any idea?
/root/.npm-global/lib/node_modules/denon/index.js:12
denon.on('connect', ()=> {
^
SyntaxError: Unexpected token )
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
HI!
After installing node-js legacy on a Mint17 machine i got these errors:
Did I miss something?
/usr/local/lib/node_modules/denon/lib/DenonClient.js:3
module.exports = class DenonClient {
^^^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/denon/index.js:5:21)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
I'm trying to get the server software to run, but it won't start up at all. I tried installing Express and the middleware functions to no avail.
Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
at Function.Object.defineProperty.get (C:\Users\tyler.WORKGROUP\Documents\GitHub\denon-remote\node_modules\express\lib\express.js:99:13)
at Object.<anonymous> (C:\Users\tyler.WORKGROUP\Documents\GitHub\denon-remote\server.coffee:13:16)
at Object.<anonymous> (C:\Users\tyler.WORKGROUP\Documents\GitHub\denon-remote\server.coffee:2:1)
at Module._compile (module.js:460:26)
at Object.exports.run (C:\Users\tyler.WORKGROUP\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee-script\coffee-script.js:134:23)
at compileScript (C:\Users\tyler.WORKGROUP\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee-script\command.js:224:29)
at compilePath (C:\Users\tyler.WORKGROUP\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee-script\command.js:174:14)
at Object.exports.run (C:\Users\tyler.WORKGROUP\AppData\Roaming\npm\node_modules\coffee-script\lib\coffee-script\command.js:98:20)
at Object.<anonymous> (C:\Users\tyler.WORKGROUP\AppData\Roaming\npm\node_modules\coffee-script\bin\coffee:7:41)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
Hi,
Trying to install on Syonlogy NAS
Logged in as root. Any help?
npm install jtangelder/denon-remote -g
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in:
Hello,
i had tried your denon-remote and it works well with my denon x2000 if i use cli.
But if i use the server i only get a static page (with status not connected) and this output:
(function() { var Denon, socket; Denon = (function() { return { connect: function(host, port) { return socket.emit('denon.connect', { host: host, port: port }); }, command: function(cmd, params) { return socket.emit('denon.command', { cmd: cmd, params: params || [] }); }, exec: function(cmd, params) { return socket.emit('denon.exec', { cmd: cmd, param: param || "" }); } }; })(); socket = io.connect(); socket.on('connect', function(data) { return Denon.connect('192.168.2.170', 23); }); socket.on('denon.connected', function(data) { console.log('denon.connected!');
can you please help?
if you need some informations about module versions let me know.
The custom command option only sends the first param of a command.
For example:
command PSCINEMA EQ. ?
won't send the whole command to the AVR,
instead PSCINEMA
will be sent without the rest of the parameters.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.