How do I get water temp into Node-red? - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: How do I get water temp into Node-red? (/showthread.php?tid=392) |
How do I get water temp into Node-red? - dreuf - 2017-03-28 When I go on Diagnostic on Signal K, I have MTW (environment.watertemp), but in node-red when I debug the websocket I can't find it.. Any easy way to get it there? RE: How do I get water temp into Node-red? - ddelorme - 2017-04-03 set json path in node-red to $.updates..values[?(@.path=="environment.water.temperature")]..value this will output temp in K [ { "id": "fc84cccf.b90698", "type": "jsonpath", "z": "ad773e6c.c040d", "expression": "$.updates..values[?(@.path==\"environment.water.temperature\")]..value", "split": true, "name": "watertemp", "x": 350, "y": 580, "wires": [ [ "7d3d63e4.1727d4" ] ] }, { "id": "f991b1e7.ef9748", "type": "function", "z": "ad773e6c.c040d", "name": "KelvintC2", "func": "msg.payload=((msg.payload - 273.15).toFixed(1));\nreturn msg;", "outputs": "1", "noerr": 0, "x": 520, "y": 580, "wires": [ [ "d6c718f7.0949e", "ff26732b.c64298" ] ] }, { "id": "d6c718f7.0949e", "type": "ui_text", "z": "ad773e6c.c040d", "group": "ce804676.cbb9e", "order": 1, "width": "4", "height": "1", "name": "", "label": "outSide Temperature", "format": "{{msg.payload}}C", "layout": "row-left", "x": 700, "y": 600, "wires": [] }, { "id": "ce804676.cbb9e", "type": "ui_group", "z": "", "name": "Weather", "tab": "4c2b5852.80dfe", "order": 1, "disp": true, "width": "16" }, { "id": "4c2b5852.80dfe", "type": "ui_tab", "z": "", "name": "Weather", "icon": "dashboard", "order": 1 } ] RE: How do I get water temp into Node-red? - dreuf - 2017-04-03 The problem is when I look in my "serial NMEA in" diagnostic in OP I can find the water.temp in the NMEA info. But I dont have the "environment.water.temperature" when I debug the "ws://localhost:3000/signalk/v1/stream". So I need to make a link between the NMEA info and the websocket... RE: How do I get water temp into Node-red? - ddelorme - 2017-04-04 What sensor do you have connected to the water temp I2C, 1-Wire. Or is this data coming from a NMEA source. RE: How do I get water temp into Node-red? - dreuf - 2017-04-04 Coming from NMEA source. |