SignalK / aisreporter

Signal K Node server plugin to report the vessel's AIS data to MarineTraffic
Apache License 2.0
13 stars 7 forks source link

Reporter not sending position data #15

Closed guyht closed 6 years ago

guyht commented 6 years ago

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

tkurki commented 6 years ago

Sorry, I had forgotten about this issue.

Do you have all the required data? The position report depends on having

tkurki commented 6 years ago

What I said above is actually wrong, it does send data out even if some fields don't have data.

The [object Object that you see is just an error in the status message generation - if the timestamp is updating when you refresh the page it means that messages are being sent.

tkurki commented 6 years ago

Are you quite sure that data is not going out? I have an updated version waiting for review in a branch that will show the latest sent dynamic & static messages with timestamps.

tkurki commented 6 years ago

No response.