signalk-node-red on openplotter 1.2.0 alpha - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: Node Red (https://forum.openmarine.net/forumdisplay.php?fid=15) +--- Thread: signalk-node-red on openplotter 1.2.0 alpha (/showthread.php?tid=1571) |
signalk-node-red on openplotter 1.2.0 alpha - theshade - 2018-11-12 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-node-red/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 ! signalk-node-red on openplotter 1.2.0 alpha - PaddyB - 2018-11-13 Are your mqtt account details correct in the openplotter mqtt tab? I just use the user name/password same as the cloud account. Sent from my SM-T813 using Tapatalk RE: signalk-node-red on openplotter 1.2.0 alpha - theshade - 2018-11-13 (2018-11-13, 10:19 AM)PaddyB Wrote: Are your mqtt account details correct in the openplotter mqtt tab? I just use the user name/password same as the cloud account. Dear @PaddyB, Thank you for your reply. Yes they are! and when I use other red-node nodes (such as ping or anything not signalk) I can see the messages in mqtt. it seems only the signalk-node-red is not working for some reason... Cheers, Shady RE: signalk-node-red on openplotter 1.2.0 alpha - PaddyB - 2018-11-13 (2018-11-13, 12:42 PM)theshade Wrote:(2018-11-13, 10:19 AM)PaddyB Wrote: Are your mqtt account details correct in the openplotter mqtt tab? I just use the user name/password same as the cloud account. Ah, didn't read the post completely Sounds odd, I just tried signalk-on-delta into mqtt in node red and works fine. Maybe ask the author? > https://signalk-dev.slack.com ISTR you need an invite or to join is hidden somewhere..... RE: signalk-node-red on openplotter 1.2.0 alpha - theshade - 2018-11-13 (2018-11-13, 01:21 PM)PaddyB Wrote:Thank you @PaddyB ... indeed it's not easy to see where to suscribe or who to ask... I will contact Sbender on GH he might know...(2018-11-13, 12:42 PM)theshade Wrote:(2018-11-13, 10:19 AM)PaddyB Wrote: Are your mqtt account details correct in the openplotter mqtt tab? I just use the user name/password same as the cloud account. RE: signalk-node-red on openplotter 1.2.0 alpha - sbender - 2018-11-13 And FYI, you can joins us on Slack at: http://slack-invite.signalk.org -=Scott RE: signalk-node-red on openplotter 1.2.0 alpha - theshade - 2018-11-13 (2018-11-13, 02:36 PM)sbender Wrote: And FYI, you can joins us on Slack at: http://slack-invite.signalk.org Thank you I just joined the slack... |