Changeset - 03e08c17cee2
[Not reviewed]
default
0 1 0
Dennis Fink - 3 years ago 2022-06-10 09:38:27
dennis.fink@c3l.lu
Fix barometer unit in jsonschema
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
spaceapi/schema/sensors.json
Show inline comments
 
{
 
  "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"
 
      }
 
    },
 
    "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ø"
 
        ]
 
      }
 
    },
 
    "required": [
 
      "value",
 
      "unit",
 
      "location"
 
    ],
 
    "type": "object"
 
  },
 
  "barometer": {
 
    "properties": {
 
      "name": {
 
        "type": "string"
 
      },
 
      "value": {
 
        "type": "number"
 
      },
 
      "unit": {
 
        "enum": [
 
          "hPA"
 
          "hPa"
 
        ]
 
      },
 
      "location": {
 
        "type": "string"
 
      },
 
      "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"
 
          }
 
        }
 
      },
 
      "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"
 
            },
 
            "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"
 
      }
 
    },
 
    "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"
0 comments (0 inline, 0 general)