In many smart city projects, multiple stakeholders and companies are involved who use their own sensors and IoT devices which are managed by different platforms and APIs. In order to work within a common operational framework, sensor web infrastructures play a key role in providing interoperability between heterogeneous sensor platforms and observations. However, it is unlikely that all stakeholders would be willing to inject their proprietary data into a third-party data storage in the sensor web.
We introduce a new lightweight web service called InterSensor Service, which allows users to connect to multiple IoT platforms, databases and basic files and retrieving their observations without worrying about data storage and the multitude of different APIs. It is a Java application based on the Spring framework and is available as free and Open Source.
The data adapters allows establishing connections to multiple platforms such as ThingSpeak, OpenSensors or Weather Underground. In addition, users can also connect to timeseries data stored in external databases (such as PostgreSQL, Oracle), basic files (such as CSV), Cloud based systems (e.g. Google Fusion Table), GPS Exchange Formats (GPX), and real-time Twitter feeds . While querying, the service opens a data source connection and retrieves the observations based on querying parameters directly from the data source.
The retrieved sensor observations can be encoded "on-the-fly" according to international standardized interfaces such as the OGC Sensor Observation Service, OGC SensorThings API, and 52° North Timeseries API. It allows querying and visualizing numerous sensor data streams from heterogeneous sensor platforms with existing sensor web infrastructures.
Please perform the following intstructions:
Clone the GitHub repository and install the application
git clone https://github.com/tum-gis/InterSensorService.git cd InterSensorService mvn clean install
By default, it will generate an application JAR file and a configuration file (application.yml). If you prefer to work with WAR files, it can also be generated. See details.
Configure the data source connection details inside the application.yml file. The templates for configuration files are provided here. Please move the modified application.yml file in the same folder where the JAR file is located (Execution of JAR file looks for the YAML file in the same folder).
cd target java -jar <filename.jar>
Upon successful data source connection, the application will start running. For example, if your server is 127.0.0.1 and the port is 8080, the homepage can be accessed using http://127.0.0.1:8080/inter-sensor-service/ The InterSensor Service determines the host address and port from configuration files and generates the URLs.
The InterSensor Service has been conceptualized and developed by Kanishk Chaturvedi and Thomas H. Kolbe from the Chair of Geoinformatics, Technical University of Munich.
The InterSensor Service is available as free and open source and is licensed under the Apache License, Version 2.0.