]>
pilppa.com Git - lib1wire.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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>
Mika Laitio [Tue, 14 Aug 2012 22:50:55 +0000 (01:50 +0300)]
api changes
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
Mika Laitio [Tue, 14 Aug 2012 22:50:42 +0000 (01:50 +0300)]
eclipse configuration updates
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
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>
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>
Mika Laitio [Mon, 23 Jul 2012 15:20:53 +0000 (18:20 +0300)]
cleanups
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
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>
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>
Mika Laitio [Sat, 14 Jul 2012 15:29:16 +0000 (18:29 +0300)]
fix build warnings
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
Mika Laitio [Thu, 16 Jun 2011 22:46:09 +0000 (01:46 +0300)]
cleanups
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
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>
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>
Mika Laitio [Fri, 11 Mar 2011 15:57:56 +0000 (17:57 +0200)]
Memory leak fixes.
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
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>
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>
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>
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>
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>
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>
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 [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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Mika Laitio [Thu, 9 Dec 2010 00:22:49 +0000 (02:22 +0200)]
started adding support for reading average and sum data...
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>
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>
Mika Laitio [Mon, 1 Nov 2010 17:35:01 +0000 (19:35 +0200)]
.pc file update
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
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
Mika Laitio [Sat, 30 Oct 2010 23:24:34 +0000 (02:24 +0300)]
increased the storage intervals from test application
Mika Laitio [Sat, 30 Oct 2010 23:15:50 +0000 (02:15 +0300)]
storage data cleanup. allow specifying storage dir location
Mika Laitio [Sat, 30 Oct 2010 18:06:41 +0000 (21:06 +0300)]
fix the parsing of counter value
Mika Laitio [Sat, 30 Oct 2010 14:19:42 +0000 (17:19 +0300)]
added W1CounterDevice
Mika Laitio [Thu, 28 Oct 2010 21:33:23 +0000 (00:33 +0300)]
version 0.1.0
Mika Laitio [Thu, 28 Oct 2010 21:32:08 +0000 (00:32 +0300)]
dependency fix
Mika Laitio [Thu, 28 Oct 2010 21:26:46 +0000 (00:26 +0300)]
formatting fixes
Mika Laitio [Sat, 23 Oct 2010 09:28:20 +0000 (12:28 +0300)]
formating fixes for celcius values
Mika Laitio [Sat, 23 Oct 2010 08:51:26 +0000 (11:51 +0300)]
add support for storing data to text file periodically
Mika Laitio [Sat, 23 Oct 2010 06:56:56 +0000 (09:56 +0300)]
removed omniorb dependency (until is's really needed)
Mika Laitio [Fri, 22 Oct 2010 23:22:14 +0000 (02:22 +0300)]
initial version