Comments (4)
yamaha-nodejs implementation for isOn()
/isOff()
looks like it returns true/false depend on cached status - right ? in fact there is cache for these already - onkyo.deviceState.PWR
-for example, which should tell if powers are on/off. I could add functions for it like you proposed :)
from onkyo.js.
Yes you are right.
I just think this is more natural, I have already implemented deviceState so this is not a problem right now.
Just an idea. Feel free to close this issueπ
from onkyo.js.
sorry, I did it already and released to npm :D
from onkyo.js.
I just looked a vit more deeply yamaha library and yes it is Promise api - it was wrapped to promise based here: https://github.com/PSeitz/yamaha-nodejs/blob/0bd1d83371061332a30bfefbb2f9d76c6c5002bf/simpleCommands.js#L452 .
So onkyo.js behaviours now a bit different than yamaha lib for isOn and isOff -functions. Perhaps I should switch that to Promise based - at least it is always up-to-date because no cached value needed..
from onkyo.js.
Related Issues (10)
- Add optional port configuration HOT 4
- No error handling in Connect() method HOT 2
- Additional commands HOT 2
- OnkyoDiscover class is not exposed HOT 4
- Add api to set specific volume levels HOT 9
- isOn and isOff to promises
- unknow_msgs HOT 6
- onkyo.js available in Node-Red HOT 3
- Timeout when using SPEAKER_AB_CONTROL commands? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onkyo.js.