]> pilppa.org Git - lib1wire.git/log
lib1wire.git
10 years agoinclude unistd required by sleep call master
Mika Laitio [Sun, 11 Aug 2013 21:33:15 +0000 (00:33 +0300)]
include unistd required by sleep call

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
10 years agofix deprecated AM_CONFIG_HEADER
Mika Laitio [Sun, 11 Aug 2013 21:31:22 +0000 (00:31 +0300)]
fix deprecated AM_CONFIG_HEADER

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agoload deviceconfig only once
Mika Laitio [Wed, 15 Aug 2012 09:28:12 +0000 (12:28 +0300)]
load deviceconfig only once

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agoapi changes
Mika Laitio [Tue, 14 Aug 2012 22:50:55 +0000 (01:50 +0300)]
api changes

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agoeclipse configuration updates
Mika Laitio [Tue, 14 Aug 2012 22:50:42 +0000 (01:50 +0300)]
eclipse configuration updates

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agoeclipse project file updates
Mika Laitio [Sun, 12 Aug 2012 22:57:43 +0000 (01:57 +0300)]
eclipse project file updates

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agoconfiguration data related changes
Mika Laitio [Fri, 3 Aug 2012 15:44:58 +0000 (18:44 +0300)]
configuration data related changes

Required due to api changes in libplp.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agocleanups
Mika Laitio [Mon, 23 Jul 2012 15:20:53 +0000 (18:20 +0300)]
cleanups

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agoadd support for lib64 directory
Mika Laitio [Sat, 14 Jul 2012 15:30:05 +0000 (18:30 +0300)]
add support for lib64 directory

Install files by default to /usr/local/lib64
instead of /usr/local/lib if the system is 64 bit
and has /lib64 dir.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agofix path to include headers in .pc file
Mika Laitio [Sat, 14 Jul 2012 15:29:36 +0000 (18:29 +0300)]
fix path to include headers in .pc file

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
11 years agofix build warnings
Mika Laitio [Sat, 14 Jul 2012 15:29:16 +0000 (18:29 +0300)]
fix build warnings

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
12 years agocleanups
Mika Laitio [Thu, 16 Jun 2011 22:46:09 +0000 (01:46 +0300)]
cleanups

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
12 years agobetter error handling in case where the device specific config file is missing
Mika Laitio [Thu, 16 Jun 2011 18:58:21 +0000 (21:58 +0300)]
better error handling in case where the device specific config file is missing

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agofixed api change breaks
Mika Laitio [Sat, 16 Apr 2011 14:49:01 +0000 (17:49 +0300)]
fixed api change breaks

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agoMemory leak fixes.
Mika Laitio [Fri, 11 Mar 2011 15:57:56 +0000 (17:57 +0200)]
Memory leak fixes.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
13 years agosensor data read fixes.
Mika Laitio [Thu, 10 Mar 2011 17:58:58 +0000 (19:58 +0200)]
sensor data read fixes.

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
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>
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