Input URI
{base url} + db/ETFC |
---|
Active Methods
POST, GET, PUT, DELETE |
---|
JSON Schema
Details
{
"ETFC": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"NAME": {
"description": "Name",
"type": "string"
},
"TYPE": {
"description": "Type",
"type": "string"
},
"TEMP": {
"description": "Temperature(Const)",
"type": "number"
},
"MAX_TEMP": {
"description": "MaxTemp.(Sine)",
"type": "number"
},
"MEAN_TEMP": {
"description": "MeanTemp.(Sine)",
"type": "number"
},
"DELAY_TIME": {
"description": "Delaytime(Sine)",
"type": "number"
},
"SCALE_FACTOR": {
"description": "Scale(User)",
"type": "number"
},
"ITEM": {
"description": "FunctionData",
"type": "array",
"items": {
"type": "object",
"properties": {
"TIME": {
"description": "Time",
"type": "number"
},
"VALUE": {
"description": "Value",
"type": "number"
}
}
}
}
}
}
}
"ETFC": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"NAME": {
"description": "Name",
"type": "string"
},
"TYPE": {
"description": "Type",
"type": "string"
},
"TEMP": {
"description": "Temperature(Const)",
"type": "number"
},
"MAX_TEMP": {
"description": "MaxTemp.(Sine)",
"type": "number"
},
"MEAN_TEMP": {
"description": "MeanTemp.(Sine)",
"type": "number"
},
"DELAY_TIME": {
"description": "Delaytime(Sine)",
"type": "number"
},
"SCALE_FACTOR": {
"description": "Scale(User)",
"type": "number"
},
"ITEM": {
"description": "FunctionData",
"type": "array",
"items": {
"type": "object",
"properties": {
"TIME": {
"description": "Time",
"type": "number"
},
"VALUE": {
"description": "Value",
"type": "number"
}
}
}
}
}
}
}
Examples
Ambient Temperature Functions
{
"Assign": {
"1": {
"NAME": "AmbientTemperature",
"TYPE": "CONST",
"TEMP": 30
},
"2": {
"NAME": "11",
"TYPE": "USER",
"SCALE_FACTOR": 1,
"ITEM": [
{
"TIME": 0,
"VALUE": 20
},
{
"TIME": 1,
"VALUE": 30
},
{
"TIME": 2,
"VALUE": 40
}
]
},
"3": {
"NAME": "22",
"TYPE": "SINE",
"MAX_TEMP": 20,
"MEAN_TEMP": 0,
"DELAY_TIME": 1
}
}
}
"Assign": {
"1": {
"NAME": "AmbientTemperature",
"TYPE": "CONST",
"TEMP": 30
},
"2": {
"NAME": "11",
"TYPE": "USER",
"SCALE_FACTOR": 1,
"ITEM": [
{
"TIME": 0,
"VALUE": 20
},
{
"TIME": 1,
"VALUE": 30
},
{
"TIME": 2,
"VALUE": 40
}
]
},
"3": {
"NAME": "22",
"TYPE": "SINE",
"MAX_TEMP": 20,
"MEAN_TEMP": 0,
"DELAY_TIME": 1
}
}
}
Specifications
No. | Description | Key | Value Type | Default | Required | |
---|---|---|---|---|---|---|
1 |
Function Name |
"NAME" |
String |
- |
Required |
|
2 |
Function Type • Constant: "CONST" • Sine Function: "SINE" • User: "USER" |
"TYPE" |
String |
- |
Required |
|
When Function Type, "TYPE" is "CONST" (Constant) |
||||||
3 |
Temperature |
"TEMP" |
Number |
0 |
Optional |
|
When Function Type, "TYPE" is "SINE" (Sine Function) |
||||||
3 |
Max. Temperature (T) |
"MAX_TEMP" |
Number |
0 |
Optional |
|
4 |
Temperature Mean (To) |
"MEAN_TEMP" |
Number |
0 |
Optional |
|
5 |
Delay Time (to) |
"DELAY_TIME" |
Number |
0 |
Optional |
|
When Function Type, "TYPE" is "USER" (User) |
||||||
3 |
Scale Factor |
"SCALE_FACTOR" |
Number |
- |
Required |
|
4 |
Function Data • Insert the data as an object |
"ITEM" |
Array |
- |
Required |
|
(1) |
Time |
"TIME" |
Number |
- |
Required |
|
(2) |
Temperature |
"VALUE" |
Number |
- |
Required |