Sample Data Sources
Last updated
Last updated
We have prepared the following test API endpoints for users to try out SpatialWork data visualisation tools. These endpoints provide randomly generated values for different attributes of different objects and they are refreshed at fixed intervals. The objects can be dynamic or static. Dynamic objects have x, y, z and angle values that determine the position of the object in SpatialWork. Static objects have attributes that are changing as well, though at a less frequent interval as compared to dynamic objects. For example, an air conditioner is a static object in SpatialWork that has the attributes power_consumption and operation_time, both of which will be increasing at fixed intervals.
Each device has a topic associated with it. A topic is how the devices are organised based on their location and whether they are dynamic or static objects. For example, a static object located in Car Manufacturing Plant is under the topic: data/User2/CarManufactoryPlant/
and a dynamic object located in Car Manufacturing Plant is under the topic: data/User2/CarManufactoryPlant/dynamic.
Dynamic object topics should always end with “/dynamic”. Currently, there are 3 main topics corresponding to different locations:
data/User1/warehouse (location: Warehouse)
data/User2/CarManufactoryPlant (location: Car Manufacturing Plant)
data/User3/0407Hiverlab (location: 0407 Hiverlab Office)
The output format can be in JSON or CSV, depending on the format you require.
Connection type: REST
HTTP request method: GET
URL (dynamic object):
Response type: JSON
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: ES001
Location: Car Manufacturing Plant
Response:
Connection type: REST
HTTP request method: GET
URL (static object):
URL (dynamic object):
Response type: CSV
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: ES001
Location: Car Manufacturing Plant
Response:
Connection type: REST
HTTP request method: GET
URL (static object):
URL (dynamic object):
Response type: JSON
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: -
Location: Car Manufacturing Plant
Response:
Connection type: REST
HTTP request method: GET
URL (static object):
URL (dynamic object):
Response type: CSV
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: -
Location: Car Manufacturing Plant
Response:
Connection type: REST
HTTP request method: GET
URL (static object):
URL (dynamic object):
Response type: JSON
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: ES001
Location: Car Manufacturing Plant
Response:
Connection type: REST
HTTP request method: GET
URL (static object):
URL (dynamic object):
Response type: CSV
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: ES001
Location: Car Manufacturing Plant
Response:
Connection type: REST
HTTP request method: GET
URL (static object):
URL (dynamic object):
Response type: JSON
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: -
Location: Car Manufacturing Plant
Response:
Connection type: REST
HTTP request method: GET
URL (static object):
URL (dynamic object):
Response type: CSV
Example:
URL:
Object type: Static
Topic: data/User2/CarManufactoryPlant/es
Device name: -
Location: Car Manufacturing Plant
Response: