]> pilppa.com Git - lib1wire.git/log
lib1wire.git
13 years agoMoved files that were not w1 specific to libplp.
Mika Laitio [Sat, 5 Mar 2011 20:57:28 +0000 (22:57 +0200)]
Moved files that were not w1 specific to libplp.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoApi cleanups for device querying
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.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoStarted defining generic device type base classes that could be used
Mika Laitio [Mon, 28 Feb 2011 19:52:26 +0000 (21:52 +0200)]
Started defining generic device type base classes that could be used
also outside of lib1wire library eventually.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agocleaned up test_w1_datalog_write example applications parameter handling.
Mika Laitio [Wed, 26 Jan 2011 20:13:13 +0000 (22:13 +0200)]
cleaned up test_w1_datalog_write example applications parameter handling.

test_w1_datalog_write canscan 1-wire devices, reads 1-wire device data
values and save them.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoOptimization for year and monthly data calculation.
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.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoNo need to cache data calculated per minute or per secondly as the cache
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>
13 years agoImplemented yearly calculations for min, max, mean, delta and sum
Mika Laitio [Wed, 26 Jan 2011 00:33:37 +0000 (02:33 +0200)]
Implemented yearly calculations for min, max, mean, delta and sum
functions with cache support.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoAdded support for cacheing monthly data.
Mika Laitio [Tue, 25 Jan 2011 21:26:38 +0000 (23:26 +0200)]
Added support for cacheing monthly data.
Fixed various small errors in initial calculations.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agocleanups for log messages.
Mika Laitio [Mon, 24 Jan 2011 19:40:41 +0000 (21:40 +0200)]
cleanups for log messages.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoStarted adding support for caches when reading data. Cache files for
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.

Memory leak fixes and api changes.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoW1Store --> Store...
Mika Laitio [Thu, 6 Jan 2011 10:35:07 +0000 (12:35 +0200)]
W1Store --> Store...

Prepare non-w1 functionality be separated from the w1 specific one.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoUse pointers in date comparison functions.
Mika Laitio [Thu, 6 Jan 2011 10:12:56 +0000 (12:12 +0200)]
Use pointers in date comparison functions.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agosupport for sum, min and max queryes from the collected data.
Mika Laitio [Thu, 6 Jan 2011 09:53:29 +0000 (11:53 +0200)]
support for sum, min and max queryes from the collected data.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoSupport for setting and reading device name from config file.
Mika Laitio [Sun, 2 Jan 2011 22:40:20 +0000 (00:40 +0200)]
Support for setting and reading device name from config file.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoBug fix for counter device data saving.
Mika Laitio [Sun, 2 Jan 2011 22:20:41 +0000 (00:20 +0200)]
Bug fix for counter device data saving.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoRefactoring and fixes.
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.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agocleanups, renamed get_*_values functions to get_*_data
Mika Laitio [Mon, 27 Dec 2010 17:21:07 +0000 (19:21 +0200)]
cleanups, renamed get_*_values functions to get_*_data

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoSeveral data read and store fixes.
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.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoSupport for querying the list devices having data stored.
Mika Laitio [Sun, 26 Dec 2010 13:41:23 +0000 (15:41 +0200)]
Support for querying the list devices having data stored.

Also refactored the code, removed W1Scanner and moved that functionality
to Factory.hh

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoSupport for seting and changing values from device specific config
Mika Laitio [Wed, 22 Dec 2010 00:15:37 +0000 (02:15 +0200)]
Support for seting and changing values from device specific config
files.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoInitial support for reading and writing device specific config data.
Mika Laitio [Wed, 22 Dec 2010 00:03:14 +0000 (02:03 +0200)]
Initial support for reading and writing device specific config data.
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoYear fix when for Date function.
Mika Laitio [Fri, 10 Dec 2010 16:16:30 +0000 (18:16 +0200)]
Year fix when for Date function.

time-function return years since 1900, so add 1900 to years in Date
function constructor.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoadd min,max,mean,sum and delta calculations for stored data.
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.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoinitial device configuration support.
Mika Laitio [Thu, 9 Dec 2010 17:31:32 +0000 (19:31 +0200)]
initial device configuration support.

started adding support device configuration data.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoW1Store api cleanup for dir and file functions.
Mika Laitio [Thu, 9 Dec 2010 17:00:57 +0000 (19:00 +0200)]
W1Store api cleanup for dir and file functions.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoOptimisations and cleanups
Mika Laitio [Thu, 9 Dec 2010 16:45:27 +0000 (18:45 +0200)]
Optimisations and cleanups

- nicer printout for dates
- store data read cleanups
   - new method: get_oldest_and_newest_data
   - rewrote other methods to use cached data if possible

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agocode cleanup instruction update
Mika Laitio [Thu, 9 Dec 2010 15:17:14 +0000 (17:17 +0200)]
code cleanup instruction update

changed instructions to use "make maintainer-clean" instead of
"make distclean".

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agostarted adding support for reading average and sum data...
Mika Laitio [Thu, 9 Dec 2010 00:22:49 +0000 (02:22 +0200)]
started adding support for reading average and sum data...

14 years agorenamed the test_w1 to test_w1_datalog_write
Mika Laitio [Sun, 28 Nov 2010 11:42:37 +0000 (13:42 +0200)]
renamed the test_w1 to test_w1_datalog_write

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years agoInitial support for reading log-data.
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.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
14 years ago.pc file update
Mika Laitio [Mon, 1 Nov 2010 17:35:01 +0000 (19:35 +0200)]
.pc file update

14 years agostore each days file separately to year/month/id_year-month-day.txt subdir. Fix also...
Mika Laitio [Sun, 31 Oct 2010 23:20:43 +0000 (01:20 +0200)]
store each days file separately to year/month/id_year-month-day.txt subdir. Fix also duplicate data error

14 years agoadd support for specifying scan interval and store interval in test app
Mika Laitio [Sun, 31 Oct 2010 11:15:10 +0000 (13:15 +0200)]
add support for specifying scan interval and store interval in test app

14 years agoincreased the storage intervals from test application
Mika Laitio [Sat, 30 Oct 2010 23:24:34 +0000 (02:24 +0300)]
increased the storage intervals from test application

14 years agostorage data cleanup. allow specifying storage dir location
Mika Laitio [Sat, 30 Oct 2010 23:15:50 +0000 (02:15 +0300)]
storage data cleanup. allow specifying storage dir location

14 years agofix the parsing of counter value
Mika Laitio [Sat, 30 Oct 2010 18:06:41 +0000 (21:06 +0300)]
fix the parsing of counter value

14 years agoadded W1CounterDevice
Mika Laitio [Sat, 30 Oct 2010 14:19:42 +0000 (17:19 +0300)]
added W1CounterDevice

14 years agoversion 0.1.0
Mika Laitio [Thu, 28 Oct 2010 21:33:23 +0000 (00:33 +0300)]
version 0.1.0

14 years agodependency fix
Mika Laitio [Thu, 28 Oct 2010 21:32:08 +0000 (00:32 +0300)]
dependency fix

14 years agoformatting fixes
Mika Laitio [Thu, 28 Oct 2010 21:26:46 +0000 (00:26 +0300)]
formatting fixes

14 years agoformating fixes for celcius values
Mika Laitio [Sat, 23 Oct 2010 09:28:20 +0000 (12:28 +0300)]
formating fixes for celcius values

14 years agoadd support for storing data to text file periodically
Mika Laitio [Sat, 23 Oct 2010 08:51:26 +0000 (11:51 +0300)]
add support for storing data to text file periodically

14 years agoremoved omniorb dependency (until is's really needed)
Mika Laitio [Sat, 23 Oct 2010 06:56:56 +0000 (09:56 +0300)]
removed omniorb dependency (until is's really needed)

14 years agoinitial version
Mika Laitio [Fri, 22 Oct 2010 23:22:14 +0000 (02:22 +0300)]
initial version