The figure below show the ER scheme of iEnergy database.
Here are the details of involved tables:
da_drain_descriptor
This table contains the description/definition of drains described in the system. The table have this information:
da_drain_formula
This table contains the decription of formulas in case of virtual drains. Supported operation is just sum./p>
da_measure_XX
This table contains measures related to sensors, defined during the installation phase. It contains time and value of the measure. Tables are two: da_measure_history and da_measure_detail, that contain respectively historical measures (hourly) and detailed measures, depending on spchain configuration.
da_measure_rt
This table contains instant measures of meters. Updating time depends onthe technology uses (e.g. es modbus polling every 10 seconds).
da_confort_indicator
This table contains the definition of confort indicators.
Here are listed the required components for a system based on iEnergy
For the correct working of iEnergy, it is necessary the domotic gateway Dog, that allowes the comunication with different technologies installed on fiels (http://dog-gateway.github.io/)
It is necessary to add the bundle it.proximacentauri.ienergy.osgi, that is responsable for storage og instant/detailes measure in the database making them available for the user.
This module is in charge of historical storage of data from Dod to Postgres database. Moreover,it supplie some API API REST/JSON available for different type of clients (as web or mobile).
The measures management module allows to handle with detailed (every 10 minutes), historical (hourly cadency) and real-time measures. Management module allows to use some aggregation function (as sum, average, etc..) in different levels of temporal aggregation (minutes, hours, days ...). Here it is also available a configuration interface that allows to define the modality of measures (e.g.: type of storage).
The module is in charge of confort indicators management.
Module for the trasformation of data from detailed to historical according to the sensors description in the database, chosen during the configuration phase.
This module allows to access as administrator to drains and confort indicators management.
The requirements for iEnergy installation are:
For the field part it is necessary to follow the guide for Dog installation, available on the project website http://dog-gateway.github.io/, to which add the bundle it.proximacentauri.ienergy.osgi.
Necessary modules in Dog are:
The configuration requiresthe configuration file it.proximacentauri.ienergy.osgi.config, that includes:
Where there are
The second step of configuration regards xively COSMOutlet.config/it.polito.elite.dog.addons.xively.client.cfg
The last step is to create the database according to the schema in showed the first section.
The installation of analysis module is a .war that can be installed in tomcat 7+. The configuration is very easy and affects the file jeerpda.properties
All it is needed ar access credetial for the Postgres database.
If you have to configure administration functions that are protected by spring security, it is necessary to configure the file spring-security.xml
It is sufficient the deploy for this application
For ETL, it is necessary to proceed with the configuration of database parameters