Skip to content
English
  • There are no suggestions because the search field is empty.

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.

image-20240216-095932.png

image-20240212-094224.png

Click Add New

image-20240212-115242.png

This will bring up the Create API Configuration form.

image-20241121-084505.png

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.

  1. Manually, via the administration area.

    1. Recommended for sites with less that 250 datapoints

  2. Automatically using a custom developed automapping tool.

    1. 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.

image-20241121-100133.png

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.

image 20240214 110010

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.

image-20241121-100143.png

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.

image-20241121-101829.png

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

image-20241121-102040.png

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