Python Plugin: Life 360 Presence Detection (deprecated)

Python and python framework

Moderator: leecollings

EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Life 360 Presence Detection

Post by EddyG »

It would be nice that some Internet errors where catched.
Like a http 502 error and some more, because those have followup errors like:

Code: Select all

2019-01-29 23:59:30.345  (Life 360) Life360 HTTPError code: 502
2019-01-29 23:59:30.346  (Life 360) No Token Received; Please Check Life360 Username and Password
2019-01-29 23:59:30.347  (Life 360) Error Authenticating Life360 or Connection Problem...
2019-01-29 23:59:30.347  (Life 360) Please Use Correct Credentials and Restart The Plugin!!!
or

Code: Select all

2019-01-29 23:51:20.080  (Life 360) Life360 HTTPError code: 502
2019-01-29 23:51:20.081  Error: (Life 360) 'onHeartbeat' failed 'TypeError':'string indices must be integers'.
2019-01-29 23:51:20.082  Error: (Life 360) ----> Line 291 in '/home/pi/domoticz/plugins/DomoticzLife360/plugin.py', ...
2019-01-29 23:51:20.082  Error: (Life 360) ----> Line 188 in '/home/pi/domoticz/plugins/DomoticzLife360/plugin.py', ...
It looks that those errors make the plugin less stable and eventually make the plugin crash
georon
Posts: 13
Joined: Friday 23 February 2018 14:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Bèta
Location: Netherlands
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by georon »

First: thanks for the effort in creating this plugin

Installed current version today from GitHub.
Enabled debug.

The logs show the creation of the devices, without errors.
No devices show up though.

Every run there is a new entry of device creation.

Plugin v2.2.0
Domoticz v4.10078
Python Version: 3.5.3
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

Pls stop the plugin, delete deviceorder.txt from plugin directory and start plugin again. See if this makes any difference...
georon
Posts: 13
Joined: Friday 23 February 2018 14:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Bèta
Location: Netherlands
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by georon »

Removing this file did not result in the devices being created.

Log extract:

Code: Select all

2019-02-03 18:05:57.947 (Life360) Member Count = 2
2019-02-03 18:05:57.947 (Life360) Creating device 'Ron Presence'.
2019-02-03 18:05:57.948 (Life360) Creating device 'Ron Location'.
2019-02-03 18:05:57.948 (Life360) Creating device 'Ron Battery'.
2019-02-03 18:05:57.948 (Life360) Creating device 'Ron Distance'.
2019-02-03 18:05:57.948 (Life360) Creating device 'Bianca Presence'.
2019-02-03 18:05:57.949 (Life360) Creating device 'Bianca Location'.
2019-02-03 18:05:57.949 (Life360) Creating device 'Bianca Battery'.
2019-02-03 18:05:57.949 (Life360) Creating device 'Bianca Distance'.
2019-02-03 18:05:57.949 (Life360) ['Ron', 'Bianca']
2019-02-03 18:05:57.951 (Life360) Devices created.
2019-02-03 18:05:57.951 (Life360) 'Mode6':'Debug'
2019-02-03 18:05:57.951 (Life360) 'HardwareID':'10'
2019-02-03 18:05:57.951 (Life360) 'Name':'Life360'
2019-02-03 18:05:57.951 (Life360) 'Password':'*******'
2019-02-03 18:05:57.951 (Life360) 'DomoticzHash':'*********'
2019-02-03 18:05:57.952 (Life360) 'Key':'Life360'
2019-02-03 18:05:57.952 (Life360) 'Username':'[email protected]'
2019-02-03 18:05:57.952 (Life360) 'Author':'febalci'
2019-02-03 18:05:57.952 (Life360) 'Mode4':'TM'
2019-02-03 18:05:57.952 (Life360) 'DomoticzBuildTime':'2018-10-18 08:54:38'
2019-02-03 18:05:57.953 (Life360) 'Version':'2.2.0'
2019-02-03 18:05:57.953 (Life360) 'Port':'0'
2019-02-03 18:05:57.953 (Life360) 'Mode2':'8'
2019-02-03 18:05:57.953 (Life360) 'HomeFolder':'/usr/local/share/domoticz/plugins/Life360/'
2019-02-03 18:05:57.953 (Life360) 'DomoticzVersion':'4.10078'
2019-02-03 18:05:57.953 (Life360) 'Mode3':'********************************'
2019-02-03 18:05:57.954 (Life360) Device count: 0
2019-02-03 18:05:57.954 (Life360) Pushing 'PollIntervalDirective' on to queue
2019-02-03 18:05:57.954 (Life360) Processing 'PollIntervalDirective' message
2019-02-03 18:05:57.954 (Life360) Heartbeat interval set to: 10.
I have tried replacing the plugin by an earlier release.
That does not change things either...

Am I missing something stupid???
georon
Posts: 13
Joined: Friday 23 February 2018 14:09
Target OS: Raspberry Pi / ODroid
Domoticz version: Bèta
Location: Netherlands
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by georon »

georon wrote: Sunday 03 February 2019 18:23 Am I missing something stupid???
Yes I was!

Check in the system settings if new hardware devices are allowed... :shock:

Allowed it, restarted plugin.

Great! There they are!
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

georon wrote: Sunday 03 February 2019 18:27
georon wrote: Sunday 03 February 2019 18:23 Am I missing something stupid???
Yes I was!

Check in the system settings if new hardware devices are allowed... :shock:

Allowed it, restarted plugin.

Great! There they are!
I could have never guessed :o Good job...
sach
Posts: 111
Joined: Wednesday 12 October 2016 14:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by sach »

Plugin works Great....Thank you.
I use Life 360 to make sure my son makes it into school and back OK.
I notice that the Location is shown as 'Home' when he is home, but is there a way it can be displayed as School when he is at school instead of the address?
This works fine when in the App itself. I have a number of locations setup and it doesn't appear to show the tagged location in Domoticz.

Thanks in advance.

Sach
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by Minglarn »

Hi!

Love the plugin... However... my phyton knowlege is kinda zero..

How do I trunc the text to just contain the first sentence before the first "," ...

I just want the "Sicklatunneln" ... the rest is just to much info :)
0.JPG
0.JPG (18.39 KiB) Viewed 3998 times
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

Minglarn wrote: Wednesday 13 February 2019 16:05 Hi!

Love the plugin... However... my phyton knowlege is kinda zero..

How do I trunc the text to just contain the first sentence before the first "," ...

I just want the "Sicklatunneln" ... the rest is just to much info :)
Looks easy. Open the plugin.py in a text editor go to:
Line 212:
Under

Code: Select all

currentstat2, currentloc = a.getaddress(self.tomtomapikey,self.circleLatitude,self.circleLongitude)
add:

Code: Select all

currentloc = currentloc.split(',',1)[0]


and the same on line 217. This assumes all your addresses are in the format like xxxx, xxxx, xxxx, xxxx and so theis command gets the first text before the first comma. Also these added lines should start on the same column with their previus lines and you should go there by pressing space bar, not tab... Like:

Code: Select all

                            if self.tomtomapikey != 'Empty':
                                currentstat, currentmin = a.getdistance(self.tomtomapikey,self.circleLatitude,self.circleLongitude,self.myHomelat,self.myHomelon)
                                currentstat2, currentloc = a.getaddress(self.tomtomapikey,self.circleLatitude,self.circleLongitude)
                                currentloc = currentloc.split(',',1)[0]
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

sach wrote: Wednesday 13 February 2019 15:28 Plugin works Great....Thank you.
I use Life 360 to make sure my son makes it into school and back OK.
I notice that the Location is shown as 'Home' when he is home, but is there a way it can be displayed as School when he is at school instead of the address?
This works fine when in the App itself. I have a number of locations setup and it doesn't appear to show the tagged location in Domoticz.

Thanks in advance.

Sach
Try deleting line 230 on plugin.py. So, instead of:

Code: Select all

                            if self.selectedMap == "TM":
                                if self.tomtomapikey != 'Empty':
                                    currentstat, currentmin = a.getdistance(self.tomtomapikey,self.circleLatitude,self.circleLongitude,self.myHomelat,self.myHomelon)
                                    currentstat2, currentloc = a.getaddress(self.tomtomapikey,self.circleLatitude,self.circleLongitude)
                                else:
should be:

Code: Select all

                            if self.selectedMap == "TM":
                                if self.tomtomapikey != 'Empty':
                                    currentstat, currentmin = a.getdistance(self.tomtomapikey,self.circleLatitude,self.circleLongitude,self.myHomelat,self.myHomelon)
                                else:
Don't know why i added that line there, should have a reason which i don't remember now :D
This will only work if your locations are defined in Life360 app.
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

UPDATE 2.3.0

Since Life360 won't allow to name your frequent use locations without paying for subscription, i added this to the plugin.

Create a location.txt file in your Life360 plugin folder. The first line should always be the following:

Code: Select all

Name,Latitude,Longitude,Radius
Then, each line should represent one location as in header line:

Code: Select all

Name,Latitude,Longitude,Radius
Work,10.123456,20.543210,250
School,XX.XXXXXX,XX.XXXXX,100
Mall,XX.XXXXX,XX.XXXX,900
John's House,XX.XXXXX,XX.XXXXX,150
The name as you would like to appear on Location Device,Latitude,Longitude,Radius in meters for the fence
As in Radius, the plugin will accept you as you are in that location if your current distance to the given lat,lon is within this much meters.

Please inform me of any bugs. Enjoy...
sach
Posts: 111
Joined: Wednesday 12 October 2016 14:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by sach »

febalci wrote: Wednesday 13 February 2019 17:05
sach wrote: Wednesday 13 February 2019 15:28 Plugin works Great....Thank you.
I use Life 360 to make sure my son makes it into school and back OK.
I notice that the Location is shown as 'Home' when he is home, but is there a way it can be displayed as School when he is at school instead of the address?
This works fine when in the App itself. I have a number of locations setup and it doesn't appear to show the tagged location in Domoticz.

Thanks in advance.

Sach
Try deleting line 230 on plugin.py. So, instead of:

Code: Select all

                            if self.selectedMap == "TM":
                                if self.tomtomapikey != 'Empty':
                                    currentstat, currentmin = a.getdistance(self.tomtomapikey,self.circleLatitude,self.circleLongitude,self.myHomelat,self.myHomelon)
                                    currentstat2, currentloc = a.getaddress(self.tomtomapikey,self.circleLatitude,self.circleLongitude)
                                else:
should be:

Code: Select all

                            if self.selectedMap == "TM":
                                if self.tomtomapikey != 'Empty':
                                    currentstat, currentmin = a.getdistance(self.tomtomapikey,self.circleLatitude,self.circleLongitude,self.myHomelat,self.myHomelon)
                                else:
Don't know why i added that line there, should have a reason which i don't remember now :D
This will only work if your locations are defined in Life360 app.
Thanks this worked a treat.
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

IMPORTANT!!!

It seems that the Tomtom API returns a string instead of integer on some certain conditions (When the API page is not 200), and that causes the plugin thread to end unexpectedly together with all other python plugins. You can update to 2.3.1 from git page to handle this problem (Hopefully).
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Life 360 Presence Detection

Post by EddyG »

Sorry to say, but I still have the same errors:

Code: Select all

2019-02-21 21:38:48.717 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:38:48.718 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:39:02.727 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:39:02.727 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:39:16.730 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:39:16.730 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:39:30.733 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:39:30.734 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:39:44.740 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:39:44.740 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 Error: dzVents: Info: getErrorLoging: Threaderror(s) found:
2019-02-21 21:40:00.872 2019-02-21 21:39:44.740 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:39:44.740 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:39:30.734 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:39:30.733 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:39:16.730 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:39:16.730 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:39:02.727 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:39:02.727 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:38:48.718 Error: Zigbee hardware (33) thread seems to have ended unexpectedly
2019-02-21 21:40:00.872 2019-02-21 21:38:48.717 Error: Life 360 hardware (32) thread seems to have ended unexpectedly
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

EddyG wrote: Saturday 23 February 2019 15:31 Sorry to say, but I still have the same errors:
Dear Eddy, i need the cause of the error; So:
1. Domoticz version?
1.5 Python version?
2. Are you using Tomtom Api?
3. How many people in your circle?
4. What is the poll period in mins of the life360 plugin?
5. There should be a Python error most probably at the beginning of the thread errors; you can find it looking at your domoticz.log file. That will give a more precise idea.

For debug purposes, you can disable life360 plugin and check if other plugins are causing the issue...

Thanks...
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Life 360 Presence Detection

Post by EddyG »

1. 4.10427
1.5 3.5.3
2. Yes
3. 2 people
4. 2 minutes
5. Sorry there is no Python error

I will disable the life360 plugin and keep the zigbee running
Let see what happens next.
User avatar
capman
Posts: 153
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by capman »

Also still this errors in my log
Domoticz beta 4.10447 / Python V3.5.3 / 2 people / poll 2
Spoiler: show
2019-02-23 17:00:52.857 Error: (Life 360) 'onHeartbeat' failed 'timeout'.
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 294 in '/home/domoticz/plugins/DomoticzLife360/plugin.py', function onHeartbeat
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 167 in '/home/domoticz/plugins/DomoticzLife360/plugin.py', function onHeartbeat
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 51 in '/home/domoticz/plugins/DomoticzLife360/life360.py', function authenticate
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 38 in '/home/domoticz/plugins/DomoticzLife360/life360.py', function make_request
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 163 in '/usr/lib/python3.5/urllib/request.py', function urlopen
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 466 in '/usr/lib/python3.5/urllib/request.py', function open
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 484 in '/usr/lib/python3.5/urllib/request.py', function _open
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 444 in '/usr/lib/python3.5/urllib/request.py', function _call_chain
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 1297 in '/usr/lib/python3.5/urllib/request.py', function https_open
2019-02-23 17:00:52.857 Error: (Life 360) ----> Line 1260 in '/usr/lib/python3.5/urllib/request.py', function do_open
2019-02-23 17:00:52.858 Error: (Life 360) ----> Line 1215 in '/usr/lib/python3.5/http/client.py', function getresponse
2019-02-23 17:00:52.858 Error: (Life 360) ----> Line 297 in '/usr/lib/python3.5/http/client.py', function begin
2019-02-23 17:00:52.858 Error: (Life 360) ----> Line 258 in '/usr/lib/python3.5/http/client.py', function _read_status
2019-02-23 17:00:52.858 Error: (Life 360) ----> Line 579 in '/usr/lib/python3.5/socket.py', function readinto
2019-02-23 17:00:52.858 Error: (Life 360) ----> Line 937 in '/usr/lib/python3.5/ssl.py', function recv_into
2019-02-23 17:00:52.858 Error: (Life 360) ----> Line 807 in '/usr/lib/python3.5/ssl.py', function read
2019-02-23 17:00:52.858 Error: (Life 360) ----> Line 583 in '/usr/lib/python3.5/ssl.py', function
I try to find out of it is a python issue or maybe 'onheartbeat'.
Spoiler: show
2019-02-23 17:06:54.425 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:06:57.275 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:06:57.275 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:06:57.275 (Life 360) onHeartBeat called:0/12
2019-02-23 17:07:07.279 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:07:10.151 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:07:10.151 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:07:10.151 (Life 360) onHeartBeat called:1/12
2019-02-23 17:07:19.653 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:07:22.487 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:07:22.487 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:07:22.488 (Life 360) onHeartBeat called:2/12
2019-02-23 17:07:31.990 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:07:32.007 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:07:32.007 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:07:32.008 (Life 360) onHeartBeat called:3/12
2019-02-23 17:07:44.828 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:07:47.681 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:07:47.681 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:07:47.681 (Life 360) onHeartBeat called:4/12
2019-02-23 17:07:57.183 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:07:57.204 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:07:57.204 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:07:57.204 (Life 360) onHeartBeat called:5/12
2019-02-23 17:08:09.612 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:08:09.640 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:08:09.640 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:08:09.641 (Life 360) onHeartBeat called:6/12
2019-02-23 17:08:22.440 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:08:25.292 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:08:25.292 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:08:25.292 (Life 360) onHeartBeat called:7/12
2019-02-23 17:08:34.798 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:08:34.820 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:08:34.822 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:08:34.822 (Life 360) onHeartBeat called:8/12
2019-02-23 17:08:47.158 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:08:49.980 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:08:49.980 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:08:49.980 (Life 360) onHeartBeat called:9/12
2019-02-23 17:09:00.514 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:09:00.532 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:09:00.532 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:09:00.532 (Life 360) onHeartBeat called:10/12
2019-02-23 17:09:12.874 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:09:12.895 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:09:12.896 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:09:12.897 (Life 360) onHeartBeat called:11/12
2019-02-23 17:09:25.205 (Life 360) Pushing 'onHeartbeatCallback' on to queue
2019-02-23 17:09:28.020 (Life 360) Processing 'onHeartbeatCallback' message
2019-02-23 17:09:28.020 (Life 360) Calling message handler 'onHeartbeat'.
2019-02-23 17:09:28.020 (Life 360) onHeartBeat called:12/12
2019-02-23 17:09:28.020 (Life 360) Checking Life360 Circle...
The plugin is working but always the errors in the log :(
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by febalci »

capman wrote: Saturday 23 February 2019 17:14
The plugin is working but always the errors in the log :(
Capman, these errors refer to an https connection url error to life360 server. This could be due to:
1. Invalid life360 username-password (username should be your email address)
2. Intermittent internet disconnections of your modem.
3. Your https ssl profile?
4. Python 3.5.3 (Who knows?)

I never had this type of problem under 4.10224 and python 3.6.4. Also, that reminds me to do the thing i hate most: Better error handling and messages...
EddyG
Posts: 1042
Joined: Monday 02 November 2015 5:54
Target OS: -
Domoticz version:

Re: Python Plugin: Life 360 Presence Detection

Post by EddyG »

Unfortunately I took and looked at the wrong part of the log file.
It seems that my problem is solved after all with version 2.3.1
Sorry for the mistake. :oops:
User avatar
Minglarn
Posts: 214
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: Python Plugin: Life 360 Presence Detection

Post by Minglarn »

Great work!

Really, really liked the location.txt file ... Suits my dash panel PERFECT!
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest