senzil / cec-monitor Goto Github PK
View Code? Open in Web Editor NEWHDMI-CEC library with a simple monitor written on ES6 to make cec enabled apps.
License: MIT License
HDMI-CEC library with a simple monitor written on ES6 to make cec enabled apps.
License: MIT License
Hello do you plan to support node 12 ++?
I'm using node 12 and doesn't work
environment:
OS: raspbian strech
node: 12.13.1
in node 8.x works well
There's no information what hardware do i need to use this library.
Does it work with Raspberry Pi? Pulse-eight adapters?
PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: XXXX)
Replace original promise with new Promise through subsequent calls
Hello,
I'm trying to use cec-monitor within an ElectronJS v5.0.2 app, but the app is not starting because it throws an error while loading deasync module. Here it is the error thrown:
App threw an error during load
Error: Could not locate the bindings file. Tried:
→ /home/pi/cityadpro_player/node_modules/deasync/build/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/build/Debug/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/build/Release/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/out/Debug/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/Debug/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/out/Release/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/Release/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/build/default/deasync.node
→ /home/pi/cityadpro_player/node_modules/deasync/compiled/12.0.0/linux/arm/deasync.node
at bindings (/home/pi/cityadpro_player/node_modules/bindings/bindings.js:88:9)
at Object. (/home/pi/cityadpro_player/node_modules/deasync/index.js:30:31)
at Module._compile (internal/modules/cjs/loader.js:808:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:820:10)
at Module.load (internal/modules/cjs/loader.js:677:32)
at tryModuleLoad (internal/modules/cjs/loader.js:609:12)
at Function.Module._load (internal/modules/cjs/loader.js:601:3)
at Module.require (internal/modules/cjs/loader.js:715:19)
at require (internal/modules/cjs/helpers.js:14:16)
at Object. (/home/pi/cityadpro_player/node_modules/@senzil/cec-monitor/lib/cec-monitor.js:17:39)
Does anybody have any clue about how to solve this problem?
Thank you!
Need more info
cec adapter is not ready
TypeError: Cannot read property 'stdin' of null
at .../node_modules/@senzil/cec-monitor/lib/cec-monitor.js:127:29
Update to V2 to publish new features and support breaking changes.
Update Readme, with new features list.
Hi Pablo,
I've opened a git clone of your code and while eslint is included in your dev toolchain, you haven't committed your eslint config to the repo.
If you could do this, then I can ensure any PR I issue will be properly formatted. :)
Damien.
I'm trying to figure out flow of the CEC (today I've started doing anything with it). So far I'm quite lost if it comes to controlling audio systems.
The following command is turning of my audio system (sound bar):
monitor.WriteMessage(CEC.LogicalAddress.BROADCAST, CEC.LogicalAddress.AUDIOSYSTEM, CEC.Opcode.STANDBY);
however I can't find the right combination to do the opposite - turn the audio on. Is the source the broadcast? If yes then audio system id destination. Bu I can't find a Opcode
to put in the command. Could you please help me figure it out? And then how to control the volume of audio system? By mocking remote keys? Or there's a command for that?
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.