This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating custom NMEA sentence
#2
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"}]
Reply


Messages In This Thread
Creating custom NMEA sentence - by PaddyB - 2017-05-29, 02:47 PM
RE: Creating custom NMEA sentence - by SkipperEarly - 2017-05-29, 03:44 PM
RE: Creating custom NMEA sentence - by PaddyB - 2017-05-29, 04:25 PM
RE: Creating custom NMEA sentence - by Sailoog - 2017-05-30, 05:58 PM
RE: Creating custom NMEA sentence - by PaddyB - 2017-05-30, 07:51 PM
RE: Creating custom NMEA sentence - by PaddyB - 2017-05-31, 11:50 AM
RE: Creating custom NMEA sentence - by Sailoog - 2017-05-31, 04:39 PM
RE: Creating custom NMEA sentence - by PaddyB - 2017-06-01, 08:42 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)