Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including signalk-mqtt-gw with all npm packages installed. Try it out:

var signalkMqttGw = require("signalk-mqtt-gw")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

signalk-mqtt-gw v1.3.0

Signal K server plugin that provides gateway functionality between Signal K and MQTT

Signal K - MQTT Gateway

Signal K Node server plugin that functions as a gateway between MQTT and SK server. You can

  • run a local server that has all SK data available and that routes all data from other MQTT clients to Signal K deltas. The server is advertised via mdns/Bonjour
  • connect to a MQTT server and send deltas you choose with chosen interval to signalk/delta

image

If you run a local server you can send data to the server like so:

mosquitto_pub -h localhost -p 1883 -m 292 -t 'vessels/self/environment/temperature/outside'

You can check that data is being sent to the local server with mosquitto_sub:

$ mosquitto_sub -h localhost -p 1884 -t 'vessels/self/navigation/speedOverGround'
3.58
3.59
3.59

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free