you cant publish from the actions tab..
i don't see any action to publish mqtt.
in fact i don't think op can publish mqtt at all you need to do it in node-red
you can only have one "ws"web socket so delete any others and change user pass in the ...mqtt ..NODE...select the pencil choose localhost 1883 and in security your user and pass to be same as openplotters mqtt
here
[*]
now subscribe in op's mqtt TAB.
mqtt is just publish and subscribe....EZ.
[*]
i don't see any action to publish mqtt.
in fact i don't think op can publish mqtt at all you need to do it in node-red
you can only have one "ws"web socket so delete any others and change user pass in the ...mqtt ..NODE...select the pencil choose localhost 1883 and in security your user and pass to be same as openplotters mqtt
here
Code:
[{"id":"bc03edcb.cacb7","type":"websocket in","z":"aceda197.5265b","name":"ws","server":"f3d9cf91.f4f67","client":"","x":90,"y":160,"wires":[["e5da9f1.2a8806"]]},{"id":"e5da9f1.2a8806","type":"jsonpath","z":"aceda197.5265b","expression":"$.updates..values[*]","split":false,"name":"Signal K delta values","x":263,"y":160.99999523162842,"wires":[["42cab5e3.61144c"]]},{"id":"42cab5e3.61144c","type":"function","z":"aceda197.5265b","name":"merge values","func":"var paths={};\nvar arrayLength = msg.payload.length;\nfor (var i = 0; i < arrayLength; i++) {\n paths[msg.payload[i].path]=msg.payload[i].value;\n}\nmsg.payload = paths;\nreturn msg;","outputs":1,"noerr":0,"x":460,"y":160,"wires":[["3fe12873.1cbcd8"]]},{"id":"3fe12873.1cbcd8","type":"function","z":"aceda197.5265b","name":"compass","func":"var signalk_key=\"navigation.gnss.satellites\";\n\nif(msg.payload.hasOwnProperty(signalk_key)){\n msg.payload=msg.payload[signalk_key];\n return msg;\n \n\n}","outputs":"1","noerr":0,"x":620,"y":160,"wires":[["7e5ba565.1a0fec"]]},{"id":"7e5ba565.1a0fec","type":"mqtt out","z":"aceda197.5265b","name":"","topic":"satellites","qos":"","retain":"","broker":"dcdf2343.034d1","x":760,"y":160,"wires":[]},{"id":"f3d9cf91.f4f67","type":"websocket-listener","z":"","path":"ws://localhost:3000/signalk/v1/stream","wholemsg":"false"},{"id":"dcdf2343.034d1","type":"mqtt-broker","z":"","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
now subscribe in op's mqtt TAB.
mqtt is just publish and subscribe....EZ.
[*]