2018-11-12, 11:50 PM
Dear All,
Sorry again for the newbie question. Following my failed attempts to send reliably a single action/trigger to mqtt.. (see my other post thread) I have installed signalk-node-red and node-red-embedded.
Both seem to have worked well and I can see the tool palette and start building my flows.
Unfortunately this is what happens and the node red server keeps on crashing and restarting:
12 Nov 23:01:26 - [info] Starting flows
12 Nov 23:01:27 - [error] [signalk-on-delta:a8191a23.a5dd58] TypeError: Cannot read property 'on' of undefined
---- this comes from the delta node
12 Nov 23:01:27 - [info] Started flows
12 Nov 23:01:27 - [info] [mqtt-broker:OPmqtt] Connected to broker: mqtt://10.10.10.1:1883
12 Nov 23:01:32 - [red] Uncaught Exception:
12 Nov 23:01:32 - TypeError: Cannot read property 'subscribe' of undefined
---- this is from the suscribe node
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
I tried them individually and only the suscription crashes node-red entirely the other just fails at sending anything...
Node-red itself seems to work fine because the ping results is sent to mqtt no problem.
but as soon as I deploy any of the nodered signalk tools I get errors.
going to the signalK plugin config I turned on node-red to active as well as logging (but don't know where the log file is...)
In the signalk-suscribe node I simply put the path as: navigation.datetime but what ever I put it's failing.
But I don't really know if it's running:
http://localhost:3000/plugins/signalk-no...redApi/ui/
returns
Cannot GET /plugins/signalk-node-red/redApi/ui/
http://192.168.178.121:3000/plugins/signalk-node-red/
returns:
{"enabled":true,"id":"signalk-node-red","name":"Node Red","version":"2.8.0"}
12 Nov 23:22:20 - [info] Node-RED version: v0.19.4
12 Nov 23:22:20 - [info] Node.js version: v8.12.0
12 Nov 23:22:20 - [info] Linux 4.14.70-v7+ arm LE
12 Nov 23:22:22 - [info] Loading palette nodes
12 Nov 23:22:29 - [info] Dashboard version 2.9.3 started at /ui
12 Nov 23:22:31 - [warn] ------------------------------------------------------
12 Nov 23:22:31 - [warn] [node-red-node-pi-sense-hat/sensehat] Error: Can't find Sense HAT python libraries. Run sudo apt-get install sense-hat
12 Nov 23:22:31 - [warn] ------------------------------------------------------
12 Nov 23:22:31 - [info] Settings file : /home/pi/.node-red/settings.js
12 Nov 23:22:31 - [info] Context store : 'default' [module=memory]
12 Nov 23:22:31 - [info] User directory : /home/pi/.node-red
12 Nov 23:22:31 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Nov 23:22:31 - [info] Flows file : /home/pi/.node-red/flows_openplotter.json
12 Nov 23:22:31 - [info] Server now running at http://127.0.0.1:1880/
12 Nov 23:22:31 - [warn]
I tired to uninstall the plugins and reinstall them from inside SignalK dashboard but can't find the option do deinstall plugins..
So I tried to [color=rgba(0, 0, 0, 0.8)]npm i [/color][color=rgba(0, 0, 0, 0.8)]@signalk/signalk-node-red [/color]but that didn't do much... also git cloned it and tried a few other things at my level of understanding with no success... still no signalk in mqtt...
Any hint will be greatly appreciated !
Sorry again for the newbie question. Following my failed attempts to send reliably a single action/trigger to mqtt.. (see my other post thread) I have installed signalk-node-red and node-red-embedded.
Both seem to have worked well and I can see the tool palette and start building my flows.
Unfortunately this is what happens and the node red server keeps on crashing and restarting:
12 Nov 23:01:26 - [info] Starting flows
12 Nov 23:01:27 - [error] [signalk-on-delta:a8191a23.a5dd58] TypeError: Cannot read property 'on' of undefined
---- this comes from the delta node
12 Nov 23:01:27 - [info] Started flows
12 Nov 23:01:27 - [info] [mqtt-broker:OPmqtt] Connected to broker: mqtt://10.10.10.1:1883
12 Nov 23:01:32 - [red] Uncaught Exception:
12 Nov 23:01:32 - TypeError: Cannot read property 'subscribe' of undefined
---- this is from the suscribe node
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Unit entered failed state.
nodered.service: Failed with result 'exit-code'.
nodered.service: Service hold-off time over, scheduling restart.
Stopped Node-RED graphical event wiring tool.
Started Node-RED graphical event wiring tool.
I tried them individually and only the suscription crashes node-red entirely the other just fails at sending anything...
Node-red itself seems to work fine because the ping results is sent to mqtt no problem.
but as soon as I deploy any of the nodered signalk tools I get errors.
going to the signalK plugin config I turned on node-red to active as well as logging (but don't know where the log file is...)
In the signalk-suscribe node I simply put the path as: navigation.datetime but what ever I put it's failing.
But I don't really know if it's running:
http://localhost:3000/plugins/signalk-no...redApi/ui/
returns
Cannot GET /plugins/signalk-node-red/redApi/ui/
http://192.168.178.121:3000/plugins/signalk-node-red/
returns:
{"enabled":true,"id":"signalk-node-red","name":"Node Red","version":"2.8.0"}
12 Nov 23:22:20 - [info] Node-RED version: v0.19.4
12 Nov 23:22:20 - [info] Node.js version: v8.12.0
12 Nov 23:22:20 - [info] Linux 4.14.70-v7+ arm LE
12 Nov 23:22:22 - [info] Loading palette nodes
12 Nov 23:22:29 - [info] Dashboard version 2.9.3 started at /ui
12 Nov 23:22:31 - [warn] ------------------------------------------------------
12 Nov 23:22:31 - [warn] [node-red-node-pi-sense-hat/sensehat] Error: Can't find Sense HAT python libraries. Run sudo apt-get install sense-hat
12 Nov 23:22:31 - [warn] ------------------------------------------------------
12 Nov 23:22:31 - [info] Settings file : /home/pi/.node-red/settings.js
12 Nov 23:22:31 - [info] Context store : 'default' [module=memory]
12 Nov 23:22:31 - [info] User directory : /home/pi/.node-red
12 Nov 23:22:31 - [warn] Projects disabled : editorTheme.projects.enabled=false
12 Nov 23:22:31 - [info] Flows file : /home/pi/.node-red/flows_openplotter.json
12 Nov 23:22:31 - [info] Server now running at http://127.0.0.1:1880/
12 Nov 23:22:31 - [warn]
I tired to uninstall the plugins and reinstall them from inside SignalK dashboard but can't find the option do deinstall plugins..
So I tried to [color=rgba(0, 0, 0, 0.8)]npm i [/color][color=rgba(0, 0, 0, 0.8)]@signalk/signalk-node-red [/color]but that didn't do much... also git cloned it and tried a few other things at my level of understanding with no success... still no signalk in mqtt...
Any hint will be greatly appreciated !