mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Timestamps of readings now also corresponds the timestamps from sensor also if they was downloaded later from the hardware.
git-svn-id: https://svn.fhem.de/fhem/trunk@3518 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8f137fc193
commit
a1203acf9d
@ -291,7 +291,10 @@ WS300_Parse($$)
|
||||
# state
|
||||
$val = "T: $t H: $h Bat: $b LR: $l";
|
||||
$def->{STATE} = $val;
|
||||
$hash->{".updateTimestamp"};
|
||||
readingsBulkUpdate($def, 'state', $val);
|
||||
|
||||
$def->{CHANGETIME}[0] = $tm;
|
||||
# temperature
|
||||
readingsBulkUpdate($def, $txt[0], $t);
|
||||
# humidity
|
||||
@ -310,10 +313,10 @@ WS300_Parse($$)
|
||||
readingsBeginUpdate($def);
|
||||
# state
|
||||
$val = "T: $t H: $h W: $wind R: $rain IR: $ir Bat: $b LR: $l";
|
||||
$def->{STATE} = $val;
|
||||
$def->{STATE} = $val;
|
||||
$hash->{".updateTimestamp"};
|
||||
readingsBulkUpdate($def, 'state', $val);
|
||||
|
||||
$def->{CHANGED}[0] = $val;
|
||||
$def->{CHANGETIME}[0] = $tm;
|
||||
# temperature
|
||||
readingsBulkUpdate($def, $txt[0], $t);
|
||||
@ -414,6 +417,9 @@ WS300_Parse($$)
|
||||
# state
|
||||
$val = "T: $t H: $h P: $press Willi: $willi";
|
||||
$def->{STATE} = $val;
|
||||
|
||||
$hash->{".updateTimestamp"};
|
||||
$def->{CHANGETIME}[0] = $tm;
|
||||
readingsBulkUpdate($def, 'state', $val);
|
||||
# temperature
|
||||
readingsBulkUpdate($def, $txt[0], $t);
|
||||
@ -673,3 +679,4 @@ NEXTPOLL:
|
||||
|
||||
=end html
|
||||
=cut
|
||||
|
||||
|
@ -98,7 +98,7 @@ FHEM/46_TRX_LIGHT.pm wherzig http://forum.fhem.de RFXTRX
|
||||
FHEM/46_TRX_SECURITY.pm wherzig http://forum.fhem.de RFXTRX
|
||||
FHEM/46_TRX_WEATHER.pm wherzig http://forum.fhem.de RFXTRX
|
||||
FHEM/49_IPCAM.pm mfr69bs http://forum.fhem.de Sonstiges
|
||||
FHEM/50_WS300.pm tdressler http://forum.fhem.de SlowRF
|
||||
FHEM/50_WS300.pm Dirk http://forum.fhem.de SlowRF
|
||||
FHEM/51_I2C_BMP180.pm Dirk http://forum.fhem.de/ Raspberry Pi
|
||||
FHEM/56_POKEYS.pm axelberner http://forum.fhem.de Sonstiges
|
||||
FHEM/57_Calendar.pm borisneubert http://forum.fhem.de Sonstiges
|
||||
|
Loading…
Reference in New Issue
Block a user