lethexa-trackdisplay v1.0.0
lethexa-trackdisplay
This is a Track-display for the browser written in angularJS/nodeJS. Tracks are provided via RabbitMQ to the webserver. Websockets are used to dynamically update the tracks.
To version 1.0.0 the interface to RabbitMQ is changing:
Provide dynamic track-data on exchange 'simulator' to topic 'root.decoded.tracks.dynamic':
{
source: 'source',
time: 1456515394945,
srcid: 211317180,
hdg: 5.88175957922089 // [rad]
sog: 16.7, // [m/s]
cog: 5.88175957922089 // [rad]
lat: 53.906445, // Decimal degrees
lon: 8.689741666666666, // Decimal degrees
alt: 0.0, // Meters
country: getCountryCodeByMmsi(mmsi)
};
Provide static track-data on exchange 'simulator' to topic 'root.decoded.tracks.static':
{
source: 'source',
time: 1456515394945,
srcid: 211317180,
name: 'Test,
type: 0,
mapcolor: {
line: '#000000',
fill: '#ffffff'
},
refpos: [50,50,10,10],
country: de,
countryname: 'Germany'
}
Provide voyage track-data on exchange 'simulator' to topic 'root.decoded.tracks.voyage':
{
source: 'source',
time: 1456515394945,
srcid: 211317180,
cargo: 'Packages',
behavior: 'Moored',
draught: 5.5, // Meters
dest: 'ROTTERDAM',
eta: {
hour: 12,
min: 0,
day: 15,
mon: 1
};
}
To drop tracks provide the following json-structure on exchange 'simulator' to topic 'root.decoded.tracks.drop':
{
source: 'source',
time: 1456515394945,
srcid: 211317180
}
To provide inter-track-communication send the following json-structure on exchange 'simulator' to topic 'root.decoded.tracks.message'
{
source: 'source',
time: 1456515394945,
srcid: 111222333,
dstid: 333222111,
seqnr: 1,
text: 'This is a Testmessage'
}
To provide the current zulu-time send the following json-structure on exchange 'simulator' to topic 'root.time'
{
source: 'source',
time: 1456515394945
}
Installation
npm install
bower install
Usage
npm start
Open browser at localhost:8000
License
This application is published under MIT license.
6 years ago