3import "goby/protobuf/option_extensions.proto";
4import "goby/middleware/protobuf/app_config.proto";
5import "goby/middleware/protobuf/layer.proto";
6import "goby/zeromq/protobuf/interprocess_config.proto";
7import "goby/acomms/protobuf/network_ack.proto";
9package goby.apps.zeromq.protobuf;
13 optional goby.middleware.protobuf.AppConfig app = 1;
14 optional goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(goby.field) = { cfg { env: "GOBY_INTERPROCESS" } }];
17 optional string http_address = 10 [
18 default = "localhost",
19 (goby.field).description =
20 "address to bind on; same as Wt --http-address"
22 optional uint32 http_port = 11 [
24 (goby.field).description =
25 "address to bind on; same as Wt --http-port"
28 optional string docroot = 12 [
29 default = "/usr/share/goby/liaison",
30 (goby.field).description =
31 "path to static objects (e.g. images) root; same as Wt --docroot"
34 optional string additional_wt_http_params = 13
35 [(goby.field).example = "--accesslog=/tmp/access.log"];
36 optional float update_freq = 14 [default = 5];
38 repeated string load_shared_library = 15
39 [(goby.field).description =
40 "Path to a shared library containing compiled Protobuf files. "
41 "Preferred over load_proto_file."];
42 repeated string load_proto_file = 16
43 [(goby.field).description =
44 "Path to a .proto file. Use load_shared_library when possible."];
45 repeated string load_proto_dir = 17
46 [(goby.field).description =
47 "Directory containing .proto files to load. Use "
48 "load_shared_library when possible."];
50 optional bool start_paused = 18 [default = false];
52 optional string upper_right_logo = 19
53 [(goby.field).description =
54 "Image for upper right, relative to docroot"];
55 optional string upper_right_logo_link = 20
56 [(goby.field).description = "Hyperlink for upper right image"];
59 optional bool add_home_tab = 21 [default = true];
60 optional bool add_scope_tab = 22 [default = true];
61 optional bool add_commander_tab = 23 [default = true];
62 optional bool add_map_tab = 24 [default = true];
64 optional ProtobufCommanderConfig pb_commander_config = 900;
65 optional ProtobufScopeConfig pb_scope_config = 901;
66 optional ProtobufMapConfig pb_map_config = 902;
68 // MOOS - 1000 to 1099
72 // private: 10000-11000
73 extensions 1000 to max;
76message ProtobufCommanderConfig
80 required string name = 1;
84 required string group = 1;
85 optional uint32 group_numeric = 2 [default = 0];
86 optional string group_numeric_field_name = 3;
87 optional goby.middleware.protobuf.Layer layer = 4
88 [default = LAYER_INTERPROCESS];
90 repeated GroupLayer publish_to = 2;
94 required string name = 1;
95 required string group = 2;
98 required string from = 1;
99 required string to = 2;
101 repeated Translation translate = 3;
103 repeated ExternalData external_data = 3;
105 repeated LoadProtobuf load_protobuf = 1;
107 optional int32 value_width_pixels = 10 [default = 500];
108 optional int32 modify_width_pixels = 11 [default = 100];
109 optional int32 external_data_width_pixels = 12 [default = 100];
111 optional string sqlite3_database = 20
112 [default = "/tmp/liaison_commander_autosave.db"];
113 optional int32 database_pool_size = 21 [default = 10];
114 optional int32 database_view_height = 5 [default = 400];
118 option allow_alias = true;
130 message DatabaseColumnWidthPixels
132 optional int32 comment_width = 1 [default = 180];
133 optional int32 name_width = 2 [default = 180];
134 optional int32 group_width = 3 [default = 120];
135 optional int32 layer_width = 4 [default = 120];
136 optional int32 ip_width = 5 [default = 120];
137 optional int32 time_width = 6 [default = 120];
138 optional int32 last_ack_width = 7 [default = 120];
140 optional DatabaseColumnWidthPixels database_width = 22;
142 message ModalDialogDimensions
144 optional int32 width = 1 [default = 800];
145 optional int32 height = 2 [default = 200];
147 optional ModalDialogDimensions modal_dimensions = 23;
149 message NotificationSubscription
151 required string type_regex = 1;
152 required string group_regex = 2;
156 required int32 r = 1;
157 required int32 g = 2;
158 required int32 b = 3;
159 optional int32 a = 4 [default = 255];
162 optional Color background_color = 3;
165 repeated NotificationSubscription notify_subscribe = 30;
167 enum ExternalDataColumn
169 option allow_alias = true;
171 EXTERNAL_DATA_COLUMN_NAME = 0;
172 EXTERNAL_DATA_COLUMN_GROUP = 1;
173 EXTERNAL_DATA_COLUMN_TIME = 2;
174 EXTERNAL_DATA_COLUMN_VALUE = 3;
175 EXTERNAL_DATA_COLUMN_MAX = 3;
178 message DatabaseExternalDataColumnWidthPixels
180 optional int32 name_width = 1 [default = 180];
181 optional int32 group_width = 2 [default = 120];
182 optional int32 time_width = 3 [default = 120];
183 optional int32 value_width = 4 [default = 400];
185 optional DatabaseExternalDataColumnWidthPixels external_database_width = 40;
187 // optional string time_source_var = 40;
189 // optional string network_ack_var = 41 [default = "ACOMMS_NETWORK_ACK"];
192message ProtobufScopeConfig
196 option allow_alias = true;
205 message ColumnWidthPixels
207 optional int32 group_width = 1 [default = 150];
208 optional int32 type_width = 2 [default = 150];
209 optional int32 value_width = 3 [default = 400];
210 optional int32 time_width = 4 [default = 150];
212 optional ColumnWidthPixels column_width = 2;
213 optional Column sort_by_column = 3 [default = COLUMN_GROUP];
214 optional bool sort_ascending = 4 [default = true];
215 optional int32 scope_height = 5 [default = 500];
216 optional int32 history_height = 6 [default = 300];
218 optional string group_regex_filter_expression = 7 [default = ".*"];
219 optional string type_regex_filter_expression = 8 [default = ".*"];
221 message HistoryConfig
223 required string group = 1;
224 // optional bool show_plot = 2 [default = false];
225 // optional int32 plot_width = 3 [default = 800];
226 // optional int32 plot_height = 4 [default = 300];
229 repeated HistoryConfig history = 9;
231 optional int32 max_history_items = 10 [default = 100];
233 optional int32 max_message_size_bytes = 20 [default = 2048];
237message ProtobufMapConfig
241 optional string url_template = 1
242 [default = "https://tile.openstreetmap.org/{z}/{x}/{y}.png"];
243 optional string attribution = 2 [
245 "© <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"
247 optional int32 max_zoom = 3 [default = 19];
248 optional int32 min_zoom = 4 [default = 0];
249 optional bool overlay = 5 [
251 (goby.field).description =
252 "Transparent layer drawn above the base layer and switched on and "
253 "off by itself; otherwise one of the base layers to choose between"
255 optional double opacity = 6 [default = 1.0];
256 optional string name = 7
257 [(goby.field).description =
258 "Label in the map's layer control. Defaults "
259 "to the host in url_template"];
262 required string layers = 1;
263 optional string format = 2 [default = "image/png"];
264 optional string version = 3 [default = "1.3.0"];
265 optional string styles = 4 [default = ""];
267 optional WMS wms = 8 [
268 (goby.field).description =
269 "Request images from the WMS service at url_template instead of "
270 "{z}/{x}/{y} tiles. An overlay is requested transparent"
272 optional bool shown = 9 [
274 (goby.field).description =
275 "Whether an overlay starts switched on. The first base layer starts "
276 "selected. The browser then remembers the viewer's choice"
278 optional int32 max_native_zoom = 11 [
279 (goby.field).description =
280 "Highest zoom the server has tiles for; beyond it, up to max_zoom, "
281 "its tiles are enlarged rather than left blank"
283 optional string depth_units = 12 [
284 (goby.field).description =
285 "Units of the depths the layer labels (e.g. feet), named in the "
286 "map's corner while the layer is shown"
288 optional int32 tile_size = 10 [
290 (goby.field).description =
291 "Pixels per WMS image: larger means fewer requests and fewer labels "
295 repeated TileLayer tile_layer = 1 [
296 (goby.field).description =
297 "Base layers (the first starts selected) and overlays, drawn above "
298 "the base in order, offered in the map's layer control. If empty: "
299 "GEBCO bathymetry, OpenStreetMap and Esri Ocean bases, with NOAA "
300 "depths, the NOAA chart and OpenSeaMap seamark overlays"
302 optional bool blank_background = 6 [
304 (goby.field).description =
305 "Draw no tiles (e.g. offline use); overrides tile_layer"
308 optional double initial_lat = 2 [default = 0];
309 optional double initial_lon = 3 [default = 0];
310 optional int32 initial_zoom = 4 [default = 2];
311 optional bool fit_on_first_fix = 5 [
313 (goby.field).description =
314 "Zoom to the first vehicle position received"
321 NODE_STATUS = 1; // goby.middleware.frontseat.protobuf.NodeStatus
322 GPSD_TPV = 2; // goby.middleware.protobuf.gpsd.TimePositionVelocity
324 required Kind kind = 1;
325 optional string group_regex = 2
326 [(goby.field).description =
327 "Defaults to the standard group for this kind"];
328 optional string name_override = 3
329 [(goby.field).description =
330 "Vehicle name when the message has none. Defaults to this "
333 repeated Source source = 10
334 [(goby.field).description =
335 "Vehicle position sources. If empty, NodeStatus on "
336 "goby::middleware::frontseat::node_status"];
338 optional int32 track_length = 20 [
340 (goby.field).description =
341 "Most track points kept per vehicle; older points are dropped even when "
342 "they are inside the Trail time"
344 optional double track_min_move_meters = 21 [
346 (goby.field).description =
347 "Minimum movement before a new track point is added"
349 optional double stale_timeout_seconds = 22 [
351 (goby.field).description =
352 "Vehicles with no position for this long are shown as stale"
354 optional bool show_age = 23 [
356 (goby.field).description =
357 "Show the time since each vehicle's last position beside its name "
358 "on the map, not only once it is stale. The Show age box toggles it"
360 optional int32 trail_seconds = 24 [
362 (goby.field).description =
363 "How far back each track is drawn, in seconds, until changed with the "
364 "Trail slider (which rounds it to its nearest step). 0 draws none; "
365 "negative draws every kept point"
367 optional bool show_depth = 25 [
369 (goby.field).description =
370 "Show a depth gauge beside each vehicle with a depth: surface at the top, "
371 "5000 m at the bottom on a log scale. The Show depth box toggles it"
373 optional string enc_dir = 26
374 [(goby.field).description =
375 "Where uploaded S-57 ENCs are stored and converted. Defaults to "
376 "$HOME/.goby/liaison/enc"];
377 optional bool enc_upload = 27 [
379 (goby.field).description =
380 "Offer an upload for S-57 ENCs (.000, or a .zip of them), drawn as map "
381 "overlays. Converting needs GDAL's ogr2ogr on the PATH"
384 optional int32 map_height = 30 [default = 600];
389 optional uint64 newest_ack_time = 1;
390 repeated goby.acomms.protobuf.NetworkAck ack = 2;