2019-08-29, 03:11 PM
(This post was last modified: 2019-10-17, 10:08 PM by JeroenAdam.)
I'm currently sending 3 data streams from Signal K Node Red to a 2nd Pi Zero using MQTT.
How I did:
- activate local MQTT server using OpenPlotter GUI
- import my small flow https://github.com/JeroenAdam/IoT-aboard...ter/flowOP into Signal K Node Red and add the user/password in the security tab (only once, on one flow), you'll need to know the Signal K paths on your server, for that you can use an optionall API endpoint http://10.10.10.1:3000/signalk/v1/api/prometheus , this is the new (optional) Signal K to Prometheus Plugin, install it first.
- import my flow https://github.com/JeroenAdam/IoT-aboard...lowPiZeroW into the Pi Zero Node Red and add the user/password in the security tab (only once, on one flow), you'll see it's configured to connect to the broker 'OpenPlotter' on IP 10.10.10.1. Fyi, the data is outputted to a bright LED matrix, that is the goal of it.
- I also have a mini router running OpenWRT which sends MQTT messages to the Pi Zero on a button press, it fonctions as a remote control to cycle the display trough the views
The MQTT topics have to be inputted correctly of course, as you found out earlier using the Signal K to Prometheus Plugin.
Result: https://www.youtube.com/watch?v=Q_b3sqklpFo
How I did:
- activate local MQTT server using OpenPlotter GUI
- import my small flow https://github.com/JeroenAdam/IoT-aboard...ter/flowOP into Signal K Node Red and add the user/password in the security tab (only once, on one flow), you'll need to know the Signal K paths on your server, for that you can use an optionall API endpoint http://10.10.10.1:3000/signalk/v1/api/prometheus , this is the new (optional) Signal K to Prometheus Plugin, install it first.
- import my flow https://github.com/JeroenAdam/IoT-aboard...lowPiZeroW into the Pi Zero Node Red and add the user/password in the security tab (only once, on one flow), you'll see it's configured to connect to the broker 'OpenPlotter' on IP 10.10.10.1. Fyi, the data is outputted to a bright LED matrix, that is the goal of it.
- I also have a mini router running OpenWRT which sends MQTT messages to the Pi Zero on a button press, it fonctions as a remote control to cycle the display trough the views
The MQTT topics have to be inputted correctly of course, as you found out earlier using the Signal K to Prometheus Plugin.
Result: https://www.youtube.com/watch?v=Q_b3sqklpFo