-
Notifications
You must be signed in to change notification settings - Fork 21
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
TypeError: Cannot read property 'indexOf' of undefined #36
Comments
I have the same error when trying to access my LG CX |
same here! |
1 Feb 21:35:45 - [red] Uncaught Exception: |
Has anyone found a solution? I’m having the same problem. |
Yes, you can fix it yourself, see: see the line: // scan incoming messages for the magic string if (message.indexOf("LG Smart TV"))) { replace with: if (message.indexOf("LG Smart TV") > 0) { thats all :) :) |
This is in .node-red\node_modules\lgtv2\index.js? I don't see that line there.
|
It seems that the correct fix for this is in .node-red/node_modules/node-red-contrib-lgtv/nodes/lgtv-volume.js at line 19, currently
should be
Ref: https://discourse.nodered.org/t/node-red-keeps-rebooting-itself/56590/9 |
Hello,
I would like to control my new LG TV with your node-red nodes which looks like interesting. Unfortunatly, I face an issue.
I uploaded the remote control sample you provide. I configured the configuration node with the right IP address, connect and get the token. (I would like to add I can do some basic control of my LG TV with OpenHab, so this is not an issue of misconfiguration on the TV, it accepts remote control).
My TV is: LG 49 NANO81
When deploying, I have the follwing error:
Thanks in advance for any help you for your promising nodes.
The text was updated successfully, but these errors were encountered: