jmri-client 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,176 +0,0 @@
1
- {
2
- "hello": {
3
- "type": "hello",
4
- "data": {
5
- "JMRI": "5.9.2",
6
- "JSON": "5.0",
7
- "Railroad": "Demo Railroad",
8
- "node": "jmri-server",
9
- "activeProfile": "Demo Profile"
10
- }
11
- },
12
- "power": {
13
- "get": {
14
- "on": {
15
- "type": "power",
16
- "data": {
17
- "state": 2
18
- }
19
- },
20
- "off": {
21
- "type": "power",
22
- "data": {
23
- "state": 4
24
- }
25
- }
26
- },
27
- "post": {
28
- "success": {
29
- "type": "power",
30
- "data": {
31
- "state": 2
32
- }
33
- }
34
- }
35
- },
36
- "roster": {
37
- "list": {
38
- "type": "roster",
39
- "data": {
40
- "CSX754": {
41
- "name": "CSX754",
42
- "address": "754",
43
- "isLongAddress": true,
44
- "road": "CSX",
45
- "number": "754",
46
- "mfg": "Athearn",
47
- "model": "GP38-2",
48
- "comment": "Blue and yellow scheme",
49
- "maxSpeed": 126,
50
- "functionKeys": {
51
- "F0": "Headlight",
52
- "F1": "Bell",
53
- "F2": "Horn",
54
- "F3": "Air Release",
55
- "F4": "Dynamic Brake"
56
- }
57
- },
58
- "UP3985": {
59
- "name": "UP3985",
60
- "address": "3985",
61
- "isLongAddress": true,
62
- "road": "Union Pacific",
63
- "number": "3985",
64
- "mfg": "Rivarossi",
65
- "model": "Challenger 4-6-6-4",
66
- "comment": "Steam locomotive",
67
- "maxSpeed": 126,
68
- "functionKeys": {
69
- "F0": "Headlight",
70
- "F1": "Bell",
71
- "F2": "Whistle",
72
- "F3": "Steam",
73
- "F4": "Coupler"
74
- }
75
- },
76
- "BNSF5240": {
77
- "name": "BNSF5240",
78
- "address": "5240",
79
- "isLongAddress": true,
80
- "road": "BNSF",
81
- "number": "5240",
82
- "mfg": "Kato",
83
- "model": "SD40-2",
84
- "comment": "Heritage II paint",
85
- "maxSpeed": 126,
86
- "functionKeys": {
87
- "F0": "Headlight",
88
- "F1": "Bell",
89
- "F2": "Horn",
90
- "F3": "Dynamic Brake",
91
- "F4": "Mars Light"
92
- }
93
- }
94
- }
95
- }
96
- },
97
- "throttle": {
98
- "acquire": {
99
- "success": {
100
- "type": "throttle",
101
- "data": {
102
- "throttle": "{THROTTLE_ID}",
103
- "address": "{ADDRESS}",
104
- "speed": 0,
105
- "forward": true,
106
- "F0": false,
107
- "F1": false,
108
- "F2": false,
109
- "F3": false,
110
- "F4": false
111
- }
112
- }
113
- },
114
- "release": {
115
- "success": {
116
- "type": "throttle",
117
- "data": {}
118
- }
119
- },
120
- "control": {
121
- "speed": {
122
- "type": "throttle",
123
- "data": {
124
- "throttle": "{THROTTLE_ID}",
125
- "speed": "{SPEED}"
126
- }
127
- },
128
- "direction": {
129
- "type": "throttle",
130
- "data": {
131
- "throttle": "{THROTTLE_ID}",
132
- "forward": "{FORWARD}"
133
- }
134
- },
135
- "function": {
136
- "type": "throttle",
137
- "data": {
138
- "throttle": "{THROTTLE_ID}",
139
- "{FUNCTION}": "{VALUE}"
140
- }
141
- }
142
- }
143
- },
144
- "ping": {
145
- "type": "ping"
146
- },
147
- "pong": {
148
- "type": "pong"
149
- },
150
- "goodbye": {
151
- "type": "goodbye"
152
- },
153
- "error": {
154
- "throttleNotFound": {
155
- "type": "error",
156
- "data": {
157
- "code": 404,
158
- "message": "Throttle not found"
159
- }
160
- },
161
- "invalidSpeed": {
162
- "type": "error",
163
- "data": {
164
- "code": 400,
165
- "message": "Invalid speed value"
166
- }
167
- },
168
- "connectionError": {
169
- "type": "error",
170
- "data": {
171
- "code": 500,
172
- "message": "Connection error"
173
- }
174
- }
175
- }
176
- }