Skip to content

Instantly share code, notes, and snippets.

@jomicega
Last active October 17, 2019 18:42
Show Gist options
  • Save jomicega/4cbec237b214aa29540fa2b308dc735d to your computer and use it in GitHub Desktop.
Save jomicega/4cbec237b214aa29540fa2b308dc735d to your computer and use it in GitHub Desktop.
{"devices": [ {
"name": "Tarjeta1 Edit",
"configurator": {
"name": "Standard Card V1",
"analogInputs": {
"quantity": 6,
"prefix": "AI",
"__typename": "ParametersConfiguration"
},
"analogOutputs": {
"quantity": 0,
"prefix": "AO",
"__typename": "ParametersConfiguration"
},
"digitalInputs": {
"quantity": 8,
"prefix": "DI",
"__typename": "ParametersConfiguration"
},
"digitalOutputs": {
"quantity": 4,
"prefix": "DO",
"__typename": "ParametersConfiguration"
},
"virtualInputs": {
"quantity": 2,
"prefix": "VI",
"__typename": "ParametersConfiguration"
},
"virtualOutputs": {
"quantity": 0,
"prefix": "VO",
"__typename": "ParametersConfiguration"
},
"__typename": "DeviceConfiguration"
},
"__typename": "Device"
} ]
}
{
"equipments": [
{
"name": "Tanque Inferior Edit",
"variables": [
{
"name": "Nivel 1",
"parameter": {
"device": {
"name": "Tarjeta1 Edit",
"__typename": "Device"
},
"usedBy": {
"name": "Nivel 1",
"__typename": "Variable"
},
"__typename": "Parameter"
},
"sensor": {
"name": "Identidad",
"operation": "return value;",
"__typename": "Sensor" },
"__typename": "Variable"
}
],
"__typename": "Equipment"
},
{
"name": "Tanque Superior",
"variables": [
{
"name": "Nivel 2",
"parameter": {
"device": {
"name": "Tarjeta1 Edit",
"__typename": "Device"
},
"usedBy": {
"name": "Nivel 2",
"__typename": "Variable"
},
"__typename": "Parameter"
},
"sensor": {
"name": "Identidad",
"operation": "return value;",
"__typename": "Sensor"
},
"__typename": "Variable"
},
{
"name": "Rebose Tanque",
"parameter": {
"device": {
"name": "Tarjeta1 Edit",
"__typename": "Device"
},
"usedBy": {
"name": "Rebose Tanque",
"__typename": "Variable"
},
"__typename": "Parameter"
},
"sensor": {
"name": "Identidad",
"operation": "return value;",
"__typename": "Sensor"
}, "__typename": "Variable" }
],
"__typename": "Equipment"
}
]}
{
"operationMode": {
"base": {
"rules": [
{
"name": "Nivel Alto",
"notifications": [ "SCREEN" ],
"validations": [
{
"variable": {
"name": "Nivel 2",
"__typename": "Variable"
},
"value": 590,
"operator": "GT",
"__typename": "Validation"
},
{
"variable": {
"name": "Rebose Tanque",
"__typename": "Variable"
},
"value": 0,
"operator": "EQ",
"__typename": "Validation"
}
],
"__typename": "Rule"
},
{
"name": "Salida Nivel Alto",
"notifications": [ "SCREEN" ],
"validations": [
{
"variable": {
"name": "Nivel 2",
"__typename": "Variable"
},
"value": 500,
"operator": "LT",
"__typename": "Validation"
},
{
"variable": {
"name": "Rebose Tanque",
"__typename": "Variable"
},
"value": 1,
"operator": "EQ",
"__typename": "Validation"
}
],
"__typename": "Rule"
}
],
"__typename": "BaseOperationMode"
},
"compound": [],
"maintenance": {
"initDate": "2019-12-14",
"endDate": "2020-01-01",
"initHour": 0,
"endHour": 1,
"operationDays": [],
"rules": [],
"__typename": "MaintenanceOperationMode"
},
"__typename": "OperationMode"
}
}
{
"rules": [
{
"name": "Nivel Alto",
"notifications": [ "SCREEN" ],
"validations": [
{
"variable": {
"name": "Nivel 2",
"__typename": "Variable"
},
"value": 590,
"operator": "GT",
"__typename": "Validation"
},
{
"variable": {
"name": "Rebose Tanque",
"__typename": "Variable"
},
"value": 0,
"operator": "EQ",
"__typename": "Validation"
}
],
"__typename": "Rule"
},
{
"name": "Salida Nivel Alto",
"notifications": [ "SCREEN" ],
"validations": [
{
"variable": {
"name": "Nivel 2",
"__typename": "Variable"
},
"value": 500,
"operator": "LT",
"__typename": "Validation"
},
{
"variable": {
"name": "Rebose Tanque",
"__typename": "Variable"
},
"value": 1,
"operator": "EQ",
"__typename": "Validation"
}
],
"__typename": "Rule"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment