OmniCare Data Alert

OmniCare provide data alert function when device upload their date.


Setting Alert Condition

Create Alert Condition

[Request]

POST https://omnicare.asus.life/api/alert

Request header

Description

Request header

Description

Authorization

See Omnicare Authorization API

Content-Type

application/json

[Request Body]

[ { "deviceId": "string", "schemaType": "string", "valueCondition": [ { "valueName": "string", "valueNumber": 0, "valueOperator": "string" } ] } ]

Example 01 :

Setting alert condition to device ( “OmniCare-Test-0001“ ) when SPO2 value less than 90

[ { "deviceId": "OmniCare-Test-0001", "schemaType": "omnicare_SPO2", "valueCondition": [ { "valueName": "value", "valueNumber": 90, "valueOperator": "<" } ] } ]

 

Example 02:

Setting alert condition to multi-device ( “OmniCare-Test-0001“ & “OmniCare-Test-0002“ ) when heart rate value greater than 150 and less than 50

[Response Body]

success

error

 

Update Alert Condition

[Request]

Request header

Description

Request header

Description

Authorization

See Omnicare Authorization API

Content-Type

application/json

[Request Body]

[Response Body]

success

error

 

Get Alert Condition

[Request]

Request header

Description

Request header

Description

Authorization

See Omnicare Authorization API

Content-Type

application/json

[Response Body]

success

error

 

Example :

get device ( “OmniCare-Test-0001“ ) alert condition data in schemaType : omnicare_SPO2

 


Receive Alert Data

Subscribe MQTT Topic

  • FQDN: mqtt.asus.life

  • Port: 1883(TCP), 1884(WebSockets), 8883(SSL)

  • Topic Base: omnicare/{ hash string }/dataAlert

  • username: OmniCare login account

  • password: OmniCare login password

 

{hash string} value is from login account ,and use md5(16bit) to hash login account.(only accept lowercase)

Example:

login account is test@abc.123

md5(16bit) value will be “a530ab4bd5a32165”