Sensor types
Introduction
Similar to Assets, Sensors contains two tabs - Sensors and Sensor Types. Sensor and Sensor Types tab contains of list of Sensors and Sensor Types respectively.
In order to create a Sensor, we first need to create a Sensor Type for that.
Every sensor is created from a sensor type. For example, there could be many temperature-sensors
labeled tmpr-1, tmpr-2, ...
in a project, but all of those might be coming from the sensor type called tmpr
. This is done to allow comparison among similar sensors belonging to the same sensor type.
Creating a Sensor Type
To create a Sensor Type, we first need to go to Sensor Types tab.
On the top right of Sensor types list, there is an Add Sensor type button.
Clicking on this button will open up a modal. The modal contains three sections - Details, Metadata (Fixed Data) and Parameters (Streaming Data).
In the first section named Details, we have to enter the Sensor Type name and it’s description (optional).
Then clicking on next will take us to the next section named Metadata (Fixed Data) where we add Metadata Name, Data Type and Unit. We can create multiple Metadata using the Add New button.
In the last section named Parameters (Streaming Data), we add Parameter Name, Data Type and Unit. We can create multiple Parameters using the Add New button.
After entering the details, clicking on save button will create a Sensor Type for us.
If we already have an Sensor Type with required metadata, then we can simply duplicate the sensor type by clicking on the duplicate icon in the actions column. We just have to enter the new Sensor Type name and it’ll create the sensor type with the same properties of the sensor type from which it was duplicated.
Editing a Sensor type
Clicking on edit sensor type button will open up a modal. The modal contains two sections - Details, Parameters(Streaming data) and Metadata(Fixed data).
In the first section named Details, we can edit sensor type name and it’s description (optional).
If we want to add, edit or delete the Metadata (Fixed Data), Metdata list of selected Sensor type is displayed.
And if we want to add, edit or delete the parameters (Streaming Data), Metdata list of selected Sensor type is displayed.
After entering the details, clicking on save button will edit a Sensor type for us.
Deleting a Sensor type
Clicking on delete sensor typebutton will open up a Confirm modal.
If we click on yes then the specific sensor type will be deleted.
Viewing a Sensor type
Clicking on view sensor type button will open up a view modal.
View modal contains the sensor type information such as Sensor type name, description, parameter, metadata.
Duplicating a Sensor type
Clicking on duplicate sensor type button will open up a modal.
We just have to enter the new Sensor type name and it’ll create a sensor type with the same properties of the sensor type from which it was duplicated.