Topics¶
All topics to do with signalling are prefixed with signalling/
.
The topics below show the payload part of the message. The actual message will, of course, be packaged within an envelope.
Voltage values¶
All read values in from the field are voltage values.
These are an integer between 0 and 1024. This equates to 0 to 50 volts.
audio¶
Messages to do with the playing and control of audio
Platform can be 0 for both, 1 for platform 1, or 2 for platform 2
play¶
Play an audio clip.
{
"audio": "approaching|aux1|aux2|aux3|departing|remembranceat|remembrancepost|remembrancepre|siding",
"platform": 0
}
playing¶
Notification that a specific file / audio clip is playing.
{
"file": "/path/to/audio/file.wav",
"audio": "approaching|aux1|aux2|aux3|departing|remembranceat|remembrancepost|remembrancepre|siding",
"platform": 0
}
played¶
Notification that a specific file / audio clip has completed playing.
{
"file": "/path/to/audio/file.wav",
"audio": "approaching|aux1|aux2|aux3|departing|remembranceat|remembrancepost|remembrancepre|siding",
"platform": 0
}
buttons/<id>¶
Message to do with request buttons. Output sets the halo lights
input¶
output¶
system¶
override¶
request¶
direction¶
Direction information
output¶
system¶
override¶
request¶
Request both direction override, and configure month-based direction
{
"directionOverride": "eastbound|westbound|system",
"januaryDirection": "eastbound|westbound",
"februaryDirection": "eastbound|westbound",
"marchDirection": "eastbound|westbound",
"aprilDirection": "eastbound|westbound",
"mayDirection": "eastbound|westbound",
"juneDirection": "eastbound|westbound",
"julyDirection": "eastbound|westbound",
"augustDirection": "eastbound|westbound",
"septemberDirection": "eastbound|westbound",
"octoberDirection": "eastbound|westbound",
"novemberDirection": "eastbound|westbound",
"decemberDirection": "eastbound|westbound"
}
levers/<id>¶
input¶
output¶
system¶
override¶
request¶
{
"outputOverride": "true|false|system",
"inputOverride": "true|false|system",
"autoRestroke": "true|false"
}
messages/add¶
messages/remove¶
points/<name>¶
Point names are their number.
input¶
output¶
system¶
override¶
request¶
{
"inputOverride": "normal|reverse|noreturn|system",
"outputOverride": "normal|reverse|isolated|system"
}
relays/<name>¶
This covers all output and input relays
input¶
output¶
sections/<name>¶
Section names are their letter, or for point sections P followed by their number
(eg P5a
)
input¶
system¶
{
"state": "occupied|unoccupied|route|engineer",
"setPoint": "10",
"errorPoint": "1",
"delay": "5"
}
override¶
request¶
{
"inputOverride": "occupied|unoccupied|engineer|system",
"setPoint": "10",
"errorPoint": "1",
"delay": "5"
}
sensors/<name>¶
input¶
system¶
override¶
request¶
signals/<name>¶
name
is in the format AJ, followed by the number, followed by E or W for
mainline signals, S followed by the number for shunt only signals
input¶
not currently used, but will be implemented with the new cards
output¶
{
"danger": true,
"caution": false,
"clear": false,
"route_1": false,
"route_2": false,
"shunt": false
}