This turned into a proto with a Node http server that
- spawns "source" process that mimics canboat:
- actual captured N2K data from our boat in a file
- read by simple shell script, output a line per second and piped to
- canboat analyzer that outputs the message in json, message per line
- serves a single html file with embedded SVG wind gauge & websocket client that updates the wind direction based on the streamed json messages
- streames N2K messages in json over websockets with Primus
Next steps:
- capturing a real data set: actual sail or at least motoring around rather than just sitting at the docks
- getting the whole thing up and running on Pi, accessible via a wifi access point on the Pi
- adding the gpsd NMEA 0183 data from the plotter (COG etc)
- calculating and displaying TWA
Apparently there are multiple (1, 2, 3) simple NMEA 0183 parsers in Javascript, have to see which one suits my needs best.
Ei kommentteja:
Lähetä kommentti