I have a BMP180 working, at the moment the NMEA generator makes an NMEA sentance which opencpn dashboard can read-
$OCMDA,,,1.018,B,22.3,,,,,,,,,,,,,,,*3D
What I want to do is have the logbook konni to automatically record pressure as well - do do this apparently it will look for a sentence like..
$WIMDA,30,I,1.02,B,10.1,C,,C,,,,C,158.69,T,,M,3.89 ,N,2,M*37
So -
How do I get a data feed created in node-red to be seen by openplotter so I can make a new nmea sentence? I can get node-red to see a udp feed it's created itself to be seen by node-red but can't get it into openplotter.
Or is there a way for force the nmea generator to write a sentence like$WIMDA,.... instead of $OCMDA,,,1.018,B,22.3,,,,,,,,,,,,,,,*3D ?
I'd like to get node-red working just to know how
TIA
Strange! - at my install its exactly opposite!
I get a OCXDR sentence generated which is not shown in the ocpn dashboard, would need the OCMDA - tried to use NMEA converter but gave at the end up as its shown correctly in node-red.
but would also like to use the Konni-logbook with automatic airpressure setting. - I always thought as the dashboard cant show the pressure so the konni will not get it. - but what you observed is totally strange.
BTW - this konni-logbook is really great but would be even better if it is not embedded into ocpn but a separate program in OP as it could then be extended to record automatically also other measures which have nothing to do with ocpn (e.g engine temp, water or fuel levels etc )
just my 2cent!
below the code of my node-red showing pressure and temperature:
[{"id":"e5c38364.12994","type":"websocket in","z":"f471eda8.b7901","name":"","server":"e4c90bec.5fa188","client":"","x":134.25,"y":39,"wires":[["451e867a.4de5e8"]]},{"id":"451e867a.4de5e8","type":"json","z":"f471eda8.b7901","name":"","x":55,"y":105.00000476837158,"wires":[["a468cc97.41c4d","e184c036.78eb4"]]},{"id":"a468cc97.41c4d","type":"jsonpath","z":"f471eda8.b7901","expression":"$.updates..values[?(@.path==\"environment.outside.pressure\")]..value","split":true,"name":"environment.outside.pressure","x":295.00000762939453,"y":105.25000381469727,"wires":[["12298bf.d0d1974","7f7a4106.19ebd"]]},{"id":"e184c036.78eb4","type":"jsonpath","z":"f471eda8.b7901","expression":"$.updates..values[?(@.path==\"environment.outside.temperature\")]..value","split":true,"name":"environment.outside.temperature","x":304.25000762939453,"y":275.5000057220459,"wires":[["21df329f.e12cee","1663880c.4e0a88"]]},{"id":"12298bf.d0d1974","type":"delay","z":"f471eda8.b7901","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":278.75,"y":175.25,"wires":[["2731bba2.40ab64"]]},{"id":"1663880c.4e0a88","type":"delay","z":"f471eda8.b7901","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":273.25,"y":351.5,"wires":[["716908ce.c5e2a8"]]},{"id":"2731bba2.40ab64","type":"function","z":"f471eda8.b7901","name":"Convert to hPa","func":"msg.payload = msg.payload /100 ;\nmsg.payload = msg.payload.toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":460.75,"y":177,"wires":[["1ac22cae.ef1e53"]]},{"id":"716908ce.c5e2a8","type":"function","z":"f471eda8.b7901","name":"convert to C","func":"msg.payload = msg.payload -272.15 ;\nmsg.payload = msg.payload.toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":448.25,"y":352.5,"wires":[["402d52b1.9012ec"]]},{"id":"1ac22cae.ef1e53","type":"ui_chart","z":"f471eda8.b7901","name":"","group":"8dd292.ec172d7","order":1,"width":"0","height":"0","label":"Surface Pressure (hPa)","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"linear","nodata":"","ymin":"","ymax":"","removeOlder":"72","removeOlderPoints":"","removeOlderUnit":"3600","cutout":"","colors":["#ffff00","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":651,"y":170,"wires":[["2516898a.615516"],[]]},{"id":"301e5b12.5b5234","type":"ui_text","z":"f471eda8.b7901","group":"8dd292.ec172d7","order":2,"width":"0","height":"0","name":"current pressure (hPa)","label":"current pressure","format":"{{msg.payload | number:0}} hPa","layout":"row-spread","x":715.2500152587891,"y":102.50000286102295,"wires":[]},{"id":"d5a4d076.9693f","type":"ui_text","z":"f471eda8.b7901","group":"312485dc.fe0b0a","order":4,"width":"0","height":"0","name":"current temperature ©","label":"current temperature","format":"{{msg.payload | number:1}} °","layout":"row-spread","x":716.7500152587891,"y":278.50000381469727,"wires":[]},{"id":"402d52b1.9012ec","type":"ui_chart","z":"f471eda8.b7901","name":"","group":"312485dc.fe0b0a","order":3,"width":0,"height":0,"label":"Temperature ©","chartType":"line","legend":"false","xformat":"HH:mm","interpolate":"basis","nodata":"","ymin":"","ymax":"","removeOlder":"72","removeOlderPoints":"","removeOlderUnit":"3600","cutout":"","colors":["#ffff00","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"x":647,"y":350.75,"wires":[["dcf50a07.943a98"],[]]},{"id":"2516898a.615516","type":"file","z":"f471eda8.b7901","name":"Chart dump","filename":"/home/pi/.ds-charts/pressure.dump","appendNewline":true,"createDir":true,"overwriteFile":"true","x":750.75,"y":205.25,"wires":[]},{"id":"3b896c8.024a794","type":"json","z":"f471eda8.b7901","name":"","x":497.5,"y":428.25,"wires":[["1ac22cae.ef1e53"]]},{"id":"dcf50a07.943a98","type":"file","z":"f471eda8.b7901","name":"Chart dump","filename":"/home/pi/.ds-charts/temperature.dump","appendNewline":true,"createDir":true,"overwriteFile":"true","x":757.25,"y":392.75,"wires":[]},{"id":"710d185d.82de18","type":"file in","z":"f471eda8.b7901","name":"Chart dump pres","filename":"/home/pi/.ds-charts/pressure.dump","format":"utf8","x":318.25000762939453,"y":429,"wires":[["3b896c8.024a794"]]},{"id":"57473e88.b056f","type":"inject","z":"f471eda8.b7901","name":"Startup Pressure","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"x":101.75,"y":432.75,"wires":[["710d185d.82de18"]]},{"id":"c1b1d297.1468f","type":"inject","z":"f471eda8.b7901","name":"Startup Temp","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"x":93,"y":477,"wires":[["a743378e.6513c8"]]},{"id":"a743378e.6513c8","type":"file in","z":"f471eda8.b7901","name":"Chart dump temp","filename":"/home/pi/.ds-charts/temperature.dump","format":"utf8","x":315,"y":478,"wires":[["96369024.2516a"]]},{"id":"96369024.2516a","type":"json","z":"f471eda8.b7901","name":"","x":501,"y":474,"wires":[["402d52b1.9012ec"]]},{"id":"7f7a4106.19ebd","type":"function","z":"f471eda8.b7901","name":"Convert to hPa","func":"msg.payload = msg.payload /100 ;\nmsg.payload = msg.payload.toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":460,"y":147,"wires":[["301e5b12.5b5234"]]},{"id":"21df329f.e12cee","type":"function","z":"f471eda8.b7901","name":"convert to C","func":"msg.payload = msg.payload -272.15 ;\nmsg.payload = msg.payload.toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"x":449,"y":323,"wires":[["d5a4d076.9693f"]]},{"id":"e4c90bec.5fa188","type":"websocket-listener","z":"","path":"ws://localhost:3000/signalk/v1/stream","wholemsg":"false"},{"id":"8dd292.ec172d7","type":"ui_group","z":"","name":"Pressure","tab":"b2f9c8f1.cf11b8","disp":false,"width":"6"},{"id":"312485dc.fe0b0a","type":"ui_group","z":"","name":"Temperature","tab":"b2f9c8f1.cf11b8","order":2,"disp":false,"width":"6"},{"id":"b2f9c8f1.cf11b8","type":"ui_tab","z":"","name":"Environment","icon":"dashboard"}]