DEV Community

Cover image for IoT Platform Update: New Features and Enhancements
Pavol
Pavol

Posted on

IoT Platform Update: New Features and Enhancements

If you read my blog, you have certainly come across some blogs about IoT platform. It is application ready to use for making easier your IoT managment, processing data and analyzing them. Despite it, we found some features and enhancements, that can make it even more powerful, and can be useful in various case you may encounter. So we got to work and now I want to present you this updates to IoT platform.

What is an IoT platform?

The IoT Platform is an application built with Total.js to work with data from IoT devices. It includes apps like Stream for receiving data, OpenReports for creating reports, Flow for visual automation, and OpenPlatform for managing everything in one place. These apps can work together to collect, process, and show data in real time. The platform helps you create your own system for monitoring and reacting to data from sensors or other devices.

This was just for quick overview, for more information, please go through this blog post about IoT platform.

Reports

Big update was done in Reports section. Now you can create your report right in the IoT platform application without the need to use OpenReports. 

IoT platform Reports section

When you click on the Create report button in the Reports section, you will see a form like this. As you can see, there is a place for an SQL query. This is a query right to the database, and you can read any data as you wish. Of course, you need to know SQL to get the result that you want (or use AI to help). 

In the Map fields input, you can rename columns. As you can see, I used it to translate the columns names to Slovak language. So now, when I open the report, header in the grid will be Názov instead of name and Hodnota instead of value

Report displayed in the application

Also, there is a new feature, that you can make an API from the report right in the form. You just need to check the checkbox Publish a value to an API endpoint, that you can see in the image and then you can access this data via url address. This url address you can find in the menu for particular report.

Access the API endpoint

Just like this, you can create an API endpoint for every report you need. 

If you would prefer to use reports with OpenReports application, it is still possible. You can find this archived version in the same GitHub repository with functionality as it was before update.

Devices

Devices went also through transformation. Listing of all devices is the same, but detail is switched to the box with more compact design which may be more appealing for orientation in the sensor values.

New design of device detail

With the new design there stayed all functionality (e.g. changing of stats, hidding of unused sensors …) and we also added new features.

For every device now you can add note and custom attributes. Also, you can publish every device you choose as API endpoint. So now you do not need to create custom report for device you want to have access to via API, you just need to check it in the form.

Publishing device as an API endpoint

From this endpoint, you will get information about a particular device as id, driverid, serial number, locality, custom attributes, configuration, and data for every sensor. Each sensor has data as current value, date when value was received, name, id and more.

Also, if you need just data from particular sensor, you can easily get it in here by choosing an option for API endpoint in options menu for that sensor.

API endpoint for sensor

As you can see, you can get their data like id, name, value, format, locality, serial number, date when value was received, custom attributes and more.

Zones

This section may seem the same as it was before, but we also added note field and custom attributes for every zone. Checkbox for publishing zone to an API endpoint is here too and you can easily get information about your zone via API.

Publishing zone as an API endpoint

As you can see, it is very easy to do and you can get information about your zone like id, name, locality, custom attributes, area (object with points with latitude and longtidue as boundary points of the zone) and sensors. This sensors includes informations like deviceid, sensorid, value, type, date when value was received, name and more.

Drivers

In drivers, we changed design for listing of drivers. Functionality is still the same, you can search in drivers, there are still sections but it is still little more appearing for look.

New drivers design

Files

You can see, that we added new section with a name Files. There you can see every uploaded file to your IoT Platform (like created images for zones or uploaded files for simulations). You can see here name of the file, type, size, date of upload and you can also download selected file. 

New Files section

Conclusion

That is all for this blog. I hope you learned something new in this blog and that you will find these features useful in your case. If you want to stay informed about future updates of the IoT Platform you can subscribe to my blogs and I will happily share with you my knowledge not only about IoT Platform but about all Total.js.

Video:

Top comments (0)