From 459c01966c72796c9792da88487b93ffcf08f57d Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Wed, 3 Jul 2013 19:09:06 +0000 Subject: [PATCH] userReadings offset/monotonic modifier by justme1968 git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3380 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/docs/commandref_frame.html | 8 ++++++++ fhem/docs/commandref_frame_DE.html | 11 +++++++++-- fhem/fhem.pl | 10 +++++++++- 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 53f0edaa9..47c2d3ba8 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII - SVN + - feature: offset and monotonic added to userReadings modifier (justme1968) - feature: HUEDevice: support SVG icons for LWB001 living whites bulb - feature: HUEDevice: support more than one bridge - feature: updateInBackground global attribute diff --git a/fhem/docs/commandref_frame.html b/fhem/docs/commandref_frame.html index 0637d8c1a..55f0cf32f 100644 --- a/fhem/docs/commandref_frame.html +++ b/fhem/docs/commandref_frame.html @@ -440,6 +440,14 @@ A line ending with \ will be concatenated with the next one, so long lines seconds between the current and the previous evaluation. Granularity of time is one second. No value is calculated if the time past is below one second. Useful to calculate rates. +
  • offset: if the current evaluated value is smaler than the previously + evaluated value the reading is incremented by the previous value. + the reading can then be used as an offset correct for a counter that + is reset for example due to a power loss.
  • +
  • monotonic: if the difference between the current and the previously + evaluated value is positive the reading is incremented by this difference. + this allows to derive a monotonic growing counter from an original counter + even if the original will be rest by a power loss
  • Example:
    Beispiel: