Mika Laitio [Thu, 3 Mar 2011 17:42:05 +0000 (19:42 +0200)]
Api cleanups for device querying
Instead of having separate methods for asking the list of device-datas
stored to save directory and list of devices active, only one list of
devices is now returned which compines active devices and list of
inactive devices which have anyway data. Device has now lifecycle state
which indicates whether it's active.
Mika Laitio [Wed, 26 Jan 2011 18:50:18 +0000 (20:50 +0200)]
Optimization for year and monthly data calculation.
Added checks for finding last data per year or per month to avoid
unneccessary scanning of day-files which does not neccessarily exist.
Mika Laitio [Wed, 26 Jan 2011 00:46:56 +0000 (02:46 +0200)]
No need to cache data calculated per minute or per secondly as the cache
size would be almost identical to original data file size. Signed-off-by: Mika Laitio <lamikr@pilppa.org>
Mika Laitio [Sun, 23 Jan 2011 22:23:18 +0000 (00:23 +0200)]
Started adding support for caches when reading data. Cache files for
daily data calculations works already. (Cache done during first
calculation when the cache does not yet exist.)
Cache does not yet handle situations if the daily data is updated once
the cached value has been calculated.
Mika Laitio [Sun, 2 Jan 2011 21:15:05 +0000 (23:15 +0200)]
Refactoring and fixes.
- File where to save data item is checked for each file separately. (Old
versions had a bug that if there were data in save cache from multiple
days (before and after day change), all data were saved to previous
days file.
- Data datatype refactoring, values are stored now in double array,
instead of storing them internally to serialized string.
- Memory leak fixes
- Refactoring
- TODO: Caching objects in Factory class, caching serialized data string
until values are changed.
Mika Laitio [Mon, 27 Dec 2010 16:47:03 +0000 (18:47 +0200)]
Several data read and store fixes.
Fix for "month" number in month folder and file-names when storing data.
Fixes for reading data, when the file containing data can not be opened.
Memory leak fixes.
Hourly data read fixes.
Mika Laitio [Thu, 9 Dec 2010 21:55:27 +0000 (23:55 +0200)]
add min,max,mean,sum and delta calculations for stored data.
add functions for calculating from the datarange the min, max, mean, sum
and delta values... Configuration options still missing to make this
really usefull.
Mika Laitio [Sun, 28 Nov 2010 11:37:11 +0000 (13:37 +0200)]
Initial support for reading log-data.
It is now possible also to query the stored data for sensors.
The directory structure for storing and reading data was changed
from the previous version.