The information contained in this document is believed to be correct,
but Omega accepts no liability for any errors it contains, and reserves
the right to alter specifications without notice.
2. Connecting to the IServer2 ............................................................................................................................................ 4
3.1.3. Example .......................................................................................................................................................................... 4
3.2. Probe List Command ........................................................................................................................................................ 5
3.2.3. Example .......................................................................................................................................................................... 6
3.3. Sensor Data Command ................................................................................................................................................... 7
3.3.3. Example .......................................................................................................................................................................... 8
3.4. Sensor Meta Command ................................................................................................................................................... 9
3.4.3. Example .......................................................................................................................................................................... 10
3.5. Probe Meta Command ..................................................................................................................................................... 10
3.5.3. Example .......................................................................................................................................................................... 11
3.6. System Meta Command .................................................................................................................................................. 12
3.6.3. Example .......................................................................................................................................................................... 13
3.7. Adjust Info Command (Gain and Offset) .................................................................................................................. 14
3.7.3. Read Example .............................................................................................................................................................. 14
3.8.3. Read Example .............................................................................................................................................................. 17
3.8.6. Write Example .............................................................................................................................................................. 19
3.9. Alarm Status Command .................................................................................................................................................. 20
3.9.3. Example .......................................................................................................................................................................... 20
3.10.3. Read Example .............................................................................................................................................................. 21
3.10.6. Write Example .............................................................................................................................................................. 22
3.11.3. Read Example .............................................................................................................................................................. 24
3.11.6. Write Example .............................................................................................................................................................. 25
3.12.3. Read Example .............................................................................................................................................................. 27
3.12.6. Write Example .............................................................................................................................................................. 31
3.13.3. Read Example .............................................................................................................................................................. 34
3.13.6. Write Example .............................................................................................................................................................. 38
3.14.3. Read Example .............................................................................................................................................................. 41
3.14.6. Write Example .............................................................................................................................................................. 45
3.15.3. Read Example .............................................................................................................................................................. 48
3.15.6. Write Example .............................................................................................................................................................. 50
3.16.3. Example .......................................................................................................................................................................... 52
3.17.3. Example .......................................................................................................................................................................... 53
4.1. Extract Data ......................................................................................................................................................................... 53
4.1.2. Example .......................................................................................................................................................................... 53
Table of Contents
5
Page 6
1. Introduction
This document provides information regarding the JSON objects used in the iServer2.
2. Connecting to the IServer2
Open a WebSocket connection to http://<IServer2 IP address>:8081. Messages with JSON objects can then be
used to communicate with the iServer2.
3. JSON Commands
3.1. Login Command
The login command, logs into the iServer2, the return response contains a token that must be sent in other
commands.
3.1.1. Command Parameters
{
“login”: {
“username”: “string”,
“password”: “string”
}
}
NameTyp eDescription
username
password
StringThe username is either “admin” or “user”.
stringThe password to login.
3.1.2. Response Content
{
“login”: {
“status”: “string”,
“token”: “string”
}
}
NameTyp eDescription
status
token
String
string
3.1.3. Example
Command:
{
“login”: {
“username”: “admin”,
Returns success upon successful login, otherwise an authentication error
will return.
Security token. It will be required for other commands.
“password”: “00000000”
}
}
6M-5807
Page 7
Response:
{
“login”: {
“status”: “success”,
“token”: “cb2fc968-5234-483c-8ded-8be8422abe6f”
}
}
3.2. Probe List Command
This command retrieves the list of probes and their status. Probe id 0 refers to thermocouples and is
meaningless in probe models of the iServer2.
3.2.1. Command Parameters
{
“probeList”: {
“token”: “string”
}
}
NameTyp eDescription
token
StringSecurity token from successful login.
3.2.2. Response Content
{
“probeList”: {
“status”: “string”,
“probes”: [
{
“probeId”: int,
“probe”: int,
“sensors”: [array],
“connected”: int,
“timestamp”: long,
“isLock”: int,
“isExtractIP”: int
},
{
…
},
]
7JSON Commands
Page 8
}
}
NameTyp eDescription
status
probes
probeId
probe
sensors
connected
timestamp
isLock
isExtractIP
3.2.3. Example
Command:
{
StringReturns success upon successful login, otherwise an authentication error
will return.
arraySecurity token. It will be required for other commands.
intProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
arrayObject that contains sensor ids up to the number of sensors the probe
has.
int0-probe is not connected, 1-probe is connected
LongUTC timestamp
int0-probe is not locked by password, 1-probe is locked by password
int0-iServer2 is not extracting log data from probe, 1-iServer2 is extracting
log data from probe
“probeList”: {
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“probeList”: {
“status”: “success”,
“probes”: [
{
“probeId”: 0,
“probe”: 0,
“sensors”: [],
“connected”: 0,
“timestamp”: 0,
“isLock”: 0,
“isExtractIP”: 0
},
{
“probeId”: 1,
“probe”: 1,
8M-5807
Page 9
“sensors”: [
0,
1,
2
],
“connected”: 1,
“timestamp”: 1706144586,
“isLock”: 0,
“isExtractIP”: 0
},
{
“probeId”: 2,
“probe”: 2,
“sensors”: [],
“connected”: 0,
“timestamp”: 0,
“isLock”: 0,
“isExtractIP”: 0
}
]
}
}
3.3. Sensor Data Command
This command is used to read the current display data.
3.3.1. Command Parameters
{
“sensorData”: {
“probe”: int,
“channel”: int,
“token”: “string”
}
}
NameTyp eDescription
probe
channel
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
StringSecurity token from successful login.
9JSON Commands
Page 10
3.3.2. Response Content
{
“sensorData”: {
“probe”: int,
“channel”: int,
“time”: long,
“value”: oat,
“precision”: int
}
}
NameTyp eDescription
probe
channel
Time
value
precision
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
LongUTC timestamp
oatChannel or sensor reading
IntNumber of decimal places for the intended resolution
3.3.3. Example
Command:
{
“sensorData”: {
“probe”: 1,
“channel”: 1,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“sensorData”: {
“probe”: 1,
“channel”: 1,
“time ”: 1706231919,
“value”: 52.900001525878906,
“precision”: 1
}
}
10M-5807
Page 11
3.4. Sensor Meta Command
This command is used to read the units, the type and the name of sensor.
3.4.1. Command Parameters
{
“sensorMeta”: {
“probe”: int,
“channel”: int,
“token”: “string”
}
}
NameTyp eDescription
probe
channel
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
StringSecurity token from successful login.
3.4.2. Response Content
{
“sensorMeta”: {
“status”: “string”,
“probe”: int,
“channel”: int,
“type”: int,
“typestr”: “string”,
“unit”: “string”,
“subtype”: int,
“name”: “string”,
“precision”: int
}
}
NameTyp eDescription
status
probe
channel
type
typestr
unit
subtype
name
precision
stringReturns success if data exists otherwise an error will return
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
intNumeric representation of the sensor type, internal use.
stringThe string representation of the t ype of sensor
StringThe unit of the sensor
IntInternal use.
stringThe name of the sensor.
IntNumber of decimal places for the intended resolution
11JSON Commands
Page 12
3.4.3. Example
Command:
{
“sensorMeta”: {
“probe”: 1,
“channel”: 0,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“sensorMeta”: {
“status”: “success”,
“probe”: 1,
“channel”: 0,
“type”: 1,
“typestr”: “temperature”,
“unit”: “C”,
“subtype”: 0,
“name”: “Temperature”,
“precision”: 1
}
}
3.5. Probe Meta Command
This command is used to read information about the probe.
3.5.1. Command Parameters
{
“probeMeta”: {
“probe”: int,
“token”: “string”
}
}
NameTyp eDescription
probe
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
StringSecurity token from successful login.
12M-5807
Page 13
3.5.2. Response Content
{
“probeMeta”: {
“probe”: int,
“sensor”: int,
“output”: int,
“rmwareVer”: long,
“coreVer”: long,
“manufacturedDate”: long,
“calibratedDate”: long,
“status”: “string”,
“probeModel”: “string”
}
}
NameTyp eDescription
probe
sensor
output
rmwareVer
coreVer
manufacturedDate
calibratedDate
status
probeModel
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intNumber of sensors on the probe
intNumber of outputs on the probe
LongDecimal representation of the rmware version, convert to hex to
get the version number (e.g. 2.6.4.0 is 0x02060400)
longDecimal representation of the smart sensor core version, covert to
hex to get version number (e.g. 2.6.4.0 is 0x02060400).
longTimestamp of the manufactured date. Requires adding 946684800
to the value to get the UTC timestamp.
longTimestamp of time of last calibration date. Requires adding
946684800 to the value to get the UTC timestamp.
stringReturns success if data exists otherwise an error will return
stringThe model of the probe at tached.
3.5.3. Example
Command:
{
“probeMeta”: {
“probe”: 1,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“probeMeta”: {
13JSON Commands
Page 14
“probe”: 1,
“sensor”: 3,
“output”: 2,
“rmwareVer”: 33948672,
“coreVer”: 54793475,
“manufacturedDate”: 84871141,
“calibratedDate”: 84871141,
“status”: “success”,
“probeModel”: “SP-003-1”
}
}
3.6. System Meta Command
This command is used to read information about the iServer2.
3.6.1. Command Parameters
{
“systemMeta”: {
“token”: “string”
}
}
NameTyp eDescription
token
StringSecurity token from successful login.
3.6.2. Response Content
{
“dbupdate”: {
“status”: “string”
},
“systemMeta”: {
“status”: “string”,
“rmwareStr”: “string”,
“hardware”: long,
“manufacturer”: “string”,
“model”: “string”,
“deviceName”: “string”,
“systemName”: “string”,
“id”: “string”,
“samplingTime”: int,
14M-5807
Page 15
“probeMode”: int
}
}
NameTypeDescription
status
rmwareStr
hardware
manufacturer
model
deviceName
systemName
id
samplingTime
probeMode
3.6.3. Example
Command:
{
stringReturns success if data exists otherwise an error will return
stringiServer2 rmware version
longreserved
stringManufacturer of iServer2
stringModel of the iServer2
stringName of the iServer2
longName used for DNS discovery
stringSerial number of the iServer2
intSample time of the iServer2, it is xed to 1 sample per second
int0 for single probe mode, 1 for dual probe mode
“systemMeta”: {
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“dbupdate”: {
“status”: “success”
},
“systemMeta”: {
“status”: “success”,
“rmwareStr”: “1.0.7.1”,
“hardware”: 16843266,
“manufacturer”: “Omega”,
“model”: “iS2-THB-DP”,
“deviceName”: “iServer2”,
“systemName”: “is2-omegad79d”,
“id”: “F2215i030123”,
“samplingTime”: 1,
“probeMode”: 0
}
}
15JSON Commands
Page 16
3.7. Adjust Info Command (Gain and Offset)
This command is used to read and write a sensor’s gain and offset.
3.7.1. Read Command Parameters
{
“ adjustInfo”: {
“probe”: int,
“channel”: int,
“token”: “string”
}
}
NameTyp eDescription
probe
channel
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
StringSecurity token from successful login.
3.7.2 . Read Response Content
{
“adjustInfo”: {
“status”: “string”,
“probe”: int,
“channel”: int,
“gain”: oat,
“offset”: oat
}
}
NameTyp eDescription
status
probe
channel
gain
offset
3.7.3. Read Example
Command:
stringReturns success if data exists otherwise an error will return
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
oatGain of the sensor
oatOffset of the sensor
{
“ adjustInfo”: {
“probe”: 1,
“channel”: 1,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
16M-5807
Page 17
}
}
Response:
{
“adjustInfo”: {
“status”: “success”,
“probe”: 1,
“channel”: 0,
“gain”: 1.0,
“offset”: 0.0
}
}
3.7.4. Write Command Parameters
The parameters listed as optional do not need to be included in the JSON object.
{
“adjustInfo”: {
“probe”: int,
“channel”: int,
“gain”: oat, (optional)
“offset”: oat, (optional)
“token”: “string”
}
}
NameTyp eDescription
probeIntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
channelintChannel or sensor number, ranges from 0-3
gainoatGain of the sensor
offsetoatOffset of the sensor
tokenStringSecurity token from successful login
3.7.5. Write Response Parameters
{
“adjustInfo”: {
“status”: “string”,
“probe”: int,
“channel”: int
}
}
17JSON Commands
Page 18
NameTyp eDescription
status
probe
channel
3.7.6. Write Example
Command:
{
“adjustInfo”: {
“probe”: 1,
“channel”: 0,
“gain”: 2.0,
“offset”: 1.0,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
stringReturns success if data was successfully written, otherwise an error will
return
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
{
“adjustInfo”: {
“status”: “success”,
“probe”: 1,
“channel”: 0
}
}
3.8. Alarm Info Command
This command is used to read and write a sensor’s alarm settings.
3.8.1. Read Command Parameters
{
“ alarmInfo”: {
“probe”: int,
“channel”: int,
“token”: “string”
}
}
NameTyp eDescription
probe
channel
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
StringSecurity token from successful login.
18M-5807
Page 19
3.8.2. Read Response Content
{
“alarmInfo”: {
“status”: “string”,
“probe”: int,
“channel”: int,
“alarmStatus”: int,
“type”: int,
“latch”: int,
“lowThreshold”: oat,
“highThreshold”: oat,
“deadband”: oat
}
}
NameTypeDescription
status
probe
channel
alarmStatus
type
latch
lowThreshold
highThreshold
deadband
stringReturns success if data exists otherwise an error will return
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
int0 for no alarm, 1 for alarm low triggered, 2 for alarm high triggered, 3
intType of alarm, 0 for no alarm, 1 for alarm low, 2 for alarm high, 3 for
int0 do not latch alarm, 1 latch alarm
oatLow threshold to trigger on for alarm low and alarm low high
FloatHigh threshold to trigger on for alarm high and alarm low high
oatValue the sensor must rise or fall to clear the alarm.
for alarm high low triggered
alarm high low
3.8.3. Read Example
Command:
{
“ alarmInfo”: {
“probe”: 1,
“channel”: 1,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“alarmInfo”: {
19JSON Commands
Page 20
“status”: “success”,
“probe”: 1,
“channel”: 0,
“alarmStatus”: 0,
“type”: 0,
“latch”: 0,
“lowThreshold”: 0.0,
“highThreshold”: 0.0,
“deadband”: 5.0
}
}
3.8.4. Write Command Parameters
The parameters listed as optional do not need to be included in the JSON object.
{
“alarmInfo”: {
“probe”: int,
“channel”: int,
“type”: int, (optional)
“lowThreshold”: oat, (optional)
“highThreshold”: oat, (optional)
“latch”: int, (optional)
“deadband”: oat, (optional)
“token”: “string”
}
}
NameTypeDescription
probe
channel
type
latch
lowThreshold
highThreshold
deadband
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
intType of alarm, 0 for no alarm, 1 for alarm low, 2 for alarm high, 3 for
alarm high low
int0 do not latch alarm, 1 latch alarm
oatLow threshold to trigger on for alarm low and alarm low high
FloatHigh threshold to trigger on for alarm high and alarm low high
oatValue the sensor must rise or fall to clear the alarm.
StringSecurity token from successful login.
20M-5807
Page 21
3.8.5. Write Response Parameters
{
“alarmInfo”: {
“status”: “string”,
“probe”: int,
“channel”: int
}
}
NameTyp eDescription
status
probe
channel
stringReturns success if data was successfully written, otherwise an error will
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
3.8.6. Write Example
Command:
{
return
“alarmInfo”: {
“probe”: 1,
“channel”: 1,
“type”: 2,
“lowThreshold”: 0,
“highThreshold”: 60,
“latch”: 0,
“deadband”: 5,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“alarmInfo”: {
“status”: “success”,
“probe”: 1,
“channel”: 1
}
}
21JSON Commands
Page 22
3.9. Alarm Status Command
This command is used to read a sensor’s alarm status.
3.9.1 . Command Parameters
{
“alarmStatus”: {
“probe”: int,
“channel”: int,
“token”: “string”
}
}
NameTyp eDescription
probe
channel
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
StringSecurity token from successful login.
3.9.2. Response Content
{
“alarmStatus”: {
“probe”: int,
“channel”: int,
“value”: int
}
}
NameTyp eDescription
probe
channel
value
3.9.3. Example
Command:
{
“ alarmStatus”: {
“probe”: 1,
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
int0 for no alarm, 1 for alarm low triggered, 2 for alarm high triggered, 3 for
alarm high low triggered
“channel”: 1,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
22M-5807
Page 23
{
“alarmStatus”: {
“probe”: 1,
“channel”: 1,
“value”: 0
}
}
3.10. Log Config Command
This command is used to read and write the logging interval. This command is also used to enable or disable
logging.
3.10.1. Read Command Parameters
{
“logCong”: {
“token”: “string”
}
}
NameTyp eDescription
token
StringSecurity token from successful login
3.10.2. Read Response Content
{
“logCong”: {
“status”: “string”,
“interval”: int,
“enable”: int
}
}
NameTyp eDescription
status
Interval
enable
stringReturns success if data exists otherwise an error will return
IntLogging interval in seconds
int0 disable logging, 1 enable logging
3.10.3. Read Example
Command:
{
“ logCong”: {
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
23JSON Commands
Page 24
Response:
{
“logCong”: {
“status”: “success”,
“interval”: 5,
“enable”: 1
}
}
3.10.4. Write Command Parameters
The parameters listed as optional do not need to be included in the JSON object.
{
“logCong”: {
“interval”: int, (optional)
“enable”: int, (optional)
“token”: “string”
}
}
NameTyp eDescription
interval
enable
token
IntLogging interval in seconds
int0 disable logging, 1 enable logging
StringSecurity token from successful login.
3.10.5. Write Response Parameters
{
“logCong”: {
“status”: “success”
}
}
NameTyp eDescription
status
stringReturns success if data was successfully written, otherwise an error will
return
3.10.6. Write Example
Command:
{
“logCong”: {
“interval”: 10,
“enable”: 0,
24M-5807
Page 25
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“logCong”: {
“status”: “success”
}
}
3.11. Probe Config Command
This command is used to read and write the name of the probe.
3.11.1. Read Command Parameters
{
“probeCong”: {
“probe”: int,
“token”: “string”
}
}
NameTyp eDescription
probe
token
intProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
StringSecurity token from successful login.
3.11.2. Read Response Content
{
“probeCong”: {
“status”: “string”,
“probe”: int,
“samplingTime”: int,
“deviceName”: “string”
}
}
NameTypeDescription
status
probe
samplingTime
deviceName
stringReturns success if data exists otherwise an error will return
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intFixed at 1 sample per second
stringName of the probe
25JSON Commands
Page 26
3.11.3. Read Example
Command:
{
“probeCong”: {
“probe”: 1,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“probeCong”: {
“status”: “success”,
“probe”: 1,
“samplingTime”: 1,
“deviceName”: “Device_06332FD1”
}
}
3.11.4. Write Command Parameters
{
“probeCong”: {
“probe”: int,
“deviceName”: “string”,
“token”: “string”
}
}
NameTyp eDescription
probe
deviceName
token
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
stringProbe name, maximum 16 characters
StringSecurity token from successful login.
3.11.5. Write Response Parameters
{
“probeCong”: {
“status”: “string”,
“probe”: int
}
}
26M-5807
Page 27
NameTyp eDescription
status
probe
3.11.6. Write Example
Command:
{
“probeCong”: {
“probe”: 1,
“deviceName”: “Device_06”,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“probeCong”: {
stringReturns success if data was successfully written, otherwise an error will
return
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
“status”: “success”,
“probe”: 1
}
}
3.12. Alarm (Buzzer) Trigger Command
This command is used to read and write the triggers for the buzzer. The command is also used to enable
or disable the buzzer.
3.12.1. Read Command Parameters
{
“alarmTrigger”: {
“apiaction”: “string”,
“token”: “string”
}
}
NameTyp eDescription
apiaction
token
stringAction either “read” or “write”
StringSecurity token from successful login.
3.12.2. Read Response Content
{
“alarmTrigger”: {
“status”: “string”,
27JSON Commands
Page 28
“alarm”: {
“isAlarmEnabled”: int,
“a”: reserved,
“b”: int,
“c”: reserved,
“d”: int,
“e”: reser ved,
“f”: int,
“g”: int
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: int,
“channel”: int,
“buzzer”: int,
“channelname”: “string”,
“probename”: “string”
}
},
{
…
}
},
]
}
}
NameTyp eDescription
status
isAlarmEnabled
a
b
c
d
e
f
g
probeEventList
stringReturns success if data exists otherwise an error will return
intEnable buzzer, 0 for disable buzzer, 1 for enable buzzer
reservedreserved
intTrigger on any probe disconnecting. 0 for no trigger, 1 for trigger
reservedreserved
intTrigger on out of memory. 0 for no trigger, 1 for trigger
reservedreserved
IntTrigger on low battery. 0 for no trigger, 1 for trigger
intTrigger on TTL contact activation. 0 for no trigger , 1 for trigger
arrayContains the list of probes and sensors and relay trigger information
28M-5807
Page 29
probe
channel
buzzer
channelname
probename
3.12.3. Read Example
Command:
{
“alarmTrigger”: {
“apiaction”: “read”,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
intSensor alarm triggers buzzer to turn on, 0 for no effect, 1 for trigger
buzzer to turn on
StringName of the sensor or channel
stringName of the probe
“alarmTrigger”: {
“status”: “success”,
“alarm”: {
“isAlarmEnabled”: 0,
“a”: 0,
“b”: 0,
“c”: 0,
“d”: 0,
“e”: 0,
“f”: 0,
“g”: 0
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: 1,
“channel”: 0,
“buzzer”: 0,
“channelname”: “Temperature”,
“probename”: “Device_31312FD1”
29JSON Commands
Page 30
}
},
{
“probeInfo”: {
“probe”: 1,
“channel”: 1,
“buzzer”: 0,
“channelname”: “Humidity”,
“probename”: “Device_31312FD1”
}
},
{
“probeInfo”: {
“probe”: 1,
“channel”: 2,
“buzzer”: 0,
“channelname”: “Barometer”,
“probename”: “Device_31312FD1”
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 0,
“buzzer”: 0,
“channelname”: “Humidex”,
“probename”: “Device_10342FD1”
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 1,
“buzzer”: 0,
“channelname”: “Dewpoint”,
“probename”: “Device_10342FD1”
30M-5807
Page 31
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 2,
“buzzer”: 0,
“channelname”: “Temperature”,
“probename”: “Device_10342FD1”
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 3,
“buzzer”: 0,
“channelname”: “Humidity”,
“probename”: “Device_10342FD1”
}
}
]
}
}
3.12.4. Write Command Parameters
{
“alarmTrigger”: {
“apiaction”: “string”,
“alarm”: {
“isAlarmEnabled”: int,
“a”: reserved,
“b”: int,
“c”: reserved,
“d”: int,
“e”: reser ved,
“f”: int,
“g”: int
31JSON Commands
Page 32
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: int,
“channel”: int,
“buzzer”: int
}
},
{
…
}
],
“token”: “string”
}
}
NameTyp eDescription
apiaction
isAlarmEnabled
a
b
c
d
e
f
g
probeEventList
probe
channel
buzzer
token
stringAction either “read” or “write”
intEnable buzzer, 0 for disable buzzer, 1 for enable buzzer
reservedreserved
intTrigger on any probe disconnecting. 0 for no trigger, 1 for trigger
reservedreserved
intTrigger on out of memory. 0 for no trigger, 1 for trigger
reservedreserved
IntTrigger on low battery. 0 for no trigger, 1 for trigger
intTrigger on TTL contact activation. 0 for no trigger , 1 for trigger
arrayContains the list of probes and sensors and relay trigger information
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
intSensor alarm triggers buzzer to turn on, 0 for no effect, 1 for trigger
buzzer to turn on
StringSecurity token from successful login.
32M-5807
Page 33
3.12.5. Write Response Parameters
{
“dbupdate”: {
“status”: “success”
}
}
NameTyp eDescription
status
stringReturns success if data was successfully written, otherwise an error will
3.12.6. Write Example
Command:
{
“alarmTrigger”: {
“apiaction”: “write”,
“alarm”: {
“isAlarmEnabled”: 0,
return
“a”: 0,
“b”: 0,
“c”: 0,
“d”: 0,
“e”: 0,
“f”: 1,
“g”: 0
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: 1,
“channel”: 0,
“buzzer”: 1
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 0,
33JSON Commands
Page 34
“buzzer”: 1
}
}
],
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
} Response:
{
“dbupdate”: {
“status”: “success”
}
}
3.13. Relay Trigger Command
This command is used to read and write the triggers for the relays. The command is also used to check the
state of the relay.
3.13.1. Read Command Parameters
{
“relayTrigger”: {
“apiaction”: “string”,
“relayId”: int,
“token”: “string”
}
}
NameTyp eDescription
apiaction
relayId
token
stringAction either “read” or “write”
intRelay ID to read, 1 for relay1 and 2 for relay2
StringSecurity token from successful login.
3.13.2. Read Response Content
{
“relayTrigger”: {
“status”: “string”,
“relayInfo”: {
“relayId”: int,
“set ting”: {
“istate”: int,
“name”: “string”,
“isLog”: int,
34M-5807
Page 35
“isDisplay”: int,
“isLatch”: int,
“relayStatus”: int,
“a”: reserved,
“b”: int,
“c”: reserved,
“d”: int,
“e”: reser ved,
“f”: int,
“g”: int
}
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: int,
“channel”: int,
“relay”: int
}
},
{
…
}
},
]
}
}
NameTyp eDescription
status
relayId
istate
name
isLog
isDisplay
isLatch
relayStatus
a
b
stringReturns success if data exists otherwise an error will return
intRelay identier, 1 for relay1 and 2 for relay2
intInitial state of relay, 0 for normally closed, 1 for normally open
stringName of relay
intLog relay state changes. 0 for no log, 1 for log
intDisplay relay state on web GUI. 0 for no display, 1 for display
intEnable latching. 0 for disable latching, 1 for enable latching
intState of relay, 0 for closed, 1 for open
reservedreserved
intTrigger on any probe disconnecting. 0 for no trigger, 1 for trigger
35JSON Commands
Page 36
c
d
e
f
g
probeEventList
probe
channel
relay
3.13.3. Read Example
Command:
{
“relayTrigger”: {
“apiaction”: “read”,
“relayId”: 1,
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
reservedreserved
intTrigger on out of memory. 0 for no trigger, 1 for trigger
reservedreserved
IntTrigger on low battery. 0 for no trigger, 1 for trigger
intTrigger on TTL contact activation. 0 for no trigger , 1 for trigger
arrayContains the list of probes and sensors and relay trigger information
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
intSensor alarm triggers a relay action for the current relayId, 0 for no
effect, 1 for trigger relay action
}
}
Response:
{
“relayTrigger”: {
“status”: “success”,
“relayInfo”: {
“relayId”: 1,
“set ting”: {
“istate”: 1,
“name”: “Relay1”,
“isLog”: 0,
“isDisplay”: 1,
“isLatch”: 0,
“relayStatus”: 0,
“a”: 0,
“b”: 0,
“c”: 0,
“d”: 0,
“e”: 0,
“f”: 0,
36M-5807
Page 37
“g”: 0
}
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: 1,
“channel”: 0,
“relay”: 1
}
},
{
“probeInfo”: {
“probe”: 1,
“channel”: 1,
“relay”: 1
}
},
{
“probeInfo”: {
“probe”: 1,
“channel”: 2,
“relay”: 1
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 0,
“relay”: 0
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 1,
37JSON Commands
Page 38
“relay”: 0
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 2,
“relay”: 0
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 3,
“relay”: 0
}
}
]
}
}
3.13.4. Write Command Parameters
{
“relayTrigger”: {
“apiaction”: “string”,
“relayInfo”: {
“relayId”: int,
“set ting”: {
“istate”: int,
“name”: “string”,
“isLog”: int,
“isDisplay”: int,
“isLatch”: int,
“a”: reserved,
“b”: int,
“c”: reserved,
“d”: int,
38M-5807
Page 39
“e”: reser ved,
“f”: int,
“g”: int
}
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: int,
“channel”: int,
“relay”: int
}
},
{
…
}
}
],
“token”: “ string “
}
}
NameTyp eDescription
apiaction
relayId
istate
name
isLog
isDisplay
isLatch
a
b
c
d
e
f
g
probeEventList
probe
channel
stringAction either “read” or “write”
intRelay identier, 1 for relay1 and 2 for relay2
intInitial state of relay, 0 for normally closed, 1 for normally open
stringName of relay
intLog relay state changes. 0 for no log, 1 for log
intDisplay relay state on web GUI. 0 for no display, 1 for display
intEnable latching. 0 for disable latching, 1 for enable latching
reservedreserved
intTrigger on any probe disconnecting. 0 for no trigger, 1 for trigger
reservedreserved
intTrigger on out of memory. 0 for no trigger, 1 for trigger
reservedreserved
IntTrigger on low battery. 0 for no trigger, 1 for trigger
intTrigger on TTL contact activation. 0 for no trigger , 1 for trigger
arrayContains the list of probes and sensors and relay trigger information
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
39JSON Commands
Page 40
relay
token
intSensor alarm triggers a relay action for the current relayId, 0 for no
StringSecurity token from successful login.
3.13.5. Write Response Parameters
{
“dbupdate”: {
“status”: “success”
}
}
NameTyp eDescription
status
stringReturns success if data was successfully written, otherwise an error will
3.13.6. Write Example
Command:
{
“relayTrigger”: {
effect, 1 for trigger relay action
return
“apiaction”: “write”,
“relayInfo”: {
“relayId”: 1,
“set ting”: {
“istate”: 1,
“name”: “relay1”,
“isLog”: 0,
“isDisplay”: 1,
“isLatch”: 0,
“a”: 0,
“b”: 0,
“c”: 0,
“d”: 0,
“e”: 0,
“f”: 1,
“g”: 0
}
},
“probeEventList”: [
{
40M-5807
Page 41
“probeInfo”: {
“probe”: 1,
“channel”: 0,
“relay”: 1
}
},
{
“probeInfo”: {
“probe”: 2,
“channel”: 0,
“relay”: 1
}
}
],
“token”: “ cb2fc968-5234-483c-8ded-8be8422abe6f “
}
}
Response:
{
“dbupdate”: {
“status”: “success”
}
}
3.14. Notification (e-mail) Trigger Command
This command is used to read and write the triggers for the relays. The command is also used to check the
state of the relay.
3.14.1. Read Command Parameters
{
“ notiTrigger”: {
“apiaction”: “string”,
“token”: “string”
}
}
NameTyp eDescription
apiaction
token
stringAction either “read” or “write”
StringSecurity token from successful login.
41JSON Commands
Page 42
3.14.2. Read Response Content
{
“notiTrigger”: {
“status”: “string”,
“notiInfo”: {
“isEmailEnabled”: int,
“emailList”: “string”,
“heartbeatInterval”: int,
“nextAlarmInterval”: int
},
“trigger”: {
“a”: int,
“b”: int,
“c”: reserved,
“d”: int,
“e”: reser ved,
“f”: int,
“g”: int
},
“probeEventList”: [
{
“probeInfo”: {
“probe”: int,
“channel”: int,
“isSend”: int
}
},
{
…
}
}
]
}
}
42M-5807
Page 43
NameTyp eDescription
status
isEmailEnabled
emailList
heartbeatInterval
nextAlarmInterval
a
b
c
d
e
f
g
probeEventList
probe
channel
isSend
stringReturns success if data exists otherwise an error will return
intReturns 1
intList of e-mails to send the notication to. Semicolons are used to
separate multiple e-mail addresses
intSend a heartbeat notication at a periodic interval. The interval is in
minutes.
intResend an alarm notication at a periodic interval. The interval is in
minutes.
intTrigger on unit power up.
intTrigger on any probe disconnecting. 0 for no trigger, 1 for trigger
reservedreserved
intTrigger on out of memory. 0 for no trigger, 1 for trigger
reservedreserved
IntTrigger on low battery. 0 for no trigger, 1 for trigger
intTrigger on TTL contact activation. 0 for no trigger, 1 for trigger
arrayContains the list of probes and sensors and relay trigger information
IntProbe number. 0 for thermocouples, 1 for probe 1, 2 for probe 2
intChannel or sensor number, ranges from 0-3
intSensor alarm triggers an e-mail notication, 0 for do not send, 1 for
OMEGA ENGINEERING, INC. warrants this unit to be free of defects in materials and workmanship for a period
of 13 months from date of purchase. OMEGA’s WARRANTY adds an additional one (1) month grace period to
the normal one (1) year product warranty to cover handling and shipping time. This ensures that OMEGA’s
customers receive maximum coverage on each product.
If the unit malfunctions, it must be returned to the factory for evaluation. OMEGA’s Customer Service
Department will issue an Authorized Return (AR) number immediately upon phone or written request.
Upon examination by OMEGA, if the unit is found to be defective, it will be repaired or replaced at no charge.
OMEGA’s WARRANTY does not apply to defects resulting from any action of the purchaser, including but not
limited to mishandling, improper interfacing, operation outside of design limits, improper repair, or unauthorized
modification. This WARRANTY is VOID if the unit shows evidence of having been tampered
with or shows evidence of having been damaged as a result of excessive corrosion; or current, heat,
moisture or vibration; improper specification; misapplication; misuse or other operating conditions outside
of OMEGA’s control. Components in which wear is not warranted, include but are not limited to contact
points, fuses, and triacs.
OMEGA is pleased to offer suggestions on the use of its various products. However, OMEGA neither assumes
responsibility for any omissions or errors nor assumes liability for any damages that result from the use of its
products in accordance with information provided by OMEGA, either verbal or written. OMEGA warrants only
that the parts manufactured by the company will be as specified and free of defects. OMEGA MAKES NO OTHER
WARRANTIES OR REPRESENTATIONS OF ANY KIND WHATSOEVER, EXPRESSED OR IMPLIED, EXCEPT THAT OF
TITLE, AND ALL IMPLIED WARRANTIES INCLUDING ANY WARRANTY OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE HEREBY DISCLAIMED. LIMITATION OF LIABILITY: The remedies of purchaser set
forth herein are exclusive, and the total liability of OMEGA with respect to this order, whether based on contract,
warranty, negligence, indemnification, strict liability or otherwise, shall not exceed the purchase price of the
component upon which liability is based. In no event shall OMEGA be liable for consequential, incidental or
special damages.
CONDITIONS: Equipment sold by OMEGA is not intended to be used, nor shall it be used: (1) as a “Basic
Component” under 10 CFR 21 (NRC), used in or with any nuclear installation or activity; or (2) in medical
applications or used on humans. Should any Product(s) be used in or with any nuclear installation or activity,
medical application, used on humans, or misused in any way, OMEGA assumes no responsibility as set
forth in our basic WARRANTY/DISCLAIMER language, and, additionally, purchaser will indemnify OMEGA
and hold OMEGA harmless from any liability or damage whatsoever arising out of the use of the Product(s)
in such a manner.
RETURN REQUESTS/INQUIRIES
Direct all warranty and repair requests/inquiries to the OMEGA Customer Service Department. BEFORE
RETURNING ANY PRODUCT(S) TO OMEGA, PURCHASER MUST OBTAIN AN AUTHORIZED RETURN (AR)
NUMBER FROM OMEGA’S CUSTOMER SERVICE DEPARTMENT (IN ORDER TO AVOID PROCESSING
DELAYS). The assigned AR number should then be marked on the outside of the return package and on any
correspondence.
The purchaser is responsible for shipping charges, freight, insurance and proper packaging to prevent
breakage in transit.
FOR WARRANTY RETURNS, please have the
following information available BEFORE contacting
OMEGA:
1. Purchase Order number under which the product
was PURCHASED,
2. Model and serial number of the product under
warranty, and
3. Repair instructions and/or specific problems
FOR NON-WARRANTY REPAIRS,
for current repair charges. Have the following
information available BEFORE contacting OMEGA:
1. Purchase Order number to cover the COST
of the repair,
2. Model and serial number of the product, and
3. Repair instructions and/or specific problems
relative to the product.
relative to the product.
OMEGA’s policy is to make running changes, not model changes, whenever an improvement is possible. This affords our customers the latest
in technology and engineering.