Voyage Data Recording - 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: Voyage Data Recording (/showthread.php?tid=377) |
Voyage Data Recording - SkipperEarly - 2017-03-12 I had raised the question for a stand alone vdr in the ocpn cruisers forum and got the advise to use ncat. What I aim for is a simple way to record the nmea sentences so that I can later load the file into ocpn on any platform and playback the vdr file. I used the command ncat localhost -u -l 10109 -o --append-output mylogdata.txt but always got Ncat: Got more than one port specification: 10109 mylogdata.txt. QUITTING. I then used pi@MyOP:~ $ ncat localhost -u -l 10109 -o mylogdata.txt but unfortunatly the mylogdata.txt file remains empty. Has anyone a solution to my confusion? Thanks. PS: Ultimately I hope to have one toggle icon (with kb short cut) in the task bar to start/stop recording. Has anyone done this already? RE: Voyage Data Recording - SkipperEarly - 2017-03-23 can someone please test above on op 0.9.0 and report if it works. I get always port in use error. Thanks for help. RE: Voyage Data Recording - CVL - 2017-03-24 (2017-03-23, 07:55 AM)SkipperEarly Wrote: can someone please test above on op 0.9.0 and report if it works. Haven't tried ncat, and being still under 0.8, I am using kplex to record the nmea-sentences. Add in .kplex.conf : [file] name=log filename=/home/pi/kplexlogs/nmea.log direction=out append=yes eol=n works like a charme. fair winds Christian RE: Voyage Data Recording - SkipperEarly - 2017-03-27 Thanks Christian, that's a nice solution. Will try it for a while and see how large the files gets. Thanks for the info. What would be your suggestion for a simple way to switch on/off file recording? Stop kplex edit .kplex.conf restart kplex ? - I am sure there could be a simpler way. fair winds _/) RE: Voyage Data Recording - CVL - 2017-03-27 (2017-03-27, 09:01 AM)SkipperEarly Wrote: Thanks Christian, that's a nice solution. You could start kplex wit the the option -f and specify two configuration files, one with logging enabled and the other without. So all it takes is to kill kplex and restart it with the other config file. But I don't know if this can be done with the openplotter interface - I am not very strong in python ... glad to help Christian |