]> pilppa.org Git - lib1wire.git/log
lib1wire.git
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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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...

13 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>
13 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>
13 years ago.pc file update
Mika Laitio [Mon, 1 Nov 2010 17:35:01 +0000 (19:35 +0200)]
.pc file update

13 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

13 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

13 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

13 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

13 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

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

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

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

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

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

13 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

13 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)

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