4/29/2023 0 Comments Aivdm decoder software![]() Print json.dumps(msg, indent=4, sort_keys=True)Īssuming that the nmea-samples file is in a data directory, you can filter out the line you want to show cat, head and tail. ![]() # make a json pretty print for each message # decode a file or somthing form the STDINį = open(sys.argv) if len(sys.argv) > 1 else sys.stdin # FutureWarning: The stream module is deprecated and will be removed in 1.0 I use json as a "clear text pretty printer". Here is some quick and dirty code in a script called test-ais.py to get the unix like head & tail behavoir. $ ls /usr/local/lib/python2.7/dist-packages/libais-0.16-py2.7-linux-x86_64.eggĪis _ais.py _ais.pyc _ais.so EGG-INFO test $ sudo python setup.py install # to deploy itĪfter all you should have the libraries in your python environment. ![]() $ python setup.py build # to build the python stuff Download the data from $ cd YOUR_BUILD_PATHĪnd follow the installation instruction on/at the github page or run $ cd YOUR_BUILD_PATH/libais To get some code running, you need git a C++ compiler, the python setup environment, cmake. Here is a small howto running under LINUX and python 2.7. There you will find a decoder and documents to understand the nmea messages (mostly links menioned by the posts of and Dev). ![]() ![]() There is a good github repository of Kurt Schwehr who works at the Center for Coastal and Ocean Mapping (to track whale activities for example). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |