-
Notifications
You must be signed in to change notification settings - Fork 2
Node-red crashs after activating example flow #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey Ralph, Sorry to hear its not playing nice with your setup. Here is something to try to help diagnose the issue. The fork of cec-monitor I created includes a node.js command line tool. You can run it like so: $ cd ~/.node-red/node_modules/@damoclark/cec-monitor/bin
$ node cli.js The output from mine looks like so:
If you get this far, at the
See if you receive any output from that. If you press Try some of the commands as part of the example flow I created. Do they work? If this works, then the problem may be with the node-red part, rather than the underlying cec-monitor module. See how you go and report back. Damo. |
Hello Damo, thanks for the very fast answer. I've just tried it. Same error, here is the output: CEC-MON> {"type":"TRAFFIC","number":"156","flow":"OUT","source":14,"target":0,"opcode":140,"args":[],"event":"GIVE_DEVICE_VENDOR_ID","data":{}} Thanks and regards, Ralf |
Hey Ralf, Sorry, busy work period. Could you provide some details in terms of your device/software.
The following commands will help if you aren't too familiar with Linux: uname -a
node --version
npm --version Damo. |
Hey Damo, sorry, same here :-) Here the versions output: Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux node: v6.12.3 Thx & Regards, Ralf |
Hey Ralf.
Okay, so I suspect the problem is with your version of npm. Version 3 does
not support scoped packages. In the past, the error messages for this
issue have been different, so there may be other issues compounding the
problem. But as a starting point, I'd suggest updating to the latest npm.
$ sudo npm install -g npm
That should bring you up to around v5.6 ish.
Then attempt the installation steps once again and see how you go.
Damo.
…On 29 January 2018 at 06:26, gaudes ***@***.***> wrote:
Hey Damo,
sorry, same here :-)
Here the versions output:
Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l
GNU/Linux
node: v6.12.3
npm: 3.10.10
Thx & Regards, Ralf
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQypnBSZPvogEZJfRX4yM-PBVYUlRYhks5tPNfYgaJpZM4RSUsc>
.
|
Hey Damo, I've upgraded npm to 5.6.0 now. I've done uninstall and install, still the same problem here. Thx & Regards, Ralf |
I got the same problem as the one above:
gives:
My hardware & software profile:
Any ideas on what's making it fail? Regards - |
Finally getting back to this error. So I am unable to reproduce this error on my set up. But I think there error may be caused by an uninitialised variable in cec-monitor library. I've attempted to fix this with the latest commit to cec-monitor. Try performing an npm update within your /home/pi/.node-red directory and give it another whirl. You want to have version 1.0.10-release.5 of cec-monitor installed from npmjs.org. Let me know how it goes. Damo. |
Hi,
I've installed node-red-contrib-cec as described. After importing the example flow and pressing "deploy" Node Red crashs with the following output:
3 Jan 23:05:19 - [red] Uncaught Exception:
3 Jan 23:05:19 - TypeError: Cannot convert undefined or null to object
at Function.keys ()
at CECMonitor. (/home/pi/.node-red/node_modules/@damoclark/cec-monitor/lib/cec-monitor.js:458:16)
at CECMonitor. (/home/pi/.node-red/node_modules/@damoclark/cec-monitor/lib/cec-monitor.js:202:14)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
Any ideas ?
The basic command echo "scan" | cec-client RPI -s -d 1 is working on my Raspberry.
Thanks and regards,
Ralf
The text was updated successfully, but these errors were encountered: