Skip to content
Joe San edited this page Aug 16, 2017 · 21 revisions

Welcome to the plant-simulator wiki!

To Dispatch a OnOffType PowerPlant:

URL: http://localhost:9000/powerPlant/1/dispatch

Payload:

{
  "powerPlantId" : 1,
  "command" : "turnOn",
  "value" : true,
  "powerPlantType" : "OnOffType"
}

To Dispatch a RampUpType PowerPlant:

URL: http://localhost:9000/powerPlant/2/dispatch

Payload:

{
 "powerPlantId" : 2,
 "command" : "dispatch",
 "value" : 100.0,
 "powerPlantType" : "RampUpType"
}

To fetch the PowerPlant details

URL: http://localhost:9000/powerPlant/2/details

To fetch the PowerPlant telemetry

URL: http://localhost:9000/powerPlant/2/telemetry

Clone this wiki locally