This is an extension to porla
This extension provides the necessary tools to be compatible with the dtaa format used by pontos-hub
-
canboat2pontos
Converts output from canboat's
analyzer --json
to pontos format, see porla-nmea. Expects a single argument, thevessel_id
. Expects input in the form<epoch> <canboat json output>
. Outputs<topic> <json payload>
, suitable for input tomqtt-cli
, see porla-mqtt.
N/A
version: '3.8'
services:
services:
source_1:
image: ghcr.io/mo-rise/porla
network_mode: host
restart: always
command: ["socat UDP4-RECV:1457,reuseaddr STDOUT | to_bus 1"]
transform_1:
image: ghcr.io/mo-rise/porla-nmea
network_mode: host
restart: always
command: ["from_bus 1 | analyzer --json | timestamp --epoch | to_bus 2"]
transform_2:
image: ghcr.io/mo-rise/porla-pontos
network_mode: host
restart: always
command: ["from_bus 2 | canboat2pontos test_vessel | to_bus 3"]