Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

From 6.29

...

Position Report API Process

  • using Events EventLogs (if there is an event Event code and date).
  • or added as a Remark (text field).

Events are added and retrieved from Master Data and can be used in a JSON message. Event fields in the JSON message is shortened:

...

The following properties are needed to add an EventLog

  • eventLogDate = event date
  • ec event = event code.code 

Remarks will be connected to the Position Report. The Position Report needs to be sent first, then Remarks can be added in a different call. To send remarks, it requires:

  • the set-up of a remark template in the database with a title and the extraction of the remark_id.
    Note: This construction is usually met with various various challenges with e-mail based vessel reporting (more information: contact Dataloy).

IMPORTANT: This type of construction causes various challenges with e-mail based vessel reporting (more information: contact contact Dataloy).

Alerts

Alerts can be triggered either:

  • when reports are inserted to Dataloy VMS
  • or a report is failing.

...

When set to true: referenceNo and reasonForCall can be added to the json message. This makes it easier for VRS to locate the correct port call and will reduce errors.

...

List of email addresses separated by semicolon.

A vessel report successfully inserted into Dataloy VMS results in a report being sent to the addresses in this property value. The report will list all values sent from the vessel.

...

  • E-mail address list separated by semicolon.
  • The e-mail address owners will receive an e-mail if a vessel report is failing.
  • The Voyage Operator will also receive a message if the User has registered relevant e-mail address.

...

When set to true: A vessel report successfully inserted into Dataloy VMS results in a report being sent to the Voyage Operator, listing all values sent from the vessel.

...

com.dataloy.mail.smtp

...

  • remark = your comment
  • source = id of position report


Base URL

The Position Report URL:

Code Block
Base URL + ws/rest/PositionReport

The Remark URL

Code Block
Base URL + ws/rest/Remark

Noon report

JSON Field Name
Description
Affects Dataloy VMS
MandatoryTypeLength
portCall
A port call object
Yes

reportTypeCode
  • Vessel Report Type
  • Value = NOON for Noon Report


String4
reportDateLocal
Report Date Local Time
YesDate
latitude
Position Latitude (Decimal Degrees)

Double5
longitude
Position Longitude (Decimal Degress)

Double5
eta
Estimated Time of ArrivalUpdates ETA in Schedule.YesDate
eventLogs

Array of EventLog

Add Departure Time as an Event Log with "DEP" event code,

Add Berthed Time as an Event Log with "BRT" event code

Updates ETD and ETB in Schedule
Date
trueCourse
True Course

Integer38
distanceSailed
Distance Sailed Since Last Report

Double
hoursInService
Hours in Service Since Last Report

Double
distanceToNextPort
Distance To Go

Double
speedMadeGood
Speed Made Good

Double
windDirection
Wind Direction (more details)

Integer38
averageWindForce
Wind Force. Beaufort.

Integer38
seaDirection
Sea Direction (more details)


Integer38
averageSeaState
Sea State. Integer from 0 - 9.

Integer38
bhpMainEngineIndicatedRpm
Main Engine RPM Since Last Report

Double
dailyFo
Daily Fuel Oil Consumption

Double
dailyDo
Daily Diesel Oil Consumption

Double
dailyFl
Daily Fuel Oil Low Sulphur Consumption

Double
dailyDl
Daily Diesel Oil Low Sulphur Consumption

Double
dailyFw
Daily Net Fresh Water Consumption

Double
robFo
Fuel Oil Remaining on Board (FO RoB)Updates FO arrival RoB of the Port Call
Double
robDo
Diesel Oil Remaining on Board (DO RoB)Updates DO arrival RoB of the Port Call
Double
robFl
Fuel Oil Low Sulphur Remaining on Board (FO LS RoB)Updates FO LS arrival RoB of the Port Call
Double
robDl
Diesel Oil Low Sulphur Remaining on Board (DO LS RoB)Updates DO LS arrival RoB of the Port Call
Double
robFw
Fresh Water Remaining on Board

Double
genericRemark???
RemarkNot handled via API how ???StringUnlimited

Arrival report 

JSON Field Name
Description
Affects Dataloy VMS
MandatoryTypeLength
portCall
A port call id
Yes?Integer
reportTypeCode
Vessel Report Type
Value = ARR for Arrival Report.
Used to insert the correct type of Position Report and to locate the correct port call. YesString4
reportDateLocal
Report Date Local Time
YesDate
eta
Time of ArrivalUpdates ETA in ScheduleYesDate
eventLogs

Array of EventLog

Add Departure Time as an Event Log with "DEP" event code,

Add Berthed Time as an Event Log with "BRT" event code

Updates ETB and/or ETD in ScheduleYesArray of EventLogs
distanceSailedSinceDeparture
Total Distance Sailed Since DepartureUpdates Miles in Schedule.
Double
distanceSailed
Distance Sailed Since Last Report

Double
hoursStoppages
Hours StoppagesUpdates Days Stoppages (see the Perfomance tab in Booking and Operations).
Double
hoursInService
Hours in Service

Double
speedMadeGood
Speed Made Good Since Last Report

Double
draftAft
Draft Aft

Double
draftForward
Draft Forward

Double
dailyFo
Daily Fuel Oil Consumption


Double
dailyDo
Daily Diesel Oil Consumption

Double
dailyFl
Daily Fuel Oil Low Sulphur Consumption

Double
dailyDl
Daily Diesel Oil Low Sulphur Consumption

Double
dailyFw
Daily Net Fresh Water consumption

Double
robFo
Fuel Oil Remaining on Board (FO RoB)Updates Fuel Oil Remaining on Board (FO RoB) Arrival.
Double
robDo
Diesel Oil Remaining on Board (DO RoB)Updates Diesel Oil Remaining on Board (DO RoB) Arrival.
Double
robFl
Fuel Oil Low Sulphur Remaining on Board (FO LS RoB)Updates Fuel Oil Low Sulphur Remaining on Board (FO LS RoB) Arrival.
Double
robDl
Diesel Oil Low Sulphur Remaining on Board (DO LS RoB)Updates Diesel Oil Low Sulphur Remaining on Board (DO LS RoB) Arrival.Double
robFw
Fresh Water remaining on boardDouble
genericRemark???
RemarkInserted as a Remark to the Position Report.StringUnlimited.
Double
robFw
Fresh Water remaining on board

Double

In Port Report

JSON Field Name
Description
Affects Dataloy VMS
MandatoryTypeLength
portCall
A port call id
YesInteger
reportTypeCode

Vessel Report Type
Value = PORT for In Port Report.

Used to insert the correct type of Position Report and to locate the correct port call.YesString4
reportDateLocal
Report Date Local Time
YesDate
eventLogs

Array of EventLog

Add Estimated Departure Time as an Event Log with "DEP" event code,

Add Estimated Berthed Time as an Event Log with "BRT" event code

Updates ETB and/or ETD in Schedule
Date
hoursInService
Hours in Service

Double
weather
Weather. More Details.

Integer38
windDirection
Wind Direction. More Details. 

Integer38
averageWindForce
Average Wind Force. Beaufort.

Integer38
genericRemark???
RemarkInserted as a Remark to the Position Report.StringUnlimited


Departure Report

JSON Field Name
Description
Affects Dataloy VMS
MandatoryTypeLength
portCall
A port call id



reportTypeCode
Vessel Report Type.
Value = DEP for Departure Report.

YesString4
reportDateLocal
Report Date Local Time
YesDate
eventLogs

Array of EventLog

Add Departure Time as an Event Log with "DEP" event code

Updates Estimated Time of Departure (ETD) in Schedule.YesDate
eta
Estimated Time of ArrivalUpdates Estimate Time of Arrival (ETA) for next Arrival Port.
Date
distanceToNextPort
Distance To Next Port

Double
draftAft
Draft Aft

Double
draftForward
Draft Forward

Double
robFo
Fuel Oil Remaining on Board (FO RoB)Updates Fuel Oil Remaining on Board (FO RoB) departure.
Double
robDo
Diesel Oil Remaining on Board (DO RoB)Updates Diesel Oil Remaining on Board (DO RoB) departure.
Double
robFl
Fuel Oil Low Sulphur Remaining on Board (FO LS RoB)Updates Fuel Oil Low Sulphur Remaining on Board (FO LS RoB) departure.
Double
robDl
Diesel Oil Low Sulphur Remaining on Board (DO LS RoB)Updates Diesel Oil Low Sulphur Remaining on Board (FO LS RoB) departure.
Double
robFw
Fresh Water Remaining on Board

Double
foBunkered???

Bunkered Fuel Oil
Input Exact Figure According to BDR

Updates Fuel Oil bunkered for departure port call.
Double
flBunkered

Bunkered Fuel Oil Low Sulphur
Input exact figure according to the BDR

Updates Fuel Oil Low Sulphur bunkered for departure port call.
Double
doBunkered

Bunkered Diesel Oil
Input exact figure according to the BDR

Updates Diesel Oil bunkered for departure port call.
Double
dlBunkered????

Bunkered Diesel Oil Low Sulphur
Input exact figure according to the BDR

Updates Diesel Oil Low Sulphur bunkered for departure port call.Double
genericRemark????
RemarkInserted as remark to position report.StringUnlimited

to the BDR

Updates Diesel Oil Low Sulphur bunkered for departure port call.
Double


Example Messages

Note

Updated for API version 2.0.0 using the new required date format yyyy-dd-MMThh:mi:ss to conform ISO 8601, (prior version has date format: yyyy-dd-MM hh:mi:ss)

...

Code Block
languagejs
titleArrival
{
	"reportTypeCode":"ARR",
	"portCall":{"key": 1009999},
	"reportDateLocal":"2013-12-24T00:00:00",
	"eventLogs": [{"eventLogDate":"2013-12-24T00:00:00", "event":{"ARR"}}, 
			{"eventLogDate":"2013-12-24T00:00:00", "event":{"BRT"}}, {"eventLogDate":"2013-12-24T00:00:00", "event":{"DEP"}}],
	"distanceSailed":"10",
	"distanceSailedSinceDeparture":"10",
	"hoursInService":"10",
	"hoursStoppages":"10",
	"speedMadeGood":"10",
	"draftAft":"10",
	"draftForward":"10",
	"dailyFo":"10",
	"dailyDo":"10",
	"dailyFl":"10",
	"dailyDl":"10",
	"dailyFw":"10",
	"robFo":"10",
	"robDo":"10",
	"robFl":"10",
	"robDl":"10",
	"robFw":"10",
	//"genericRemark":"Remark"
}


Code Block
languagejs
titleDeparture
 {
	"reportTypeCode":"DEP",
	"portCall":{"key": 1009999},
	"reportDateLocal":"2013-12-24T00:00:00",
	"eventLogs": [{"eventLogDate":"2013-12-24T00:00:00", "event":{"DEP"}}, {"eventLogDate":"2013-12-24T00:00:00", "event":{"ARR"}}],
	"distanceToNextPort":"10",
	"draftAft":"10",
	"draftForward":"10",
	"robFo":"10",
	"robDo":"10",
	"robFl":"10",
	"robDl":"10",
	"robFw":"10",
	//"foBunkered":"10",
	//"flBunkered":"10",
	//"doBunkered":"10",
	//"dlBunkered":"10",
	//"genericRemark":"Remark"
}



Code Block
languagejs
titleNoon
{
	"reportTypeCode":"NOON",
	"portCall":{"key": 1009999},
	"latitude":10.17,
	"longitude":10.17,
	"reportDateLocal":"2013-12-24T00:00:00",
	"eventLogs": [{"eventLogDate":"2013-12-24T00:00:00", "eventCode":{"ARR"}}, 
			{"eventLogDate":"2013-12-24T00:00:00", "event":{"BRT"}}, {"eventLogDate":"2013-12-24T00:00:00", "event":{"DEP"}}],
	"trueCourse":"10",
	"distanceSailed":"10",
	"hoursInService":"10",
	"distanceToNextPort":"10",
	"speedMadeGood":"10",
	"windDirectionId":"911638",
	"averageWindForce":"0",
	"seaDirectionId":"911638",
	"averageSeaState":"1",
	"bhpMainEngineIndicatedRpm":"10",
	"dailyFo":"10",
	"dailyDo":"10",
	"dailyFl":"10",
	"dailyDl":"10",
	"dailyFw":"10",
	"robFo":"10",
	"robDo":"10",
	"robFl":"10",
	"robDl":"10",
	"robFw":"10",
	//"genericRemark":""
}


Code Block
languagejs
titlePort
{
	"reportTypeCode":"PORT",
	"portCall":{"key": 1009999},
	"reportDateLocal":"2013-12-24T00:00:00",
	"eventLogs": [{"eventLogDate":"2013-12-24T00:00:00", "event":{"BRT"}}, {"eventLogDate":"2013-12-24T00:00:00", "event":{"DEP"}}],
	"hoursInService":"20",
	"weatherId":"950936",
	"windDirectionId":"913903",
	"averageWindForce":"1",
	//"genericRemark":"Remark"
}


Consumption Breakdown

The following fields can be added for consumption breakdown

Main Engine - Fuel OilInserted to position report.
Main Engine - Fuel Oil Low SulphurInserted to position report.
Main Engine - Diesel OilInserted to position report.
Main Engine - Diesel Oil Low SulphurInserted to position report.
Auxiliary - Fuel Oil At SeaInserted to position report.
Auxiliary - Fuel Oil Low Sulphur At SeaInserted to position report.
Auxiliary - Diesel Oil At SeaInserted to position report.
Auxiliary - Diesel Oil Low Sulphur At SeaInserted to position report.Inserted to position report.
Boilers - Fuel Oil IdleInserted to position report.
Boilers - Fuel Oil Low Sulphur IdleInserted to position report.
Boilers - Diesel Oil IdleInserted to position report.
Boilers - Diesel Oil Low Sulphur IdleInserted to position report.
Boilers - Fuel Oil WorkingInserted to position report.
Boilers - Fuel Oil Low Sulphur WorkingInserted to position report.
Boilers - Diesel Oil WorkingInserted to position report.
Boilers - Diesel Oil Low Sulphur WorkingInserted to position report.
Generators - Fuel Oil At SeaInserted to position report.
Generators - Fuel Oil Low Sulphur At SeaInserted to position report.
Generators - Diesel Oil At SeaInserted to position report.
Generators - Diesel Oil Low Sulphur At SeaInserted to position report.
Cleaning - Fuel OilInserted to position report.
Cleaning - Fuel Oil Low SulphurInserted to position report.
Cleaning - Diesel OilInserted to position report.
Cleaning - Diesel Oil Low SulphurInserted to position report.
Heating - Fuel Oil ConsumptionInserted to position report.
Heating - Fuel Oil Low SulphurInserted to position report.
Heating - Diesel OilInserted to position report.
Heating - Diesel Oil Low SulphurInserted to position report.

...