jupe / onkyo.js Goto Github PK
View Code? Open in Web Editor NEWOnkyo Receiver controller module
License: MIT License
Onkyo Receiver controller module
License: MIT License
Have a look here for a lot of additional commands. Also for zone 2 and 3
https://github.com/saxn-paule/pimatic-onkyo-avr/blob/master/lib/onkyo.js/onkyo.commands.js
How would I use these commands? So far everything is working great but the A/B speaker commands do not work. Everything else does work. I'm trying it like this:
onkyo.speakerAbControlStatusA()
or like this
onkyo.sendCommand("SPEAKER_AB_CONTROL", "STATUS_A")
Both attempts get me
Unhandled rejection Error: connect ETIMEDOUT 196.168.1.176:60128 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
I'm using version 0.8.2. If any more information is required I'd be happy to provide it.
There is no way to set specific volume ( only +1 or -1 )
It could be usefull to set specific value
Thank you
Just some unknow_msgs while testing
RX: unknown event: Error: Unknown data: DIM01
RX: unknown event: Error: Unknown data: RAS00
RX: unknown event: Error: Unrecognised key: SLI12
HI there, am utilising this great little project in conjunction with my NEEO remote but ive ran into an issue. I have two devices and it doesn't seem to play nice as there is what seems to be port contention. ive fixed this in my local copy by duplicating the package and making it onkyo1.js and changed the port manually to accomodate but it would be great if this could be done in the connect function as below
`var onkyo515 = require('onkyo.js');
var onkyo515 = onkyo515.init({ip: '192.168.1.124', PORT: 60129 });
onkyo515.Connect();
module.exports.onkyo515ButtonPressed = function onkyo515ButtonPressed(name, deviceid) {
console.log('[CONTROLLER]', name, 'button was pressed!');
console.log (name);`
Reason to enhance/problem with existing solution
isOn and isOff rely on cached value and gives boolean
Suggested enhancement
Returns Promise and resolved boolean
Pros
result is always up-to-date
Cons
Breaking change
If the AVR isn't reachable, the Onkyo.prototype.Connect methods should catch the exception from "net.js" and provide a defined callback.
After ES6 Pr merged i have started my work ( Module for domotic software )
The discover function is not exposed and the exemple below is not working.
const {OnkyoDiscover} = require('onkyo.js');
OnkyoDiscover.DiscoverFirst()
.then((onkyo) => {
return onkyo.powerOn();
});
Error
TypeError: Cannot read property 'DiscoverFirst' of undefined
Thank you
Have you ever tried to embed this frame work into a node-red node? There are several example out there but none of it is really comfortable.
Suggested enhancement
Enhance power api like yamaha-nodejs
powerStatus return object like { PWR : true }
Implement or modify existing power api like yamaha package return:
onkyo.isOn()
onkyo.isOff()
What do you think about this feature ?
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.