summaryrefslogtreecommitdiff
path: root/jsongen.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'jsongen.py.in')
-rw-r--r--jsongen.py.in17
1 files changed, 5 insertions, 12 deletions
diff --git a/jsongen.py.in b/jsongen.py.in
index c0260e0c..f779c60e 100644
--- a/jsongen.py.in
+++ b/jsongen.py.in
@@ -101,21 +101,16 @@ ais_specs = (
"fieldmap":(
# fieldname type default
('lastport', 'string', None),
- ('lmonth', 'uinteger', 'AIS_MONTH_NOT_AVAILABLE'),
- ('lday', 'uinteger', 'AIS_DAY_NOT_AVAILABLE'),
- ('lhour', 'uinteger', 'AIS_HOUR_NOT_AVAILABLE'),
- ('lminute', 'uinteger', 'AIS_MINUTE_NOT_AVAILABLE'),
+ ('departure', 'string', None),
('nextport', 'string', None),
- ('nmonth', 'uinteger', 'AIS_MONTH_NOT_AVAILABLE'),
- ('nday', 'uinteger', 'AIS_DAY_NOT_AVAILABLE'),
- ('nhour', 'uinteger', 'AIS_HOUR_NOT_AVAILABLE'),
- ('nminute', 'uinteger', 'AIS_MINUTE_NOT_AVAILABLE'),
+ ('eta', 'string', None),
('dangerous', 'string', None),
('imdcat', 'string', None),
('unid', 'uinteger', '0'),
('amount', 'uinteger', '0'),
('unit', 'uinteger', '0'),
),
+ "stringbuffered":("departure","eta",),
},
{
"initname" : "json_ais6_fid15",
@@ -212,9 +207,7 @@ ais_specs = (
('dac1fid31.lon', 'integer', 'DAC1FID31_LON_NOT_AVAILABLE'),
('dac1fid31.lat', 'integer', 'DAC1FID31_LAT_NOT_AVAILABLE'),
('dac1fid31.accuracy', 'boolean', 'false'),
- ('dac1fid31.day', 'uinteger', 'AIS_DAY_NOT_AVAILABLE'),
- ('dac1fid31.hour', 'uinteger', 'AIS_HOUR_NOT_AVAILABLE'),
- ('dac1fid31.minute', 'uinteger', 'AIS_MINUTE_NOT_AVAILABLE'),
+ ('timestamp', "string", None),
('dac1fid31.wspeed', 'uinteger', 'DAC1FID31_WIND_NOT_AVAILABLE'),
('dac1fid31.wgust ', 'uinteger', 'DAC1FID31_WIND_NOT_AVAILABLE'),
('dac1fid31.wdir', 'uinteger', 'DAC1FID31_DIR_NOT_AVAILABLE'),
@@ -245,7 +238,7 @@ ais_specs = (
('dac1fid31.salinity', 'uinteger', 'DAC1FID31_SALINITY_NOT_AVAILABLE'),
('dac1fid31.ice', 'boolean', 'false'),
),
- "stringbuffered":("data",),
+ "stringbuffered":("timestamp",),
},
{
"initname" : "json_ais9",