Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "definitions": {},
- "$schema": "http://json-schema.org/draft-07/schema#",
- "$id": "https://example.com/object1655996851.json",
- "title": "Root",
- "type": "object",
- "required": [
- "site_group"
- ],
- "properties": {
- "site_group": {
- "$id": "#root/site_group",
- "title": "Site_group",
- "type": "object",
- "required": [
- "campus_name",
- "interval",
- "name",
- "organisation_name",
- "outputs",
- "project_name",
- "sites"
- ],
- "properties": {
- "campus_name": {
- "$id": "#root/site_group/campus_name",
- "title": "Campus_name",
- "type": "string",
- "default": "",
- "examples": [
- "eco_homes"
- ],
- "pattern": "^.*$"
- },
- "interval": {
- "$id": "#root/site_group/interval",
- "title": "Interval",
- "type": "integer",
- "examples": [
- 60
- ],
- "default": 60
- },
- "name": {
- "$id": "#root/site_group/name",
- "title": "Name",
- "type": "string",
- "default": "",
- "examples": [
- "st_modwen_heathy_wood"
- ],
- "pattern": "^.*$"
- },
- "organisation_name": {
- "$id": "#root/site_group/organisation_name",
- "title": "Organisation_name",
- "type": "string",
- "default": "",
- "examples": [
- "st_modwen"
- ],
- "pattern": "^.*$"
- },
- "outputs": {
- "$id": "#root/site_group/outputs",
- "title": "Outputs",
- "type": "array",
- "default": [],
- "items":{
- "$id": "#root/site_group/outputs/items",
- "title": "Items",
- "type": "object",
- "required": [
- "PostgresOutput"
- ],
- "properties": {
- "PostgresOutput": {
- "$id": "#root/site_group/outputs/items/PostgresOutput",
- "title": "Postgresoutput",
- "type": "object",
- "required": [
- "settings"
- ],
- "properties": {
- "settings": {
- "$id": "#root/site_group/outputs/items/PostgresOutput/settings",
- "title": "Settings",
- "type": "object",
- "required": [
- "database",
- "host",
- "password",
- "port",
- "user"
- ],
- "properties": {
- "database": {
- "$id": "#root/site_group/outputs/items/PostgresOutput/settings/database",
- "title": "Database",
- "type": "string",
- "default": "",
- "examples": [
- "bmos"
- ],
- "pattern": "^.*$"
- },
- "host": {
- "$id": "#root/site_group/outputs/items/PostgresOutput/settings/host",
- "title": "Host",
- "type": "string",
- "default": "127.0.0.1",
- "examples": [
- "10.0.186.16"
- ],
- "pattern": "^.*$"
- },
- "password": {
- "$id": "#root/site_group/outputs/items/PostgresOutput/settings/password",
- "title": "Password",
- "type": "string",
- "default": "",
- "examples": [
- "cms823nvc"
- ],
- "pattern": "^.*$"
- },
- "port": {
- "$id": "#root/site_group/outputs/items/PostgresOutput/settings/port",
- "title": "Port",
- "type": "integer",
- "examples": [
- 5432
- ],
- "default": 5432
- },
- "user": {
- "$id": "#root/site_group/outputs/items/PostgresOutput/settings/user",
- "title": "User",
- "type": "string",
- "default": "",
- "examples": [
- "bmos"
- ],
- "pattern": "^.*$"
- }
- }
- }
- }
- }
- }
- }
- },
- "project_name": {
- "$id": "#root/site_group/project_name",
- "title": "Project_name",
- "type": "string",
- "default": "",
- "examples": [
- "heathy_wood"
- ],
- "pattern": "^.*$"
- },
- "sites": {
- "$id": "#root/site_group/sites",
- "title": "Sites",
- "type": "array",
- "default": [],
- "items":{
- "$id": "#root/site_group/sites/items",
- "title": "Items",
- "type": "object",
- "required": [
- "enable",
- "equip",
- "name",
- "plot"
- ],
- "properties": {
- "enable": {
- "$id": "#root/site_group/sites/items/enable",
- "title": "Enable",
- "type": "boolean",
- "examples": [
- true
- ],
- "default": true
- },
- "equip": {
- "$id": "#root/site_group/sites/items/equip",
- "title": "Equip",
- "type": "array",
- "default": [],
- "items":{
- "$id": "#root/site_group/sites/items/equip/items",
- "title": "Items",
- "type": "object",
- "required": [
- "enable",
- "ip",
- "name",
- "points",
- "port"
- ],
- "properties": {
- "name": {
- "$id": "#root/site_group/sites/items/equip/items/name",
- "title": "Name",
- "type": "string",
- "default": "",
- "examples": [
- "gateway"
- ],
- "pattern": "^.*$"
- },
- "enable": {
- "$id": "#root/site_group/sites/items/equip/items/enable",
- "title": "Enable",
- "type": "boolean",
- "examples": [
- true
- ],
- "default": true
- },
- "ip": {
- "$id": "#root/site_group/sites/items/equip/items/ip",
- "title": "Ip",
- "type": "string",
- "default": "",
- "examples": [
- "10.135.140.21"
- ],
- "pattern": "^.*$"
- },
- "points": {
- "$id": "#root/site_group/sites/items/equip/items/points",
- "title": "Points",
- "type": "array",
- "default": [],
- "items":{
- "$id": "#root/site_group/sites/items/equip/items/points/items",
- "title": "Items",
- "type": "object",
- "required": [
- "auto_convert",
- "data_type",
- "dis",
- "enable",
- "interval",
- "name",
- "order",
- "reg_type",
- "register",
- "scale",
- "supports_contiguous_modbus_reads",
- "tags",
- "uid",
- "units"
- ],
- "properties": {
- "name": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/name",
- "title": "Name",
- "type": "string",
- "default": "",
- "examples": [
- "living_room_rh"
- ],
- "pattern": "^.*$"
- },
- "auto_convert": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/auto_convert",
- "title": "Auto_convert",
- "type": "boolean",
- "examples": [
- false
- ],
- "default": true
- },
- "data_type": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/data_type",
- "title": "Data_type",
- "type": "string",
- "default": "",
- "examples": [
- "unsigned int"
- ],
- "pattern": "^.*$"
- },
- "dis": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/dis",
- "title": "Dis",
- "type": "string",
- "default": "",
- "examples": [
- "Living Room Relative Humidity"
- ],
- "pattern": "^.*$"
- },
- "enable": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/enable",
- "title": "Enable",
- "type": "boolean",
- "examples": [
- true
- ],
- "default": true
- },
- "interval": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/interval",
- "title": "Interval",
- "type": "integer",
- "examples": [
- 160
- ],
- "default": 0
- },
- "order": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/order",
- "title": "Order",
- "type": "string",
- "default": "",
- "examples": [
- "01"
- ],
- "pattern": "^.*$"
- },
- "reg_type": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/reg_type",
- "title": "Reg_type",
- "type": "string",
- "default": "",
- "examples": [
- "holding"
- ],
- "pattern": "^.*$"
- },
- "register": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/register",
- "title": "Register",
- "type": "integer",
- "examples": [
- 70
- ],
- "default": 0
- },
- "scale": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/scale",
- "title": "Scale",
- "type": "number",
- "examples": [
- 0.01
- ],
- "default": 0.0
- },
- "supports_contiguous_modbus_reads": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/supports_contiguous_modbus_reads",
- "title": "Supports_contiguous_modbus_reads",
- "type": "boolean",
- "examples": [
- true
- ],
- "default": true
- },
- "tags": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/tags",
- "title": "Tags",
- "type": "object",
- "required": [
- ],
- "properties": {
- }
- }
- ,
- "uid": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/uid",
- "title": "Uid",
- "type": "integer",
- "examples": [
- 99
- ],
- "default": 0
- },
- "units": {
- "$id": "#root/site_group/sites/items/equip/items/points/items/units",
- "title": "Units",
- "type": "string",
- "default": "",
- "examples": [
- "ΒΊC"
- ],
- "pattern": "^.*$"
- }
- }
- }
- },
- "port": {
- "$id": "#root/site_group/sites/items/equip/items/port",
- "title": "Port",
- "type": "integer",
- "examples": [
- 503
- ],
- "default": 0
- }
- }
- }
- },
- "name": {
- "$id": "#root/site_group/sites/items/name",
- "title": "Name",
- "type": "string",
- "default": "",
- "examples": [
- "STM-87-HWA"
- ],
- "pattern": "^.*$"
- },
- "plot": {
- "$id": "#root/site_group/sites/items/plot",
- "title": "Plot",
- "type": "string",
- "default": "",
- "examples": [
- "A"
- ],
- "pattern": "^.*$"
- }
- }
- }
- }
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement