GithubHelp home page GithubHelp logo

signalk / aisreporter Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 7.0 134 KB

Signal K Node server plugin to report the vessel's AIS data to MarineTraffic

License: Apache License 2.0

JavaScript 0.44% Perl 3.78% TypeScript 95.78%

aisreporter's Introduction

Signal K

signal-k-logo-tagline

Signal K is a modern and open data format for marine use. Built on standard web technologies including JSON, WebSockets and HTTP, Signal K provides a method for sharing information in a way that is friendly to WiFi, cellphones, tablets and the Internet. A format available to everyone, where anyone can contribute, Signal K is the first truly open data format for the marine industry and is set to revolutionize how we consume and interact with data on boats.

https://signalk.org

aisreporter's People

Contributors

chacal avatar dependabot[bot] avatar itemir avatar sbender9 avatar tkurki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

aisreporter's Issues

Possibly defer UDP send to other plugin

Once we have a reliable plugin that handles TX over UDP/TCP would you consider leaving the UDP handling to that plugin? Perhaps aisreporter works in a similar style to signalk-to-nmea0183 where it does a conversion of SK to another format and then emits it onto the app for others to consume. The first step could simply be adding something like app.emit('aisOut', nmeaString).

Crashes on null when calling ".toUpperCase()"

signalk_1 | TypeError: Cannot read property 'toUpperCase' of null
signalk_1 | at AisEncode.PutStr (/home/node/.signalk/node_modules/ggencoder/lib/GG-AisEncode.js:261:19)
signalk_1 | at new AisEncode (/home/node/.signalk/node_modules/ggencoder/lib/GG-AisEncode.js:164:22)
signalk_1 | at sendStaticPartOne (/home/node/.signalk/node_modules/@signalk/aisreporter/dist/index.js:170:27)
signalk_1 | at sendStaticReport (/home/node/.signalk/node_modules/@signalk/aisreporter/dist/index.js:65:25)
signalk_1 | at Object.start (/home/node/.signalk/node_modules/@signalk/aisreporter/dist/index.js:68:17)
signalk_1 | at doPluginStart (/home/node/signalk/lib/interfaces/plugins.js:259:20)
signalk_1 | at err (/home/node/signalk/lib/interfaces/plugins.js:398:21)
signalk_1 | at /home/node/signalk/node_modules/graceful-fs/graceful-fs.js:61:14
signalk_1 | at FSReqWrap.args [as oncomplete] (fs.js:140:20)

Retrieve mmsi from the full model

This no longer works with the current server because of changes in the configuration method.

It should try to retrieve mmsi from the full model so that it is independent from the configuration method. It could also try to retrieve the mmsi every once in a while so that a server restart or disable/enable cycle is not necessary.

Ignore wrong positions

Hello !
Pretty sure it's more signalk related but it would be great to ignore Latitude / Longitude: [-0.00000° / 0.00000°] our position is very wrong once the chartplotter is shutdown.

Thanks !

Wrong vessel name sent

Using the plugin with cerbo gx (venus os). I configured the vessel name in signalk. transmitting to my marinetraffic staion is ok. when I look at the marine traffic chart I can see your sailing boat and an other one called "venus". This follows our boat. When I switch stransmitting of, both boats disappear. where does the info from the second boat "venus" come from?

Reporter not sending position data

Receiving data to OpenPlotter running on a RPI3 with an actisense NGT feeding data in. Everything else working, and NMEA2k data appears to be correctly arriving in Signalk - all other apps and OpenCPN work as expected.

When Aisreporter was initially installed, it was sending data correctly to Marinetraffic, but it was using the wrong, default MMSI (123456789) - but I was able to correctly see my position on the Marinetraffic website. When I updated my MMSI to the correct one, it stopped working, and on the plugin conf page, it shows the position AIS msg as an [object Object]

I tried some initial debugging but not too familiar with Signalk yet. I tried resetting defaults.json - tried using a UUID instead of MMSI, tried using a blank defaults.json. Restarted server each time but no dice.

Tried putting some log lines in aisreporter/index.js - by wrapping the 'msg' in this line (https://github.com/SignalK/aisreporter/blob/master/index.js#L60) with a JSON.stringify, it shows that msg is an empty Object, but not sure why this is, possibly an upstream error.

Nothing showing up in the Logs (which are enabled in aisreporter plugin settings).

It appears that aisreporter is still correctly sending static data

Pls let me know what other info I can provide to help
Thx

image

Wrong Measures

Hi,
there is something that I didn't understand.
I put in the SignalK all the details of my boat and the plugin sends other data.
Can you help me to better understand please?

On the img_1 you can see the screenshot of my configuration.
On the img_2 the convertion of the AIVDM String.

Img_1
Img_2

Thanks

Feature request: add choice to send all vessels

Currently as I read the code, only self is sent. If self has no MMSI, or the server only has other AIS vessels, it could be good to to have a choice as "send all vessels". That way, a server could act as an AIS dispatcher station for Marinetraffic/AisHUB or other

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.