aisstream / issues

7 stars 3 forks source link

[Potential Bug] No ShipStaticData messages #32

Closed rhiniodontypus closed 1 year ago

rhiniodontypus commented 1 year ago

Hi everyone, thank you for your wonderful and free service! I appreciate it very much! However, I have a question: when I filter for 'PositionReport' messages everything works really fine (tested for Port of Hamburg area). Here I get a steady stream of messages. But I haven't received a single 'ShipStaticData' message within 10 minutes which is practically impossible in a region with over 300 ships. My settings in Python: "BoundingBoxes": [[[53.7269, 9.6501 ], [53.3862, 10.3807]]] "FilterMessageTypes": ["ShipStaticData"] I would be mega happy if you could check this out ;)

Thank you in advance!

aisstream commented 1 year ago

We will look into this as well. It may be a bug in our filter implementation which is still new and likely to have some issues.

rhiniodontypus commented 1 year ago

Sorry, I was a bit hasty. I just had to extend the loop with

elif message_type == "ShipStaticData" ais_message = message['Message']['ShipStaticData']

and now everything works fine ;)