Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • MNB
    replied
    Ok guys, I'm confused..... when I look at that PHL CurrentLocation device advance tab I only see "Status" and "Value" being populated with "String" remaining blank (see attached I), if I look at PHL NearestLocation that device has "Status", "Value" and "String" populated (see attached II) along with some of the other devices e.g. PHL Driving Time ect. So using the DTR:XX: for CurrentLocation produces nothing since the "String" field is not being populated where as the other Virtual Devices are, so only DSR:XX: will work with the PHL CurrentLocation, newly created VD; CurrentLocation Temp and PreviousLocation as they are being copied from PHL CurrentLocation will never have their "String" field populated, am I missing something? Mike (sorry for the rambling)
    Attached Files

    Leave a comment:


  • Chewbucka
    replied
    Mike,

    Since I'm only using my previous location virtual device to announce when I'm entering or leaving known locations other than home, I didn't have to worry about using DTR. For me, DSR just worked and HS3 would announce the location that was in the string value. Honestly, looking at what Randy put about DTR, I'm not even sure how this is working since the status value would simply be 1,2,3, etc. to indicate the index of the known location. The string value would contain the actual text of the known location. I've used the DSR reference from the beginning and it's just worked for me, but again, I wasn't using this event when entering the Home location since I had a separate event to handle arrival to home.

    Leave a comment:


  • MNB
    replied
    Thanxs Randy, I told you I was being "thick as a brick" (JT) I was looking at the forest (VD) and didn't see the trees (DTR vs DSR). That did the trick, Mike

    Leave a comment:


  • randy
    replied
    Originally posted by MNB View Post
    Steve, thanxs for the comeback, I'm being a little thick.. I'm not sure what your implying? When I look at the either the Paul's Current location devices (1st graphic) and my Current Location2 (2nd graphic) both do not have any string value populated, what am I missing? MikeI
    $$DSR:1234: is the Status of the device which would be "Home". $$DTR;1234: would be the String.

    Leave a comment:


  • MNB
    replied
    Steve, thanxs for the comeback, I'm being a little thick.. I'm not sure what your implying? When I look at the either the Paul's Current location devices (1st graphic) and my Current Location2 (2nd graphic) both do not have any string value populated, what am I missing? MikeI

    As far as announcing where you just departed, you have to use the status value instead of the value. The status(string) value is where Paul writes the name of the known location.
    Attached Files

    Leave a comment:


  • Chewbucka
    replied
    Just got back into town the other day. I've added the additional current location temp virtual device, per Randy's suggestion. I also marked it hidden in views and mobile views. When entering any known location, I copy the current location to the current location temp virtual device using the script commands. Then when leaving any known location, I copy the current location temp virtual device to the previous location virtual device.

    I haven't had a chance to play with this to see if my other event works correctly which announce when I just left and how far away from home I am. I may have to add the script commands to each event that I have for leaving any known location (except home and the vortext), leaving home, and leaving the vortex. It will depend upon how fast the previous location is updated and before my departed event fires.

    As far as announcing where you just departed, you have to use the status value instead of the value. The status(string) value is where Paul writes the name of the known location. In my case, my previous location ref ID is 2826. When leaving a known location, I speak this: "Steve just left $$DSR:2826:. He's about $$DSR:2713: away." The 2713 ref ID is for my drive time home device.

    Click image for larger version

Name:	phlocation2-event-update-current-location-previous-location-script.PNG
Views:	154
Size:	82.7 KB
ID:	1289695

    Leave a comment:


  • MNB
    replied
    Steve, noticed you've been quite of late... have you per chance been updating your #528 events? I'm just about working with exception of Known Location - Departed, based on Randy's advise for Current and Previous virtual devices everything works with one exception and am troubleshooting. I noticed that my Virtual devices work but unless the value = Home there is a numeric value for one of the known locations which makes my announcement
    Code:
    Speak: ($SONOS$Office$:*):Mike has just departed from Value
    announce Value rather than the actual location. I noticed you avoided this my only announcing distance from home was this deliberate? Mike

    Leave a comment:


  • philiphill
    replied
    I started to get the following errors as was wondering if anyone else was and what was the cause?
    (GetWebFile) Error: System.Net.WebException: The remote server returned an error: (403) Forbidden. at System.Net.WebClient.DownloadFile(Uri address, String fileName) at System.Net.WebClient.DownloadFile(String address, String fileName) at j.a(String A_0, String A_1)
    Mar-01 8:48:43 PM PHLocation2 Error (BuildStaticMapImageG) Error in GetWebFile

    Leave a comment:


  • jyrki69
    replied
    Seems to be working again as of late last night, without me changing anything. Maybe Life 360 had some issues. Little strange, because the web solution of Life 360 and Life 360 app worked fine. I don't know how this is integrated in PHLocation2.

    Leave a comment:


  • jyrki69
    replied
    Starting at 07 o clock this morning im getting these errors and the device location updates doesnt update.
    Feb-28 07:24:32 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 07:24:32 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 07:23:33 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 07:23:32 PHLocation2 Error (PollAccount) LF Error in GetCircles.

    I have 2 Life 360 service accounts, and 3 user/devices.
    This has worked fine for weeks, and I haven't changed anything.

    I wanted to add service accounts for all 3 user/devices, but the Life 360 icon won't show up as an option anymore, only Add iCloud and Add Followmee?


    I've logged in to Life360.com and checked the app on the phones, it updates and works fine.
    I've restarted the plugin a couple of times, and it seems like the devices updates location on restart, but then when starting to poll the errors come up again. Every minute the error is logged (Poll is 1min for all users/devices).


    This is after restart of the plugin (name and emails are edited out)
    Feb-28 15:22:29 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:22:29 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:21:28 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:21:28 PHLocation2 Error (PollAccount) LF Error in GetCircles.
    Feb-28 15:19:29 PHLocation2 Error (PollAccount) LF Error in GetPlaces.
    Feb-28 15:19:29 PHLocation2 Error (GetPlaces) LF Exception: Collection was modified; enumeration operation may not execute.
    Feb-28 15:16:28 PHLocation2 (Startup) Finished at 15:16:28.413
    Feb-28 15:16:28 PHLocation2 (StartDQThreads) Fence DQ thread started OK.
    Feb-28 15:16:28 PHLocation2 (StartDQThreads) Pos DQ thread started OK.
    Feb-28 15:16:28 PHLocation2 (SwitchUserAtLocTimer) Active position type users found. Starting UserAtLoc timer...
    Feb-28 15:16:28 PHLocation2 (SwitchPolling) Active polled services found. Starting polling....
    Feb-28 15:16:28 PHLocation2 (InitServiceAccounts) Initialised Life360 account Ref: 1929 : **@mail.com
    Feb-28 15:16:28 PHLocation2 (InitServiceAccounts) Initialised Life360 account Ref: 1834 : **@anothermail.com
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Completed OK.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) No external devices to monitor, disabling monitoring.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Found a total of 5 root and 73 child devices.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Added Life360 root device 1979 : Life360 Device Name to known P list.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Added Life360 root device 1932 : Life360 Device Name to known P list.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Found Life360 Account root device 1929 : Life360 Account Name
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Added Life360 root device 1837 : Life360 Device Name to known P list.
    Feb-28 15:16:28 PHLocation2 (BuildDeviceLists) Found Life360 Account root device 1834 : Life360 Account Name
    Feb-28 15:16:27 PHLocation2 (Startup) Plug-In is registered.
    Feb-28 15:16:27 PHLocation2 (Startup) 5 known locations loaded.
    Feb-28 15:16:27 PHLocation2 (InitHomeLocation) Home Location set. Lat:59.828158 Lon:10.330247 Rad:0.25
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Distance data provider is set to Pri:Google Alt:MapQuest
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Static map provider is set to Google
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Dynamic map provider is set to Google
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Links map provider is set to Google
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Elevation Data provider is set to Pri:Google Alt:MapQuest
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) Reverse Geocode provider is set to Pri:Google Alt:OSM
    Feb-28 15:16:27 PHLocation2 (LoadConfigSettings) plug-in is working in Metric units.
    Feb-28 15:16:27 PHLocation2 (Startup) Main database found. Version:6
    Feb-28 15:16:27 PHLocation2 (Startup) ImagePath = images/PHLocation2/
    Feb-28 15:16:27 PHLocation2 (Startup) LogPath = html/PHLocation2/Logs/
    Feb-28 15:16:27 PHLocation2 (Startup) DataPath = /opt/HomeSeer/Data/PHLocation2/PHLocation2.db3
    Feb-28 15:16:27 PHLocation2 (Startup) BinPath = /opt/HomeSeer/Data/PHLocation2/
    Feb-28 15:16:27 PHLocation2 (Startup) HSAppPath = /opt/HomeSeer
    Feb-28 15:16:27 PHLocation2 (Startup) UTC offset secs: 3600
    Feb-28 15:16:27 PHLocation2 (Startup) System decimal separator used is [.]
    Feb-28 15:16:27 PHLocation2 (Startup) Detected OS is Linux version 4.15.0.45
    Feb-28 15:16:27 PHLocation2 (Startup) Plug-in version is: 3.0.0.56
    Feb-28 15:16:27 PHLocation2 (Startup) Begins at 15:16:27.054
    Feb-28 15:16:27 Plug-In Finished initializing plug-in PHLocation2
    Feb-28 15:16:27 Starting Plug-In PHLocation2 loaded in 200 milliseconds
    Feb-28 15:16:27 Starting Plug-In Plugin PHLocation2 started successfully in 6 milliseconds
    Feb-28 15:16:27 Starting Plug-In Initializing plugin PHLocation2 ...
    Feb-28 15:16:27 Info Plugin PHLocation2 has connected. IP:127.0.0.1:54902

    Any suggestions on whats wrong?

    Leave a comment:


  • Timon
    replied
    Feature Request:

    More ways to enter the Radius in Known Locations. Currently you can only enter it in miles. That's an unusual way to enter the Radius when on something that meant to be nearby.

    I'd like to be able to enter the Radius in feet, yards, meters, kilometers or miles. I think the default should be meters if in metric mode and yards if in english mode however one should always be able to override that by adding a suffix such as "ft" for feet, "yd" for yards, "mi" for miles "m" for meters or "km" for kilometers.

    The box would always read in the default measurement but you could enter it in any unit of measure by using the standard suffix. So if the selected unit of measure is miles and you enter 100m the box would show 0.062137 miles.

    Leave a comment:


  • madmellow
    replied
    Understood and thanks. Should have RTFM.

    Not sure how that got checked, but now all three of my service accounts show up with the Granddaughter's e/mail on the Edit Service Account screen.

    Thanks again,

    MM

    Leave a comment:


  • randy
    replied
    Originally posted by madmellow View Post
    My question probably got lost in the 2FA and trigger discussions... I've been hoping that they would eventually show up as I restarted, but so far nothing.

    I need help with my Granddaughter's iPhone. I added her iCloud account correctly, but it won't find her phone. I enabled logging and got (account name masked):

    Polling Check complete.
    2019-02-20 12:09:17.731 PollAccount iCloud poll called for: 29 c...@yahoo.com
    2019-02-20 12:09:20.147 UpdateDevices iCloud Att:1 Content for 3 devices found for c...@yahoo.com Begin processing content.
    2019-02-20 12:09:20.152 UpdateDevices iCloud Device: Cynthia’s Apple Watch for appleId:c...@yahoo.com ignored because not known.
    2019-02-20 12:09:20.157 UpdateDevices iCloud Device: iPod touch for appleId:c...@yahoo.com ignored because not known.
    2019-02-20 12:09:20.159 UpdateDevices iCloud Device: C.C.’s Iphone for appleId:c...@yahoo.com ignored because not known.
    2019-02-20 12:09:20.226 PollAccount iCloud poll completed for: 29 c...@yahoo.com in 2481 ms.

    What does "ignored because not known" mean and what do I need to do to make it be "known?"

    Thanks,

    Rick aka MadMellow
    It means you have “Ignore Unknown Devices” checked on her service account. See the user guide:

    https://jphuddlestone.co.uk/phlocati...udAccount.html

    Ignore Unknown Devices

    DO NOT enable this option until you have added all the User devices that you want included in the plug-in as this option will prevent new devices being discovered.

    A single iCloud account may have many devices registered to it but you may only want to monitor some of them in the plug-in. Once all required devices have been added, enabling this option allows the plug-in to ignore the state of the non-included devices which speeds up the polling process considerably for accounts with multiple devices where only some of those devices are included in the plug-in.

    Leave a comment:


  • madmellow
    replied
    My question probably got lost in the 2FA and trigger discussions... I've been hoping that they would eventually show up as I restarted, but so far nothing.

    I need help with my Granddaughter's iPhone. I added her iCloud account correctly, but it won't find her phone. I enabled logging and got (account name masked):

    Polling Check complete.
    2019-02-20 12:09:17.731 PollAccount iCloud poll called for: 29 c...@yahoo.com
    2019-02-20 12:09:20.147 UpdateDevices iCloud Att:1 Content for 3 devices found for c...@yahoo.com Begin processing content.
    2019-02-20 12:09:20.152 UpdateDevices iCloud Device: Cynthia’s Apple Watch for appleId:c...@yahoo.com ignored because not known.
    2019-02-20 12:09:20.157 UpdateDevices iCloud Device: iPod touch for appleId:c...@yahoo.com ignored because not known.
    2019-02-20 12:09:20.159 UpdateDevices iCloud Device: C.C.’s Iphone for appleId:c...@yahoo.com ignored because not known.
    2019-02-20 12:09:20.226 PollAccount iCloud poll completed for: 29 c...@yahoo.com in 2481 ms.

    What does "ignored because not known" mean and what do I need to do to make it be "known?"

    Thanks,

    Rick aka MadMellow

    Leave a comment:


  • randy
    replied
    Paul is aware of the 2FA expiration issue and is trying to fix it. It was all good until Apple changed something. He does not have a fix at this time but is endeavoring to find one.

    Leave a comment:

Working...
X