Configure API Driver
API ingest provides a mechanism to receive data from clients and directly store it into EkkoSoft Critical via the internet.
In order to enable data transfer via this method, an API driver is required to be configured for each site in turn (in a similar way to how an EkkoLink must be assigned to a site in order to pass readings).
The driver selected determines the format of the data that is to be sent.
Please note: There can only be 1 API driver in place per site, however multiple requests can be sent for a site if required.
Setup API Configuration
In Admin Area, click API Configuration to setup a driver for your site.


Click Add New

This will bring up the Create API Configuration form.

The common fields are:
Field | Description |
|---|---|
Organization | Select the organization of the site |
Site | Select the desired site for the data upload. |
Status | Select Active to allow data transfer. Switch to Inactive to stop data transfer. |
Label | Human readable description for the API configuration (to help with searching) |
Driver | Select from the list of available drivers. Each API driver selects a different format of data so make sure to choose correctly. |
If the driver selected is a PUSH driver (i.e. the client is responsible for ‘pushing’ data to EkkoSoft), then no further fields will appear.
If the driver selected is a PULL driver (i.e. Ekkosense is responsible for ‘pulling’ the data from the client), then additional fields will become available that are specific to that driver (go to https://ekkosense.atlassian.net/wiki/x/KgAV0 )
Please note: If the required driver is not available in the
Click Create when complete.
Standard Supported ‘push’ drivers
Ekkosense offer 3 standard API ‘push’ drivers which can be used with no development requirement from the Ekkosense team. These are:
Driver Name | Method | Notes |
|---|---|---|
ReadingWithMetadata | “method”: “importReadingsWithMetadata” | Recommended format |
StandardJSONrpc | “method”: “importReadings” | Requires config to be pushed using public API first |
SimpleJSONrpc | “method”: “importSimpleReadings” | Requires config to be pushed using public API first |
Note: The StandardJSONrpc and SimpleJSONrpc are alternative methods which keep the size of the API request down and should only be used if the size of the API request exceeds 10Mb.
These requests require a separate configuration file to be created and posted to EkkoSoft Critical using the public API, rather than the API ingest endpoint.
Further details available on request.
An example of the recommended format is provided here:
https://ekkosense.atlassian.net/wiki/spaces/ESG/pages/edit-v2/3570860033#importReadingsWithMetadata
Datapoints
Once the API has been configured, then datapoints need to be created to the API before a user can map them to the appropriate items using the sensor editor in EkkoSoft Critical. API Devices
Note: There are 2 ways create datapoints.
Manually, via the administration area.
Recommended for sites with less that 250 datapoints
Automatically using a custom developed automapping tool.
Recommended for API calls with > 250 datapoints.
Please note: For datapoints to be created, an API call will need to have been made to EkkoSoft with the appropriate information. This creates a list of ‘shadow sensors’.
When you create datapoints for the API config, EkkoSoft will search through this list of shadow sensors and add them to the config if they are available. IDs that are not available will not be added.
Create Datapoints - manual
To create datapoints for an API configuration, click on create datapoints on the API configuration screen for the desired API configuration.

This is useful if you wish to add a small number of datatpoints to either a new or an existing API configuration.
To create datapoints manually you must enter a comma separated list of the sensor IDs and click populate datapoints.
Edit or delete the datapoints as needed, and click Save all.

Manage Datapoints
Manage datapoints allows you to edit or delete datapoints for an API configuration. This is useful if the units or default mapping for an API call need to be updated.
Click on Manage Datapoints for a selected API configuration to enter the manage datapoints screen.

This screen will show the list of currently active datapoints, showing what the sensor ID is, and the SI units and default mapping that have been assigned to that datapoint.

To edit a datapoint, select Edit. Here, you can update the label and the default mapping:

If you wish to delete a datapoint, simply click Delete.
Create Datapoints - automapping
To create datapoints using an automapping script, then the following will need to take place:
An agreement on how the API data should be mapped including:
How to identify the item
How to identify the datapoints required for each item
How to identify the default mappings for each item
Once agreed, this will need to be specified for the EkkoSense development team who will then create the API mapping script.
The development team will assign this mapping script to a standard EkkoSoft release and will only become available once the release is available.
Development work and testing for an API mapping script is around 2 days.
The development team will provide a command that will run the automapping script. The script is run on a room-by-room basis.
Quick Navigation
Return to Administration Area
Go to Contents