This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use signalk stream in more then one dashboard tab?
#1
Hi!

To clean up my node mess in node red, I want to split instrument and sensor nodes on two tabs in the node red dashboard. (picture)

As soon as I use the signalkweb socket listener node (ws://localhost:3000/signalk/v1/stream ) on more then one tab, no data is transfered. When I delete the scond the signalkweb socket listener node, the data is streames again.

Is there a solution to use the same signalk data stream on several tabs?

Martin

   
Reply
#2
(2018-02-20, 04:46 PM)Alpenskipper Wrote: Is there a solution to use the same signalk data stream on several tabs?

You could either use  link nodes or put the data into global variables. There's a handy node called contextbrowser which displays the values of node/flow/global variables in the side bar.

https://www.npmjs.com/package/node-red-c...extbrowser
Reply
#3
Thanks Paddy!

The link node is what I needed. Sitll a lot to learn about node red, but worth it!

Martin
Reply
#4
i have also used a mqtt out node to send the websocket to another computer or tab.seems to work
the link node is probably the correct way Smile
Code:
[{"id":"f9b8ac34.ac186","type":"websocket in","z":"217cab7.d842f54","name":"ws","server":"d009e142.23546","client":"","x":85,"y":159.6666612625122,"wires":[["33b5ed11.586bc2","1be6a5e8.8fb36a","157ee13a.40ff0f","897027a1.6c99c8"]]},{"id":"897027a1.6c99c8","type":"mqtt out","z":"217cab7.d842f54","name":"","topic":"ws","qos":"","retain":"","broker":"d83d8d21.7359e","x":218,"y":181,"wires":[]},{"id":"d009e142.23546","type":"websocket-listener","z":"","path":"ws://localhost:3000/signalk/v1/stream","wholemsg":"false"},{"id":"d83d8d21.7359e","type":"mqtt-broker","z":"","name":"","broker":"192.168.1.104","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]
Reply
#5
(2018-02-20, 07:50 PM)jim321 Wrote: i have also used a mqtt out node to send the websocket to another computer or tab.seems to work
the link  node is probably the correct way Smile
Code:
[{"id":"f9b8ac34.ac186","type":"websocket in","z":"217cab7.d842f54","name":"ws","server":"d009e142.23546","client":"","x":85,"y":159.6666612625122,"wires":[["33b5ed11.586bc2","1be6a5e8.8fb36a","157ee13a.40ff0f","897027a1.6c99c8"]]},{"id":"897027a1.6c99c8","type":"mqtt out","z":"217cab7.d842f54","name":"","topic":"ws","qos":"","retain":"","broker":"d83d8d21.7359e","x":218,"y":181,"wires":[]},{"id":"d009e142.23546","type":"websocket-listener","z":"","path":"ws://localhost:3000/signalk/v1/stream","wholemsg":"false"},{"id":"d83d8d21.7359e","type":"mqtt-broker","z":"","name":"","broker":"192.168.1.104","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]


With the same basic idea I have sent the signal K stream to mqtt and had it come in on another pi running openplotter in my basement.

I use the second pi as a poor mans FRED server with no node limits or subscription fee.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)