Hello once again,
finally I am very satisfied with the dashboard. I changed the layout again, but the main data processing is still the same. So basically the $append() command and the $flowContext() command were the very big helpers on my topic.
A very big "Thank you!" to E1cid for all the help and teaching. It made node-red very interesting to me.
Attached you'll find my final flow, still having some nodes inactive, which can be deactivated if necessary. Enjoy ^^
[{"id":"f34f5927.1fe798","type":"tab","label":"AIS-SOG-Dashboard","disabled":false,"info":""},{"id":"2c4a3e0d.65fb2a","type":"tcp in","z":"f34f5927.1fe798","name":"","server":"client","host":"localhost","port":"10110","datamode":"stream","datatype":"utf8","newline":"","topic":"","base64":false,"x":490,"y":240,"wires":[["c27df744.61125"]]},{"id":"c27df744.61125","type":"ais","z":"f34f5927.1fe798","name":"signal to object {}","x":750,"y":240,"wires":[["95816b15.1b3938","5f287e41.bd187"]],"info":"ais decoder"},{"id":"90709f4e.93b988","type":"ui_gauge","z":"f34f5927.1fe798","d":true,"name":"","group":"ec0af77a.9f2568","order":1,"width":4,"height":1,"gtype":"gage","title":"","label":"kn","format":"{{msg.payload}}","min":0,"max":"13","colors":["#00b500","#e6e600","#ca3838"],"seg1":"8","seg2":"10","x":1790,"y":500,"wires":[]},{"id":"71b073ba.a232e4","type":"change","z":"f34f5927.1fe798","name":"","rules":[{"t":"set","p":"ui_control.options.valueMinFontSize","pt":"msg","to":"200","tot":"str"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1230,"y":400,"wires":[["90709f4e.93b988"]]},{"id":"1f63130c.05fb9d","type":"ui_ui_control","z":"f34f5927.1fe798","name":"","x":460,"y":400,"wires":[["976c7847.8cd378","4462fde0.727254","f32af0fa.645518"]]},{"id":"8a9670a7.18ed","type":"comment","z":"f34f5927.1fe798","name":"To send options when dashboard connects","info":"","x":560,"y":360,"wires":[]},{"id":"f32af0fa.645518","type":"delay","z":"f34f5927.1fe798","name":"","pauseType":"delay","timeout":"40","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1030,"y":400,"wires":[["71b073ba.a232e4"]]},{"id":"3f0d6df1.93d7ba","type":"comment","z":"f34f5927.1fe798","name":"Let gauge to be initialized before change any options","info":"There will be browser errors otherwise ","x":930,"y":360,"wires":[]},{"id":"cef96ea3.a09f68","type":"comment","z":"f34f5927.1fe798","name":"Change the options","info":"gauge scales according to predefined card size\ndefined font sizes are not absolute values but minimum values\nFor example if you make your gauge smaller, the changed font sizes may happen to be too large and will overlap.\n\nminLabelMinFontSize - minimum size of min field // number\nmaxLabelMinFontSize - minimum size of max field // number\nlabelMinFontSize - minimum size of units field // numbert\n\ndelete msg.payload cos it does not contain proper value","x":1230,"y":360,"wires":[]},{"id":"95816b15.1b3938","type":"change","z":"f34f5927.1fe798","name":"append...","rules":[{"t":"set","p":"payload","pt":"msg","to":"$append([$.payload],$flowContext(\"shipData\")[mmsi != $$.payload.mmsi and date > ($millis() - 30*1000)])","tot":"jsonata"},{"t":"set","p":"shipData","pt":"flow","to":"payload","tot":"msg"},{"t":"set","p":"options","pt":"msg","to":"$sort($flowContext(\"shipData\").mmsi)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":960,"y":240,"wires":[["a97bfadb.b4a5b","bac573e7.58ca48"]]},{"id":"976c7847.8cd378","type":"change","z":"f34f5927.1fe798","name":"","rules":[{"t":"set","p":"shipData","pt":"flow","to":"[]","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":670,"y":460,"wires":[[]]},{"id":"88949c23.98c208","type":"comment","z":"f34f5927.1fe798","name":"AIS decoder","info":"","x":730,"y":200,"wires":[]},{"id":"dc66964f.70c8a8","type":"comment","z":"f34f5927.1fe798","name":"appending the incoming msg to the shipData list","info":"","x":980,"y":160,"wires":[]},{"id":"a97bfadb.b4a5b","type":"change","z":"f34f5927.1fe798","name":"$flowContext(\"shipData\")[mmsi=$flowContext(\"ship\")].speedOverGround","rules":[{"t":"set","p":"payload","pt":"msg","to":"$flowContext(\"shipData\")[mmsi=$flowContext(\"ship\")].speedOverGround","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1380,"y":240,"wires":[["76165e5e.7aa1d","90709f4e.93b988","9f650a4c.b8bbd8","68c0cf29.d6ef7"]]},{"id":"76165e5e.7aa1d","type":"debug","z":"f34f5927.1fe798","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1750,"y":240,"wires":[]},{"id":"79b08dfc.19a01c","type":"change","z":"f34f5927.1fe798","name":"set flow.ship to selected mmsi","rules":[{"t":"set","p":"ship","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1470,"y":140,"wires":[["e8ed8628.6d27c"]]},{"id":"e8ed8628.6d27c","type":"debug","z":"f34f5927.1fe798","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1750,"y":140,"wires":[]},{"id":"4462fde0.727254","type":"change","z":"f34f5927.1fe798","name":"","rules":[{"t":"set","p":"ship","pt":"flow","to":"211876000","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":660,"y":500,"wires":[[]],"info":"the mmsi of the own ship"},{"id":"526d8ed5.dff208","type":"comment","z":"f34f5927.1fe798","name":"setting the flows on startup of ui","info":"","x":710,"y":420,"wires":[]},{"id":"7ca430f3.68c128","type":"comment","z":"f34f5927.1fe798","name":"extracting the speed of the selected ship","info":"","x":1280,"y":200,"wires":[]},{"id":"b8f62ed7.905928","type":"comment","z":"f34f5927.1fe798","name":"storing the selection of mmsi","info":"","x":1460,"y":100,"wires":[]},{"id":"c3c24d34.58dd68","type":"ui_text_input","z":"f34f5927.1fe798","name":"","label":"","tooltip":"","group":"5a5f89e5.d3854","order":1,"width":12,"height":3,"passthru":true,"mode":"number","delay":"0","topic":"topic","topicType":"msg","x":1190,"y":100,"wires":[["79b08dfc.19a01c"]]},{"id":"9f650a4c.b8bbd8","type":"ui_text","z":"f34f5927.1fe798","group":"5a1af3bc.7cd31c","order":1,"width":"8","height":5,"name":"other ship","label":"<font size = 5px>other","format":"{{msg.payload}}","layout":"row-spread","x":1800,"y":280,"wires":[]},{"id":"357a1fc3.bc546","type":"ui_text","z":"f34f5927.1fe798","group":"5a1af3bc.7cd31c","order":2,"width":"8","height":5,"name":"own ship","label":"<font size = 5px; color = green>own","format":"<font color = green>{{msg.payload}}","layout":"row-spread","x":1800,"y":400,"wires":[]},{"id":"bac573e7.58ca48","type":"change","z":"f34f5927.1fe798","name":"$flowContext(\"shipData\")[mmsi=211876000].speedOverGround","rules":[{"t":"set","p":"payload","pt":"msg","to":"$flowContext(\"shipData\")[mmsi=211876000].speedOverGround","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1350,"y":320,"wires":[["357a1fc3.bc546","37e17c25.ed04dc"]]},{"id":"25c106fc.0c1bca","type":"comment","z":"f34f5927.1fe798","name":"extracting the speed of the own ship","info":"","x":1260,"y":280,"wires":[]},{"id":"68c0cf29.d6ef7","type":"ui_template","z":"f34f5927.1fe798","group":"5a1af3bc.7cd31c","name":"","order":3,"width":0,"height":0,"format":"<style>\n*.nr-dashboard-text {\n font-size: 200px !important;\n}\n\n}\n</style>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":1800,"y":320,"wires":[[]]},{"id":"c1e3c890.6e7478","type":"comment","z":"f34f5927.1fe798","name":"processing ais data","info":"","x":910,"y":460,"wires":[]},{"id":"bfab3857.1e1f28","type":"comment","z":"f34f5927.1fe798","name":"input from ui","info":"","x":890,"y":500,"wires":[]},{"id":"37e17c25.ed04dc","type":"debug","z":"f34f5927.1fe798","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1750,"y":360,"wires":[]},{"id":"5f287e41.bd187","type":"debug","z":"f34f5927.1fe798","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":970,"y":300,"wires":[]},{"id":"ec0af77a.9f2568","type":"ui_group","name":"other","tab":"24a7075b.b1d0b8","order":3,"disp":true,"width":"6","collapse":false},{"id":"5a5f89e5.d3854","type":"ui_group","name":"MMSI","tab":"24a7075b.b1d0b8","order":2,"disp":false,"width":12,"collapse":false},{"id":"5a1af3bc.7cd31c","type":"ui_group","name":"Gauge","tab":"24a7075b.b1d0b8","order":1,"disp":false,"width":"8","collapse":false},{"id":"24a7075b.b1d0b8","type":"ui_tab","name":"SpeedGauge","icon":"dashboard","disabled":false,"hidden":false}]