Autor Thema: Modul: 98_livetrackingconn.pm - zur Anbindung von livetracking an RESIDENTS  (Gelesen 6159 mal)

Offline binford6000

  • Tester
  • Hero Member
  • ****
  • Beiträge: 1066
  • 🏠⚙️💡🛠📱
Am Ende von Zeile 19 fehlt ein Leerzeichen vor dem "
Wer weiß wie das verschwunden ist

So ein Leerzeichen kann schon leicht verloren gehen...  ;D
FHEM 5.9 auf Ubuntu LTS-LXC unter Proxmox, IOserver für deconz + CUL via ser2net, Testumgebung: docker pull fhem/fhem
SONOS, alexa-fhem, homebridge, TelegramBot mit msgDialog, livetracking

Offline klausw

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1894
So ein Leerzeichen kann schon leicht verloren gehen...  ;D
ist korrigiert
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Offline binford6000

  • Tester
  • Hero Member
  • ****
  • Beiträge: 1066
  • 🏠⚙️💡🛠📱
ist korrigiert

Danke! Ich war so frei und hab eins von meinen Leerzeichen eingefügt  ;)
VG Sebastian
FHEM 5.9 auf Ubuntu LTS-LXC unter Proxmox, IOserver für deconz + CUL via ser2net, Testumgebung: docker pull fhem/fhem
SONOS, alexa-fhem, homebridge, TelegramBot mit msgDialog, livetracking

Offline binford6000

  • Tester
  • Hero Member
  • ****
  • Beiträge: 1066
  • 🏠⚙️💡🛠📱
Moin Klaus,
jetzt scheint dir ein "m" abhanden gekommen zu sein - aber dafür hat sich ein "l" dazu gesellt  ;D
98_livetrackingconn.pl
Mit der letzten Verison habe ich wieder Stacktrace Meldungen im Log bei enter/leave einer Zone:
2019.09.21 08:00:34 1:  readingsUpdate(iphone5SE,place,home) missed to call readingsBeginUpdate first.
2019.09.21 08:00:34 1:  stacktrace:
2019.09.21 08:00:34 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1074)
2019.09.21 08:00:34 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.21 08:00:34 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (939)
2019.09.21 08:00:34 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (579)
2019.09.21 08:00:34 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.21 08:00:34 1:      main::CallFn                        called by fhem.pl (750)
2019.09.21 08:00:34 1:  readingsUpdate(iphone5SE,zone_0,active) missed to call readingsBeginUpdate first.
2019.09.21 08:00:34 1:  stacktrace:
2019.09.21 08:00:34 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1078)
2019.09.21 08:00:34 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.21 08:00:34 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (939)
2019.09.21 08:00:34 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (579)
2019.09.21 08:00:34 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.21 08:00:34 1:      main::CallFn                        called by fhem.pl (750)
2019.09.21 08:00:34 1:  readingsUpdate(iphone5SE,trigger,region) missed to call readingsBeginUpdate first.
2019.09.21 08:00:34 1:  stacktrace:
2019.09.21 08:00:34 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1103)
2019.09.21 08:00:34 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.21 08:00:34 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (939)
2019.09.21 08:00:34 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (579)
2019.09.21 08:00:34 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.21 08:00:34 1:      main::CallFn                        called by fhem.pl (750)
2019.09.21 08:00:34 1:  readingsUpdate(iphone5SE,distance,0) missed to call readingsBeginUpdate first.
2019.09.21 08:00:34 1:  stacktrace:
2019.09.21 08:00:34 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1147)
2019.09.21 08:00:34 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.21 08:00:34 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (939)
2019.09.21 08:00:34 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (579)
2019.09.21 08:00:34 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.21 08:00:34 1:      main::CallFn                        called by fhem.pl (750)

Irgendwas war doch da...  ???
EDIT: Hier gefunden:
https://forum.fhem.de/index.php/topic,93565.msg918444.html#msg918444

Die kommen aber von livetracking...  :o

VG Sebastian
« Letzte Änderung: 21 September 2019, 09:16:48 von binford6000 »
FHEM 5.9 auf Ubuntu LTS-LXC unter Proxmox, IOserver für deconz + CUL via ser2net, Testumgebung: docker pull fhem/fhem
SONOS, alexa-fhem, homebridge, TelegramBot mit msgDialog, livetracking

Offline binford6000

  • Tester
  • Hero Member
  • ****
  • Beiträge: 1066
  • 🏠⚙️💡🛠📱
Ich habe noch eine Frage:
goneradius funktioniert doch mit leavetounderway zusammen oder?

VG Sebastian
FHEM 5.9 auf Ubuntu LTS-LXC unter Proxmox, IOserver für deconz + CUL via ser2net, Testumgebung: docker pull fhem/fhem
SONOS, alexa-fhem, homebridge, TelegramBot mit msgDialog, livetracking

Offline klausw

  • Developer
  • Hero Member
  • ****
  • Beiträge: 1894
Ich habe noch eine Frage:
goneradius funktioniert doch mit leavetounderway zusammen oder?

Es sollte auf alle Fälle.

jetzt scheint dir ein "m" abhanden gekommen zu sein - aber dafür hat sich ein "l" dazu gesellt  ;D
98_livetrackingconn.pl

es hat ne Weile gedauert bis ich es gesehen habe... oh mann  :o


Mit der letzten Verison habe ich wieder Stacktrace Meldungen im Log bei enter/leave einer Zone:

Irgendwas war doch da...  ???
EDIT: Hier gefunden:
https://forum.fhem.de/index.php/topic,93565.msg918444.html#msg918444

Die kommen aber von livetracking...  :o

Ja, kommen sie aber der Auslöser scheint ja im livetrackingconn Modul zu liegen.
Das Ganze überblicke ich noch nicht.
Hast Du noch die Version, bei der keine Stacktrace Meldung kam?
Dann würde ich mit mal die Unterschiede anschauen.
RasPi B v2 mit FHEM 18B20 über 1Wire, LED PWM Treiber über I2C, Luchtdruck-, Feuchtesensor und ein paar Schalter/LED\'s zum testen
Module: RPI_GPIO, RPII2C, I2C_EEPROM, I2C_MCP23008, I2C_MCP23017, I2C_MCP342x, I2C_PCA9532, I2C_PCF8574, I2C_SHT21, I2C_BME280

Offline binford6000

  • Tester
  • Hero Member
  • ****
  • Beiträge: 1066
  • 🏠⚙️💡🛠📱
Zitat
Hast Du noch die Version, bei der keine Stacktrace Meldung kam?
Dann würde ich mit mal die Unterschiede anschauen.

Nee die hab ich nicht mehr. Aber mit der aktuellen Version habe ich die Meldungen auch nicht mehr im Log.
Scheint also was anderes gewesen zu sein.

VG Sebastian
« Letzte Änderung: 25 September 2019, 07:52:43 von binford6000 »
FHEM 5.9 auf Ubuntu LTS-LXC unter Proxmox, IOserver für deconz + CUL via ser2net, Testumgebung: docker pull fhem/fhem
SONOS, alexa-fhem, homebridge, TelegramBot mit msgDialog, livetracking

Offline binford6000

  • Tester
  • Hero Member
  • ****
  • Beiträge: 1066
  • 🏠⚙️💡🛠📱
Moin Klaus,
vorhin habe ich wieder die stacktrace Meldungen im Log bemerkt:
livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:33:23 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:35:08 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:35:10 1:  readingsUpdate(iphone5se,zone_0,inactive) missed to call readingsBeginUpdate first.
2019.09.25 06:35:10 1:  stacktrace:
2019.09.25 06:35:10 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1087)
2019.09.25 06:35:10 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.25 06:35:10 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (940)
2019.09.25 06:35:10 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (580)
2019.09.25 06:35:10 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.25 06:35:10 1:      main::CallFn                        called by fhem.pl (750)
2019.09.25 06:35:10 1:  readingsUpdate(iphone5se,trigger,region) missed to call readingsBeginUpdate first.
2019.09.25 06:35:10 1:  stacktrace:
2019.09.25 06:35:10 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1103)
2019.09.25 06:35:10 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.25 06:35:10 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (940)
2019.09.25 06:35:10 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (580)
2019.09.25 06:35:10 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.25 06:35:10 1:      main::CallFn                        called by fhem.pl (750)
2019.09.25 06:35:10 1:  readingsUpdate(iphone5se,distance,0) missed to call readingsBeginUpdate first.
2019.09.25 06:35:10 1:  stacktrace:
2019.09.25 06:35:10 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1147)
2019.09.25 06:35:10 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.25 06:35:10 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (940)
2019.09.25 06:35:10 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (580)
2019.09.25 06:35:10 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.25 06:35:10 1:      main::CallFn                        called by fhem.pl (750)
2019.09.25 06:35:11 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:35:12 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:40:09 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:40:10 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:40:10 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:45:09 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:50:11 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 06:55:11 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:00:12 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:07:32 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:12:33 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:17:34 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:22:35 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:27:05 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:27:05 1:  readingsUpdate(iphone5se,place,xxxxxxx) missed to call readingsBeginUpdate first.
2019.09.25 07:27:05 1:  stacktrace:
2019.09.25 07:27:05 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1074)
2019.09.25 07:27:05 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.25 07:27:05 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (940)
2019.09.25 07:27:05 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (580)
2019.09.25 07:27:05 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.25 07:27:05 1:      main::CallFn                        called by fhem.pl (750)
2019.09.25 07:27:05 1:  readingsUpdate(iphone5se,zone_1,active) missed to call readingsBeginUpdate first.
2019.09.25 07:27:05 1:  stacktrace:
2019.09.25 07:27:05 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1078)
2019.09.25 07:27:05 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.25 07:27:05 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (940)
2019.09.25 07:27:05 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (580)
2019.09.25 07:27:05 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.25 07:27:05 1:      main::CallFn                        called by fhem.pl (750)
2019.09.25 07:27:05 1:  readingsUpdate(iphone5se,trigger,region) missed to call readingsBeginUpdate first.
2019.09.25 07:27:05 1:  stacktrace:
2019.09.25 07:27:05 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1103)
2019.09.25 07:27:05 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.25 07:27:05 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (940)
2019.09.25 07:27:05 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (580)
2019.09.25 07:27:05 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.25 07:27:05 1:      main::CallFn                        called by fhem.pl (750)
2019.09.25 07:27:05 1:  readingsUpdate(iphone5se,distance,39) missed to call readingsBeginUpdate first.
2019.09.25 07:27:05 1:  stacktrace:
2019.09.25 07:27:05 1:      main::readingsBulkUpdate            called by ./FHEM/98_livetracking.pm (1147)
2019.09.25 07:27:05 1:      main::livetracking_ParseOwnTracks   called by ./FHEM/98_livetracking.pm (1571)
2019.09.25 07:27:05 1:      main::livetracking_Webcall          called by ./FHEM/01_FHEMWEB.pm (940)
2019.09.25 07:27:05 1:      main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (580)
2019.09.25 07:27:05 1:      main::FW_Read                       called by fhem.pl (3752)
2019.09.25 07:27:05 1:      main::CallFn                        called by fhem.pl (750)
2019.09.25 07:27:06 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian
2019.09.25 07:27:39 3:  livetrackingcon: Found matching UUID at ROOMMATE device rr_Sebastian

Leavetounderway scheint er zu ignorieren - zumindest habe ich keinen Push nachricht bzw. Logeintrag dazu.
Hier mal die devices:

livetrackingconn:
Internals:
   FUUID      5d839ae8-f33f-0308-a4b4-d28f76724b99450b
   FVERSION   98_livetrackingconn.pm:?/2019-09-21
   NAME       livetrackingcon
   NOTIFYDEV  TYPE=livetracking
   NR         375
   NTFY_ORDER 999-livetrackingcon
   ROOMMATES  rr_Sebastian
   STATE      Initialized
   TYPE       livetrackingconn
Attributes:
   devStateIcon .*:ios-on-blue
   goneradius 100000
   group      Standort
   icon       location
   leavetounderway 1
   livetrackingDevice TYPE=livetracking
   room       90_System->91_Schnittstellen

iphone5se:
Internals:
   CHANGED   
   FUUID      5d864070-f33f-0308-1438-050526090524e2a4
   FVERSION   98_livetracking.pm:0.192570/2019-04-24
   NAME       iphone5se
   NOTIFYDEV  owntracks
   NR         382
   NTFY_ORDER 999-iphone5se
   STATE      Zone: home
   TYPE       livetracking
   READINGS:
     2019-09-25 07:27:38   accuracy        65
     2019-09-25 07:27:05   address         
55128 Mainz
Deutschland
     2019-09-25 07:27:38   altitude        140
     2019-09-25 07:27:38   batteryPercent  97
     2019-09-25 07:27:38   batteryState    ok
     2019-09-25 07:27:38   connection      mobile
     2019-09-25 07:27:38   distance        39
     2019-09-25 07:22:34   heading         122
     2019-09-25 07:27:38   id              SE
     2019-09-25 07:27:38   latitude        49.1234
     2019-09-25 07:27:38   location        49.1234,8.1234
     2019-09-25 07:27:38   longitude       8.1234
     2019-09-24 21:53:02   place           home
     2019-09-25 07:27:38   trigger         automatic
     2019-09-25 07:22:34   velocity        109
     2019-09-25 07:27:38   zone_0          inactive
     2019-09-25 07:27:38   zone_1          active
     2019-09-25 07:27:38   zone_2          inactive
     2019-09-25 07:27:38   zone_3          inactive
     2019-09-25 07:27:38   zone_4          inactive
   helper:
     lastOwnTracks 1569389258
Attributes:
   addressLanguage de
   addressReading 1
   batteryWarning 15
   group      Standort
   home       50.1234,8.1234
   icon       location
   osmandServer 1
   room       90_System->91_Schnittstellen
   roundAltitude 10
   roundDistance 0.5
   stateFormat Zone: place
   userattr   goneradius homeradius leavetounderway:0,1 wayhomeradius
   zonename_0 home
   zonename_1 vvvv
   zonename_2 wwww
   zonename_3 xxxx
   zonename_4 yyyy


VG Sebastian
« Letzte Änderung: 25 September 2019, 08:01:31 von binford6000 »
FHEM 5.9 auf Ubuntu LTS-LXC unter Proxmox, IOserver für deconz + CUL via ser2net, Testumgebung: docker pull fhem/fhem
SONOS, alexa-fhem, homebridge, TelegramBot mit msgDialog, livetracking

 

decade-submarginal