Closed cricalix closed 1 year ago
Ok, there is no reason to use float, so I think I have amended that with an update. On your example, I now have:
{"class":"AIS","device":"AIS-catcher","scaled":true,"channel":"B","nmea":["!AIVDM,2,1,7,B,8>jQM6@0Gwm9V1QWG7LQV3Qdel@fEuEWgwl?wnSwe7wvlOwwsAwwnSGm,0*39","!AIVDM,2,2,7,B,wvh0,0*4B"],"type":8,"repeat":0,"mmsi":992501017,"dac":1,"fid":31,"lon":-5.925600,"lat":53.310802,"accuracy":true,"day":27,"hour":18,"minute":6,"wspeed":48,"wgust":56,"wdir":217,"wgustdir":221,"airtemp":13.300000,"pressure":978,"visgreater":0,"visibility":12.700000,"waterlevel":30.009998,"cspeed2":25.500000,"cdir2":360,"cdepth2":31,"cspeed3":25.500000,"cdir3":360,"cdepth3":31,"waveheight":25.500000,"waveperiod":63,"wavedir":360,"swellheight":25.500000,"swellperiod":63,"swelldir":360,"seastate":13}
If you need a data source with type 8, you can take my http://taxom.ddns.net:8383/ I almost always have this type of message. By the way, can you add a type of message to the ships table so that it is easier to find a source? (TCP: 5011 NMEA, 5012 JSON)
I'm working from https://gpsd.gitlab.io/gpsd/AIVDM.html#_meteorological_and_hydrological_data_imo289, as well as looking at the data emitted by the AIS weather sources in Dublin Bay, Ireland. In both cases, the pressure field is defined as integer, not floating point. The GPSD documentation points at http://vislab-ccom.unh.edu/~schwehr/papers/2010-IMO-SN.1-Circ.289.pdf, and annex page 6 defines Air Pressure as incrementing in 1 hPa steps with no indication of floating point representation.