Resume of integration and bugs / improvements required found
BUGS
Not working if the selected device does not have any real data. Fixed by Enbake
Unreal values are nil sometimes. Fixed by Sinapse
Deletion of minimum and maximum values of an array provokes empty arrays when all the values are the same. Fixed by Sinapse
@Arr containing values to calculate mean is not reset, so there are valid values even in intervals without valid data. Fixed by Sinapse
Real data and unreal data returned objects are different: [:current] vs ["current"]. Fixed by Sinapse
IMPROVEMENTS
Not working well the start_date and end_date are different days, neither in a interval of a day. Done by Sinapse
Performance: It is very slow. A lot of access to the database in order to write samples. TO BE IMPROVED. Partial improvement developed by Sinapse in order to limit the number of devices to be used to calculate unreal data
All the code is in a controller, not easy to reuse. To be included in a mode. Done by Sinapse
Use of global variables is not very good. TO BE IMPROVED
Resume of integration and bugs / improvements required found
BUGS
IMPROVEMENTS