A simple, yet effective, way of sending data from an ESP866 based units (Wemos, NodeMCU and so on) all the way to a SignalK path of you choice. Or just handle warnings and notifications straight into Node Red if you want.
Data flow: I/O Sensor -> ESP8266 -> Wifi -> Node Red -> SignalK
First revision supports 5 Digital In, 1 Digital Out and several 1wire Temperature sensors.
Pre Conditions: SignalK server with Node Red added as an Addon. This creates all preconfigured SignalK nodes needed for this project.
- Insert your paths that you created in your .info file. If you need to transform you payload before sent to SignalK, do it in the Function node conencted to the correct output
- Show the debug window, if your 1wire sensors is correctly connected, the sensor addresses is print in that window.
- Copy each adress and put them on separate rows in the Switch Node
- Open the following Change Node and insert the SignalK path you want to send
- If you will use Digital Output, enter the IP address of the ESP8266 device. And create some case that will trigger the output, in this case a MQTT message or just manual Inject Nodes.