# HG changeset patch # User Dennis Fink # Date 2021-03-20 12:36:12 # Node ID 0b573dbfd8224999f7bbaa9733bafe9da067eaf2 # Parent 24254db0a05adfbfbb6af0d06df41f9d28514659 Autoformat JSON diff --git a/spaceapi/schema/sensors.json b/spaceapi/schema/sensors.json --- a/spaceapi/schema/sensors.json +++ b/spaceapi/schema/sensors.json @@ -1,543 +1,543 @@ { - "account_balance" : { - "type" : "object", - "required" : [ - "value", - "unit" - ], - "properties" : { - "value" : { - "type" : "number" - }, - "name" : { - "type" : "string" - }, - "location" : { - "type" : "string" - }, - "unit" : { - "enum" : [ - "BTC", - "EUR", - "USD", - "GBP" - ] - }, - "description" : { - "type" : "string" - } + "account_balance": { + "type": "object", + "required": [ + "value", + "unit" + ], + "properties": { + "value": { + "type": "number" + }, + "name": { + "type": "string" + }, + "location": { + "type": "string" + }, + "unit": { + "enum": [ + "BTC", + "EUR", + "USD", + "GBP" + ] + }, + "description": { + "type": "string" } - }, - "people_now_present" : { - "properties" : { - "location" : { - "type" : "string" - }, - "names" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - "description" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "value" : { - "type" : "number" - } + } + }, + "people_now_present": { + "properties": { + "location": { + "type": "string" + }, + "names": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "name": { + "type": "string" }, - "required" : [ - "value" - ], - "type" : "object" - }, - "temperature" : { - "properties" : { - "name" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "description" : { - "type" : "string" - }, - "location" : { - "type" : "string" - }, - "unit" : { - "enum" : [ - "°C", - "°F", - "K", - "°De", - "°N", - "°R", - "°Ré", - "°Rø" - ] - } + "value": { + "type": "number" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "temperature": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "number" + }, + "description": { + "type": "string" + }, + "location": { + "type": "string" }, - "required" : [ - "value", - "unit", - "location" - ], - "type" : "object" - }, - "barometer" : { - "properties" : { - "name" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "unit" : { - "enum" : [ - "hPA" - ] - }, - "location" : { - "type" : "string" - }, - "description" : { - "type" : "string" - } + "unit": { + "enum": [ + "°C", + "°F", + "K", + "°De", + "°N", + "°R", + "°Ré", + "°Rø" + ] + } + }, + "required": [ + "value", + "unit", + "location" + ], + "type": "object" + }, + "barometer": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "hPA" + ] + }, + "location": { + "type": "string" }, - "required" : [ - "value", - "unit", - "location" - ], - "type" : "object" - }, - "radiation" : { - "beta" : { - "type" : "array", - "items" : { - "properties" : { - "location" : { - "type" : "string" - }, - "unit" : { - "enum" : [ - "cpm", - "r/h", - "µSv/h", - "mSv/a", - "µSv/a" - ] - }, - "description" : { - "type" : "string" - }, - "conversion_factor" : { - "type" : "number" - }, - "dead_time" : { - "type" : "number" - }, - "value" : { - "type" : "number" - }, - "name" : { - "type" : "string" - } - }, - "type" : "object", - "required" : [ - "value", - "unit" + "description": { + "type": "string" + } + }, + "required": [ + "value", + "unit", + "location" + ], + "type": "object" + }, + "radiation": { + "beta": { + "type": "array", + "items": { + "properties": { + "location": { + "type": "string" + }, + "unit": { + "enum": [ + "cpm", + "r/h", + "µSv/h", + "mSv/a", + "µSv/a" + ] + }, + "description": { + "type": "string" + }, + "conversion_factor": { + "type": "number" + }, + "dead_time": { + "type": "number" + }, + "value": { + "type": "number" + }, + "name": { + "type": "string" + } + }, + "type": "object", + "required": [ + "value", + "unit" + ] + } + }, + "alpha": { + "type": "array", + "items": { + "properties": { + "unit": { + "enum": [ + "cpm", + "r/h", + "µSv/h", + "mSv/a", + "µSv/a" ] - } + }, + "location": { + "type": "string" + }, + "description": { + "type": "string" + }, + "dead_time": { + "type": "number" + }, + "conversion_factor": { + "type": "number" + }, + "name": { + "type": "string" + }, + "value": { + "type": "number" + } + }, + "type": "object", + "required": [ + "value", + "unit" + ] + } + }, + "gamma": { + "items": { + "type": "object", + "required": [ + "value", + "unit" + ], + "properties": { + "description": { + "type": "string" + }, + "conversion_factor": { + "type": "number" + }, + "dead_time": { + "type": "number" + }, + "unit": { + "enum": [ + "cpm", + "r/h", + "µSv/h", + "mSv/a", + "µSv/a" + ] + }, + "location": { + "type": "string" + }, + "value": { + "type": "number" + }, + "name": { + "type": "string" + } + } }, - "alpha" : { - "type" : "array", - "items" : { - "properties" : { - "unit" : { - "enum" : [ - "cpm", - "r/h", - "µSv/h", - "mSv/a", - "µSv/a" - ] - }, - "location" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "dead_time" : { - "type" : "number" - }, - "conversion_factor" : { - "type" : "number" - }, - "name" : { - "type" : "string" - }, - "value" : { - "type" : "number" - } + "type": "array" + }, + "beta_gamma": { + "items": { + "properties": { + "location": { + "type": "string" + }, + "unit": { + "enum": [ + "cpm", + "r/h", + "µSv/h", + "mSv/a", + "µSv/a" + ] + }, + "dead_time": { + "type": "number" + }, + "conversion_factor": { + "type": "number" + }, + "description": { + "type": "string" + }, + "value": { + "type": "number" + }, + "name": { + "type": "string" + } + }, + "required": [ + "value", + "unit" + ], + "type": "object" + }, + "type": "array" + }, + "type": "object" + }, + "network_connections": { + "required": [ + "value" + ], + "type": "object", + "properties": { + "machines": { + "items": { + "properties": { + "name": { + "type": "string" }, - "type" : "object", - "required" : [ - "value", - "unit" - ] - } + "mac": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "value": { + "type": "number" + }, + "name": { + "type": "string" + }, + "type": { + "enum": [ + "wifi", + "cable", + "spacenet" + ] + }, + "location": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "beverage_supply": { + "required": [ + "value", + "unit" + ], + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "btl", + "crt" + ] + }, + "location": { + "type": "string" + }, + "description": { + "type": "string" + } + } + }, + "door_locked": { + "properties": { + "description": { + "type": "string" }, - "gamma" : { - "items" : { - "type" : "object", - "required" : [ - "value", - "unit" - ], - "properties" : { - "description" : { - "type" : "string" - }, - "conversion_factor" : { - "type" : "number" - }, - "dead_time" : { - "type" : "number" - }, - "unit" : { - "enum" : [ - "cpm", - "r/h", - "µSv/h", - "mSv/a", - "µSv/a" - ] - }, - "location" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "name" : { - "type" : "string" - } - } - }, - "type" : "array" + "location": { + "type": "string" + }, + "value": { + "type": "boolean" + }, + "name": { + "type": "string" + } + }, + "type": "object", + "required": [ + "value", + "location" + ] + }, + "humidity": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "%" + ] + }, + "location": { + "type": "string" }, - "beta_gamma" : { - "items" : { - "properties" : { - "location" : { - "type" : "string" - }, - "unit" : { - "enum" : [ - "cpm", - "r/h", - "µSv/h", - "mSv/a", - "µSv/a" - ] - }, - "dead_time" : { - "type" : "number" - }, - "conversion_factor" : { - "type" : "number" - }, - "description" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "name" : { - "type" : "string" - } - }, - "required" : [ - "value", - "unit" + "description": { + "type": "string" + } + }, + "required": [ + "value", + "unit", + "location" + ], + "type": "object" + }, + "wind": { + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "properties": { + "type": "object", + "required": [ + "speed", + "gust", + "direction", + "elevation" + ], + "properties": { + "speed": { + "required": [ + "value", + "unit" ], - "type" : "object" - }, - "type" : "array" - }, - "type" : "object" - }, - "network_connections" : { - "required" : [ - "value" - ], - "type" : "object", - "properties" : { - "machines" : { - "items" : { - "properties" : { - "name" : { - "type" : "string" - }, - "mac" : { - "type" : "string" - } - }, - "type" : "object" - }, - "type" : "array" - }, - "value" : { - "type" : "number" - }, - "name" : { - "type" : "string" - }, - "type" : { - "enum" : [ - "wifi", - "cable", - "spacenet" - ] - }, - "location" : { - "type" : "string" - }, - "description" : { - "type" : "string" - } - } - }, - "beverage_supply" : { - "required" : [ - "value", - "unit" - ], - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "unit" : { - "enum" : [ - "btl", - "crt" - ] - }, - "location" : { - "type" : "string" - }, - "description" : { - "type" : "string" - } - } - }, - "door_locked" : { - "properties" : { - "description" : { - "type" : "string" - }, - "location" : { - "type" : "string" - }, - "value" : { - "type" : "boolean" - }, - "name" : { - "type" : "string" - } - }, - "type" : "object", - "required" : [ - "value", - "location" - ] - }, - "humidity" : { - "properties" : { - "name" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "unit" : { - "enum" : [ - "%" - ] - }, - "location" : { - "type" : "string" - }, - "description" : { - "type" : "string" - } + "type": "object", + "properties": { + "unit": { + "enum": [ + "m/s", + "km/h", + "kn" + ] + }, + "value": { + "type": "number" + } + } + }, + "direction": { + "type": "object", + "required": [ + "value", + "unit" + ], + "properties": { + "unit": { + "enum": [ + "°" + ] + }, + "value": { + "type": "number" + } + } + }, + "gust": { + "required": [ + "value", + "unit" + ], + "type": "object", + "properties": { + "value": { + "type": "number" + }, + "unit": { + "enum": [ + "m/s", + "km/h", + "kn" + ] + } + } + }, + "elevation": { + "type": "object", + "required": [ + "value", + "unit" + ], + "properties": { + "unit": { + "enum": [ + "m" + ] + }, + "value": { + "type": "number" + } + } + } + } }, - "required" : [ - "value", - "unit", - "location" - ], - "type" : "object" - }, - "wind" : { - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "properties" : { - "type" : "object", - "required" : [ - "speed", - "gust", - "direction", - "elevation" - ], - "properties" : { - "speed" : { - "required" : [ - "value", - "unit" - ], - "type" : "object", - "properties" : { - "unit" : { - "enum" : [ - "m/s", - "km/h", - "kn" - ] - }, - "value" : { - "type" : "number" - } - } - }, - "direction" : { - "type" : "object", - "required" : [ - "value", - "unit" - ], - "properties" : { - "unit" : { - "enum" : [ - "°" - ] - }, - "value" : { - "type" : "number" - } - } - }, - "gust" : { - "required" : [ - "value", - "unit" - ], - "type" : "object", - "properties" : { - "value" : { - "type" : "number" - }, - "unit" : { - "enum" : [ - "m/s", - "km/h", - "kn" - ] - } - } - }, - "elevation" : { - "type" : "object", - "required" : [ - "value", - "unit" - ], - "properties" : { - "unit" : { - "enum" : [ - "m" - ] - }, - "value" : { - "type" : "number" - } - } - } - } - }, - "location" : { - "type" : "string" - } + "location": { + "type": "string" + } + }, + "type": "object", + "required": [ + "properties", + "location" + ] + }, + "total_member_count": { + "properties": { + "description": { + "type": "string" + }, + "location": { + "type": "string" + }, + "value": { + "type": "number" }, - "type" : "object", - "required" : [ - "properties", - "location" - ] - }, - "total_member_count" : { - "properties" : { - "description" : { - "type" : "string" - }, - "location" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "name" : { - "type" : "string" - } + "name": { + "type": "string" + } + }, + "required": [ + "value" + ], + "type": "object" + }, + "power_consumption": { + "required": [ + "value", + "unit", + "location" + ], + "type": "object", + "properties": { + "name": { + "type": "string" }, - "required" : [ - "value" - ], - "type" : "object" - }, - "power_consumption" : { - "required" : [ - "value", - "unit", - "location" - ], - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "value" : { - "type" : "number" - }, - "location" : { - "type" : "string" - }, - "unit" : { - "enum" : [ - "mW", - "W", - "VA" - ] - }, - "description" : { - "type" : "string" - } + "value": { + "type": "number" + }, + "location": { + "type": "string" + }, + "unit": { + "enum": [ + "mW", + "W", + "VA" + ] + }, + "description": { + "type": "string" } - } + } + } }