Data
Traffic light controller Item
Traffic Controller Item represents traffic light controller. The Item must have class set to TrafficLightController and type to Device.
Metadata
{
"plans": [{
"no": 1,
"name": "VA",
"description": "Adaptive"
}, {
"no": 2,
"name": "VA2",
"description": "Fixed"
}],
"signalGroups": [{
"no": 1,
"name": "VA"
}, {
"no": 2,
"name": "VA2"
}],
"detectors": [{
"no": 1,
"name": "DVA_1"
}, {
"no": 2,
"name": "DVA_2"
}]
}
Where:
plansList of plansplans.noPlan numberplans.namePlan nameplans.descriptionPlan descriptionsignalGroupsList of signal groupssignalGroups.noSignal group numbersignalGroups.nameSignal group namedetectorsList of detectorsdetectors.noDetector numberdetectors.nameDetector name
Commands
All following commands are module-specific and are published via Webhooks to all registered subscribers.
TrafficControlerControlCommand
Command with type TrafficControlerControlCommand is dedicated to switch operating state or plan of traffic controller.
Command extras
{
"cancelationToken": "507f1f77bcf86cd799439578",
"controllerOperatingState": "On",
"planNo": "1",
"from": "2016-09-25T00:00:00.000Z",
"to": "2016-09-25T10:00:00.000Z",
"priority": 5
}
cancelationTokenToken for command cancelationcontrollerOperatingStateController operating stateOn,Default,FlashingYellowYield,DarkorFlashingYellow)planNoPlan number (controllerOperatingStatemust be set toOn)fromStart timetoFinish timepriorityPriority number (higher number means higher priority)
TrafficControlerCancelControlCommand
Command with type TrafficControlerCancelControlCommand is dedicated to cancel an existing TrafficControlerControlCommand.
Command extras
{
"cancelationToken": "507f1f77bcf86cd799439578"
}
cancelationTokenToken for command cancelation
Events
All following events are module-specific.
ControllerStateChangedEvent
Event ControllerStateChangedEvent informs about change of controller's operating state.
Event extras
{
"localSchedule": false,
"controllerOperatingState": "On",
"plan": {
"no": "1",
"name": "VA"
}
}
localScheduleIs used local scheduler stored in controller.controllerOperatingStateController operating state (On,FlashingYellowYield,Dark,FlashingYellow)plan.NoPlan numberplan.NamePlan name
ControllerStateEvent
Event ControllerStateEvent informs about detailed controller's operating state including informations about detectors status and signal groups status. This event is registered for everyone second frame (TX).
Event extras
{
"localSchedule": false,
"controllerOperatingState": "On",
"plan": {
"no": "1",
"name": "VA"
},
"tx": 12,
"signalGroupsState": [{
"no": 1,
"name": "VA",
"state": "Red"
}],
"detectorsState": [{
"no": 1,
"name": "DVA_1",
"state": "Ok",
"occupancies": [{
"offset": 0,
"occupied": true
}, {
"offset": 100,
"occupied": false
}]
}]
}
localScheduleIs used local scheduler stored in controller.controllerOperatingStateController operating's state (On,FlashingYellowYield,Dark,FlashingYellow)plan.NoPlan numberplan.NamePlan nametxTraffic's secondsignalGroupsStateList of signal groupssignalGroupsState.noSignal group numbersignalGroupsState.nameSignal group namesignalGroupsState.stateSignal group state (Dark,Red,Yellow,Green,RedYellow,YellowGreen)detectorsStateList of detectorsdetectorsState.noDetectors numberdetectorsState.nameDetector namedetectorsState.stateDetector state (Ok,Inactive,Failed)detectorsState.occupanciesList of detector occupanciesdetectorsState.occupancies.offsetOffset describes in what millisecond from TX occupancy has been changed.detectorsState.occupancy.occupiedDetector occupation status
R09TelegramReceivedEvent
Event R09TelegramReceivedEvent informs that R09 telegram from public transport vehicle has been received.
Event extras
{
"detectionPoint": 1578945,
"line": "1287",
"route": 45,
"directionNumber": 13,
"deviation": 7,
"priority": 0,
"vehicleId": "123456",
"vehicleType": "Bus",
"vehicleLength": 2
}
detectionPointDetection point numberlineLine numberrouteRoute numberdirectionNumberDirection numberdeviationDeviation from the timetable (in minutes, positive value means delay versus timetable)priorityPriority 0 - 3 (0=none, 3=top priority)vehicleIdVehicle numbervehicleTypeVehicle type (Bus,Tram,Train,MetroorTrolleybus)vehicleLengthPublic transport vehicle length in tens of meters
ControllerMessageEvent
Event ControllerMessageEvent informs that log message has been received.
Event extras
{
"category": "Operating status",
"severity": "Information",
"message": "The plan has been switched to P3",
"flag": false
}
categoryMessage categoryseverityMessage severity (Information,Warning,Error,Fatal)messageText messageflagFlagged or not