mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 11:26:03 +00:00
98_livetracking: fixed Life360 login
git-svn-id: https://svn.fhem.de/fhem/trunk@26834 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3dacc3f749
commit
9994b9c4f2
@ -503,6 +503,7 @@ sub livetracking_ParseLife360($$) {
|
||||
$tst = $dataset->{endTimestamp};
|
||||
}
|
||||
|
||||
$lastreading = 0 if($dataset->{endTimestamp} && $lastreading < $dataset->{endTimestamp});
|
||||
next if($lastreading > $dataset->{startTimestamp});
|
||||
|
||||
Log3 ($name, 6, "$name new l360 data: /n".Dumper($dataset));
|
||||
@ -570,6 +571,12 @@ sub livetracking_ParseLife360($$) {
|
||||
$hash->{CHANGETIME}[$changeindex++] = FmtDateTime($dataset->{endTimestamp});
|
||||
}
|
||||
|
||||
if(defined($dataset->{wifiState}))
|
||||
{
|
||||
readingsBulkUpdate($hash, "connection", (($dataset->{wifiState})?'wifi':'mobile'));
|
||||
$hash->{CHANGETIME}[$changeindex++] = FmtDateTime($dataset->{endTimestamp});
|
||||
}
|
||||
|
||||
$updated = 1;
|
||||
|
||||
readingsEndUpdate($hash, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user