Digi-Key IoT Studio enables you to create and import your own elements to add support for third-party sensors not currently available in the platform.
Creating sensor elements is done using Digi-Key's Embedded Element Library (EEL) Utility tool. The EEL Utility tool is a command line interface used for generating elements to be imported into DK IoT. All of the information surrounding use of the tool is detailed on the DK IoT GitHub.
Completed EEL files ready to be added into DK IoT Studio for use can be imported through the Import button in the Add Element window. Once a file is imported, it’s included in the list of available sensor elements that can be enabled in an DK IoT Studio project. Note that custom EEL files imported into DK IoT Studio are only available for the project they are added to.
This intent of this guide is to describe the step by step process of creating an EEL by using source files from GitHub.
Step 1: Prerequisites
- Node.js 8.x.x (An older version _may_ work)
- npm 5.x.x (An older version _may_ work)
Step 2: Clone This Repository
Using your tool of choice, clone this repository to your local machine:
Navigate to the newly created eel-builder directory and run the following command to install dependencies that the eel-builder needs.
Step 3: Clone Source Files
While in the newly created eel-builder directory, clone the source files for the EEL you wish to create. (We are using the Sensirion SHTC1 EEL in this example.)
Step 4: Generate Final EEL
Now to generate the final EEL, in the same directory,
This will put the final EEL in the eel-builder directory. From here you can import this EEL into your project.