SignalK / signalk-server

An implementation of a Signal K central server for boats.
http://signalk.org
Apache License 2.0
313 stars 154 forks source link

getting mmsi constantly via subscription with time period #1775

Open sbender9 opened 2 months ago

sbender9 commented 2 months ago

Over ws, when I use the subscription:

{ "context": "self", "subscribe": [{ "path": "*", "period":10000}] }

I get deltas with mmsi about every second. Mmsi is getting updated via AIS/N2K.

tkurki commented 2 months ago

Can't replicate with either of the sample files.

sbender9 commented 2 months ago

Try with https://www.dropbox.com/scl/fi/ukjz74tjj34o4yetjthdm/signalk-rawdata.log.to.langford.bz2?rlkey=g4h29o1k327w4fwjc0zjon0i4&dl=0

sbender9 commented 2 months ago

And you would probably have to make "self" the same.

tkurki commented 2 months ago

With config like so

      "pipeElements": [
        {
          "type": "providers/simple",
          "options": {
            "logging": false,
            "type": "FileStream",
            "subOptions": {
              "dataType": "Multiplexed",
              "filename": "/Users/tkurki/Downloads/signalk-rawdata.log.to.langford",
              "overrideTimestamp": true
            }
          }
        }
      ],

, whatever was in the settings file as self and using npm wscat2 module global install wscat 'ws://localhost:3000/signalk/v1/stream?subscribe=none' then sending the subscription above I just get a burst of deltas every ~10 seconds.