diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-05 19:16:27 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-06-05 19:16:27 +0200 |
commit | 13b637356a92d68e5dfed6990443e6937f1ed9c6 (patch) | |
tree | 7510c9fd267a8957b581eea810916c05e1a7a287 /high.json |
Initial Commit
Change-Id: I4a832208f3db9f5fece82f44cc957c6c1bb91d6c
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'high.json')
-rw-r--r-- | high.json | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/high.json b/high.json new file mode 100644 index 0000000..fe91cc5 --- /dev/null +++ b/high.json @@ -0,0 +1,115 @@ +{ + "resources": [{ + "name": "/car/doors/", + "values": [{ + "name": "front_left", + "position": "front_left", + "isDoorOpen": "${messages.doors.front_left.open,-1}", + "isWindowOpen": "${messages.windows.front_left.open,-1}" + }, + { + "name": "front_right", + "position": "front_right", + "isDoorOpen": "${messages.doors.front_right.open,-1}", + "isWindowOpen": "${messages.windows.front_right.open,-1}" + }, + { + "name": "rear_left", + "position": "rear_left", + "isDoorOpen": "${messages.doors.rear_left.open,-1}", + "isWindowOpen": "${messages.windows.rear_left.open,-1}" + }, + { + "name": "rear_right", + "position": "rear_right", + "isDoorOpen": "${messages.doors.rear_right.open,-1}", + "isWindowOpen": "${messages.windows.rear_right.open,-1}" + } + ] + }, { + "name": "/car/demoboard/", + "values": [{ + "name": "vehicleSpeed", + "unit": "km/h", + "speed": "${diagnostic_messages.vehicle.speed,10000}" + }, { + "name": "engineSpeed", + "unit": "rpm", + "rpm": "${diagnostic_messages.engine.speed,10000}" + }, { + "name": "fuelLevel", + "unit": "litre", + "level": "${diagnostic_messages.fuel.level,10000}" + }, { + "name": "engineLoad", + "unit": "Nm", + "load": "${diagnostic_messages.engine.load,10000}" + }] + }], + + "definitions": [{ + "name": "/car/doors/", + "properties": { + "id": { + "type": "string", + "description": "identifier" + }, + "uri": { + "type": "string", + "description": "object uri" + }, + "name": { + "type": "string", + "description": "name" + }, + "position": { + "type": "string", + "description": "the vehicle door position" + }, + "isDoorOpen": { + "type": "boolean", + "description": "the door state; set to 'true' if the door is open" + }, + "isWindowOpen": { + "type": "boolean", + "description": "the window state of this door; set to 'true' if window is open; set to JSON-undefined if window state is unknown or invalid" + } + } + }, { + "name": "/car/demoboard/", + "properties": { + "id": { + "type": "string", + "description": "identifier" + }, + "uri": { + "type": "string", + "description": "object uri" + }, + "name": { + "type": "string", + "description": "name" + }, + "unit": { + "type": "string", + "description": "units" + }, + "speed": { + "type": "double", + "description": "vehicle centerpoint speed as shown by the instrument cluster" + }, + "rpm": { + "type": "double", + "description": "engine rotations per minute" + }, + "level": { + "type": "double", + "description": "level of tankage" + }, + "load": { + "type": "double", + "description": "engine load" + } + } + }] +} |