All messages to plugin are done as POST requests which take a map as input in the form:
{
"action": "someAction",
"value": 10
}
The POST should be sent to /plugins/raymarineautopilot/command
{
"action": "advanceWaypoint"
}
The value
can be auto
, wind
, route
, or standby
{
"action": "setState",
"value": "auto"
}
The value
is in degrees and is the amount to change. So when in auto
at a heading of 180, a value of -10
will change the target heading would be changed to 170
{
"action": "changeHeading",
"value": 1
}