Skip to content
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 'speak' of undefined #8

Open
ssuppan opened this issue Oct 23, 2018 · 5 comments
Open

TypeError: cannot read property 'speak' of undefined #8

ssuppan opened this issue Oct 23, 2018 · 5 comments

Comments

@ssuppan
Copy link

ssuppan commented Oct 23, 2018

This is the second time I've installed node-red and node-red-contrib-tjbot.
The first time node-red had issues with visual-recognition and then started to get confused with "see" and "wave" nodes. The second time node-red had issues with tone_analyzer credentials which weren't really required for my flow. It also could not understand the 'speak' node after running it a couple of times.

@jeancarl
Copy link
Owner

This usually happens when the underlying TJBot library can't be instantiated.

Please check the logs of Node-RED and reply with any errors that are being logged, aside from the method of undefined you've posted. If you automatically start node-red, use the commands node-red-stop and node-red-start to stop and restart node-red manually.

@ssuppan
Copy link
Author

ssuppan commented Oct 27, 2018

Thank you for getting back to me JeanCarl.
The errors which I get on the console logging are:
[tjbot-config:a0f3080.0a26f8] Error: pigpio error -1 in gpioInitialise
[tjbot-shine:15ffc754.ac1719] TypeError: Cannot read property 'shine' of undefined

@ssuppan
Copy link
Author

ssuppan commented Oct 27, 2018

I would really like to use node-red if at all possible. How do I get around this? Is there some procedure you could prescribe for me to debug this issue.

@jeancarl
Copy link
Owner

jeancarl commented Nov 2, 2018

Are you running Node-RED as root?

@mariushegele
Copy link

Creating a new TJBot configuration and reconnecting the flows made it work for me. Seems like an extensive solution if you have bigger/many flows, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants