mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-30 21:04:48 +00:00
Adds PD.Core schema files from submodule build
This commit is contained in:
@@ -0,0 +1,181 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"title": "Control Properties",
|
||||
"$ref": "#/definitions/ControlPropertiesConfig",
|
||||
"definitions": {
|
||||
"ControlPropertiesConfig": {
|
||||
"description": "The method of communicating with the device",
|
||||
"properties": {
|
||||
"method": {
|
||||
"type": "string",
|
||||
"title": "Communication Method",
|
||||
"enum": [
|
||||
"none",
|
||||
"com",
|
||||
"ipid",
|
||||
"ipidtcp",
|
||||
"ir",
|
||||
"ssh",
|
||||
"tcpip",
|
||||
"telnet",
|
||||
"cresnet",
|
||||
"cec",
|
||||
"udp"
|
||||
]
|
||||
},
|
||||
"tcpSshProperties": {
|
||||
"$ref":"TcpSshPropertiesConfigSchema.json#definitions/TcpSshPropertiesConfig",
|
||||
"title": "Properties for IP based communication",
|
||||
"default": null
|
||||
},
|
||||
"comParams": {
|
||||
"title":"Com Port parameters",
|
||||
"description": "The parameters to configure the COM port",
|
||||
"type":"object",
|
||||
"protocol":{
|
||||
"title":"Protocol",
|
||||
"type":"string",
|
||||
"enum":[
|
||||
"RS232",
|
||||
"RS422",
|
||||
"RS485"
|
||||
]
|
||||
},
|
||||
"baudRate":{
|
||||
"title":"Baud Rate",
|
||||
"type":"integer",
|
||||
"enum":[
|
||||
300,
|
||||
600,
|
||||
1200,
|
||||
1800,
|
||||
2400,
|
||||
3600,
|
||||
4800,
|
||||
7200,
|
||||
9600,
|
||||
14400,
|
||||
19200,
|
||||
28800,
|
||||
38400,
|
||||
57600,
|
||||
115200
|
||||
]
|
||||
},
|
||||
"dataBits":{
|
||||
"title":"Data Bits",
|
||||
"type":"integer",
|
||||
"enum":[
|
||||
7,
|
||||
8
|
||||
]
|
||||
},
|
||||
"stopBits":{
|
||||
"title":"Stop Bits",
|
||||
"type":"integer",
|
||||
"enum":[
|
||||
1,
|
||||
2
|
||||
]
|
||||
},
|
||||
"parity":{
|
||||
"title":"Parity",
|
||||
"type":"string",
|
||||
"enum":[
|
||||
"None",
|
||||
"Even",
|
||||
"One"
|
||||
]
|
||||
},
|
||||
"softwareHandshake":{
|
||||
"title":"Software Handshake",
|
||||
"type":"string",
|
||||
"enum":[
|
||||
"None",
|
||||
"RTS",
|
||||
"CTS",
|
||||
"RTSCTS"
|
||||
]
|
||||
},
|
||||
"hardwareHandshake":{
|
||||
"title":"Hardware Handshake",
|
||||
"type":"string",
|
||||
"enum":[
|
||||
"None",
|
||||
"XON",
|
||||
"XONT",
|
||||
"XONR"
|
||||
]
|
||||
},
|
||||
"pacing":{
|
||||
"title":"Pacing",
|
||||
"type":"integer"
|
||||
}
|
||||
},
|
||||
"cresnetId":{
|
||||
"type": "string",
|
||||
"title":"Cresnet ID",
|
||||
"description": "Cresnet ID of the device",
|
||||
"default": "",
|
||||
"examples": [
|
||||
"13",
|
||||
"03",
|
||||
"0A",
|
||||
"F1"
|
||||
],
|
||||
"pattern": "^(?!00|01|02|FF)[0-9,A-F,a-f][0-9,A-F,a-f]$"
|
||||
},
|
||||
"controlPortDevKey": {
|
||||
"type": "string",
|
||||
"title":"Port Device",
|
||||
"description": "Key of the device where the control port is found",
|
||||
"examples": [
|
||||
"processor"
|
||||
]
|
||||
},
|
||||
"controlPortNumber": {
|
||||
"type": "integer",
|
||||
"title": "Port Number",
|
||||
"description": "Control Port Number on the device referenced by controlPortDevKey",
|
||||
"examples": [
|
||||
1
|
||||
]
|
||||
},
|
||||
"controlPortName": {
|
||||
"type": "string",
|
||||
"title": "Port Name",
|
||||
"description": "Control Port Name on the device referenced by controlPortDevKey",
|
||||
"examples": [
|
||||
"hdmi1"
|
||||
]
|
||||
},
|
||||
"irFile": {
|
||||
"type": "string",
|
||||
"title": "IR File",
|
||||
"description": "IR Filename",
|
||||
"default": "",
|
||||
"examples": [
|
||||
"Comcast Motorola DVR.ir"
|
||||
],
|
||||
"pattern": "^(.*).ir$"
|
||||
},
|
||||
"ipid": {
|
||||
"type": "string",
|
||||
"title": "IPID",
|
||||
"default": "",
|
||||
"examples": [
|
||||
"13",
|
||||
"03",
|
||||
"0A",
|
||||
"F1"
|
||||
],
|
||||
"pattern": "^(?!00|01|02|FF)[0-9,A-F,a-f][0-9,A-F,a-f]$"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"method"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"title": "TcpSshPropertiesConfig",
|
||||
"$ref": "#/definitions/TcpSshPropertiesConfig",
|
||||
"definitions": {
|
||||
"TcpSshPropertiesConfig": {
|
||||
"properties": {
|
||||
"username": {
|
||||
"type": "string",
|
||||
"title": "Username",
|
||||
"default":"",
|
||||
"examples": [
|
||||
"admin"
|
||||
],
|
||||
"pattern": "^(.*)$"
|
||||
},
|
||||
"port": {
|
||||
"type": "integer",
|
||||
"title": "Port Number",
|
||||
"minimum": 1,
|
||||
"maximum": 65535,
|
||||
"examples": [
|
||||
22,
|
||||
23,
|
||||
1515
|
||||
]
|
||||
},
|
||||
"address": {
|
||||
"type": "string",
|
||||
"title": "IP Address or Hostname",
|
||||
"examples": [
|
||||
"192.168.99.100",
|
||||
"myDeviceHostname"
|
||||
],
|
||||
"pattern": "^(.*)$"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"title": "Password",
|
||||
"default":"",
|
||||
"examples": [
|
||||
"password"
|
||||
],
|
||||
"pattern": "^(.*)$"
|
||||
},
|
||||
"autoReconnect": {
|
||||
"type": "boolean",
|
||||
"title": "Auto Reconnect",
|
||||
"description": "Indicates if automatic attemtps to reconnect should be made if communication is lost with the device",
|
||||
"default": true,
|
||||
"examples": [
|
||||
true
|
||||
]
|
||||
},
|
||||
"autoReconnectIntervalMs": {
|
||||
"type": "integer",
|
||||
"title": "Auto Reconnect Interval (Milliseconds)",
|
||||
"description": "If Auto Reconnect is enabled, how often should reconnect attempts be made",
|
||||
"default": 5000,
|
||||
"examples": [
|
||||
2000
|
||||
]
|
||||
},
|
||||
"bufferSize": {
|
||||
"type": "integer",
|
||||
"title": "Buffer Size",
|
||||
"description": "The size of the receive buffer to use",
|
||||
"default": 32768,
|
||||
"examples": [
|
||||
32768
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"port",
|
||||
"address"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -270,6 +270,12 @@
|
||||
<EmbeddedResource Include="Config\Schema\EssentialsConfigSchema.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Config\Schema\ControlPropertiesConfigSchema.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Config\Schema\TcpSshPropertiesConfigSchema.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\ControlSystem.cfg" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -103,10 +103,10 @@
|
||||
<Compile Include="Chassis\DmpsRoutingController.cs" />
|
||||
<Compile Include="Chassis\HdMdNxM4kEController.cs" />
|
||||
<Compile Include="IDmSwitch.cs" />
|
||||
<Compile Include="Config\DmpsRoutingConfig.cs" />
|
||||
<Compile Include="Chassis\Config\DmpsRoutingConfig.cs" />
|
||||
<Compile Include="Config\DmRmcConfig.cs" />
|
||||
<Compile Include="Config\DmTxConfig.cs" />
|
||||
<Compile Include="Config\DMChassisConfig.cs" />
|
||||
<Compile Include="Chassis\Config\DMChassisConfig.cs" />
|
||||
<Compile Include="Config\HdMdNxM4kEPropertiesConfig.cs" />
|
||||
<Compile Include="Config\InputPropertiesConfig.cs" />
|
||||
<Compile Include="DmPortName.cs" />
|
||||
@@ -148,7 +148,7 @@
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="VideoStatusHelpers.cs" />
|
||||
<None Include="app.config" />
|
||||
<EmbeddedResource Include="Config\Schema\DmChassisControllerPropertiesConfigSchema.json">
|
||||
<EmbeddedResource Include="Chassis\Config\Schema\DmChassisControllerPropertiesConfigSchema.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<None Include="Properties\ControlSystem.cfg" />
|
||||
|
||||
@@ -18,8 +18,10 @@
|
||||
"$ref":"ControlPropertiesConfigSchema.json#definitions/ControlPropertiesConfig"
|
||||
},
|
||||
"id":{
|
||||
"title":"Display ID",
|
||||
"description": "This must match the ID set in the display's on screen menu",
|
||||
"type":"string",
|
||||
"pattern": "^([0-9]|0[1-9]|[1-9][0-9])$"
|
||||
"pattern": "^(?!FF)[0-9,A-F,a-f][0-9,A-F,a-f]$"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user