Information Model
Each Thing at the Edge is modeled using the Web-of-Things standard. In AnythingDB this is apparent when viewing the schema of a Thing. This standard allows you to interact with the Thing easily.
The Information Model used to describe devices (also referred to as "Things") is the one defined by Web-of-Things where the Edge Compute Platform follows the W3C Web of Things Architecture.
Web of Things
Background
The Thing description is used to store configuration details. The associated (REST) API can be used to retrieve property values, request actions, etc.
Example
Example of a Thing description for a Virtual Meter:
{
"@type": [
"swx:Meter",
"swx:Virtual"
],
"id": "<leave blank when creating a thing>",
"title": "Meter",
"description": "Virtual Meter",
"category": "<set to the cloud category to be used>",
"properties": {
"UD_DTYPE_KWH_ODM": {
"title": "kWh ODM",
"type": "number",
"readOnly": true
},
"UD_DTYPE_KW_AVG": {
"title": "kW",
"type": "number",
"readOnly": true,
"minimum": -5,
"maximum": 25
},
"dataUsagePollSecs": {
"title": "Data Usage Poll Secs",
"type": "integer",
"readOnly": false
}
},
"actions": {
"correctKwhOdm": {
"input": {
"title": "Correct the kWh ODM value",
"type": "object",
"properties": {
"newValue": {
"title": "The new value",
"type": "number"
}
}
}
}
},
"events": {
"negativeKw": {
"title": "Negative kW",
"description": "kW Usage is Negative",
"data": {
"type": "number"
}
}
}
}