Announcement

Collapse
No announcement yet.

PHLocation V2 Discussion

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

  • sooty
    replied
    Originally posted by mikesnook View Post

    Paul, if it would help i can also test the new version with the overlapping locations, i noticed the issue a few days back. I'm just testing PHL2 currently so wont be a big deal if something else breaks as a result, PHL1 is taking care of my location based automation currently. No worries if not, i will happily wait until you make the update available to everyone.

    Cheers,
    Mike
    Yes please. I'm probably being a little over cautious but there are a lot of changes in the next version and it would be a lot of work dealing with 50+ users who have screwed up HS3 systems.

    Drop me an email and I'll send you the latest version.

    Paul..

    Leave a comment:


  • sooty
    replied
    Originally posted by The Profit View Post
    Paul, PHLocation2 no longer requires resetting/reauthorizing Apple devices every few months, correct?


    Sent from my iPad using Tapatalk
    It shouldn't, but I can't say for sure because I've not fully tested it for an extended period.

    Paul..

    Leave a comment:


  • sooty
    replied
    Originally posted by mitchmitchell1616 View Post
    Paul,

    Will you provide an api/http interface to let another app (like tasker) define a new known location? I'd like to be able to create a tasker task I could trigger to add my current location as a known location to Phlocation2 so I could easily "mark" locations I visit frequently when I'm there. I could set this up on my wife's phone so she could do this as she travels for her business.

    Thanks!

    Mitch

    Sent from my SM-N950U using Tapatalk
    Actually the code to do this is already in but not enabled. I've now enabled it so it will be in the next version.

    The url format will be
    PHP Code:
    ../phl2api?dtype=CD&type=KL&enabled={0/1}&name={NewLocationName}&lat={LocationLatitude}&lon={Locat i onLongitude}&radius={Radius
    The parameters should be self explanatory but if not:
    enabled {0=No 1=Yes}
    name {The name you want to give the new location} See note below
    lat {Latitude in decimal degrees}
    lon {Longitude in decimal degrees}
    radius {Radius in whatever units you are using miles or kilometers}

    Note:
    If the passed name already exists in the collection of known locations, the new location name will be appended with " - YYYYMMDDhhmmss"

    Paul..

    Leave a comment:


  • The Profit
    replied
    Paul, PHLocation2 no longer requires resetting/reauthorizing Apple devices every few months, correct?


    Sent from my iPad using Tapatalk

    Leave a comment:


  • mikesnook
    replied
    Originally posted by sooty View Post
    Quick Update as I've been quiet on the updates front for a day or two.

    Due to a fundamental design flaw on my part its taken rather longer than anticipated to fix the issue with triggers not working when the user device was within more than 1 known location (i.e. overlapping known locations).

    I've been testing the fix here and it does now appear to be working as expected so I'll be sending it to Randy for further testing tomorrow and hopefully there will be an update for all soon after.

    As users of both V1 and V2 will know, unlike V1, V2 does not have HS devices for the known locations and instead uses triggers and conditions. When making this change I had totally neglected to cater for the fact that a device could be within more than 1 known location at the same time.

    There is a slight caveat with the next version in that the "Current Location" device cannot be used reliably to detect an "At Home" status as it will have an additional "Multiple Locations" status to reflect a user being in more than 1 known location.

    Distance to home will still be reported in a device and of course the "Enters Location" trigger and "At Location" condition can be used in events.

    Paul..
    Paul, if it would help i can also test the new version with the overlapping locations, i noticed the issue a few days back. I'm just testing PHL2 currently so wont be a big deal if something else breaks as a result, PHL1 is taking care of my location based automation currently. No worries if not, i will happily wait until you make the update available to everyone.

    Cheers,
    Mike

    Leave a comment:


  • mitchmitchell1616
    replied
    I was thinking of Known Locations but I will check out the Custom Fence option.

    Leave a comment:


  • simplextech
    replied
    Originally posted by mitchmitchell1616 View Post
    Paul,

    Will you provide an api/http interface to let another app (like tasker) define a new known location? I'd like to be able to create a tasker task I could trigger to add my current location as a known location to Phlocation2 so I could easily "mark" locations I visit frequently when I'm there. I could set this up on my wife's phone so she could do this as she travels for her business.

    Thanks!

    Mitch

    Sent from my SM-N950U using Tapatalk
    You can do this now using the Custom Fence option. I use this for creating/updating geofences from Simplex Locate today. Or do you want it to create the FULL "Known Location" details and not just a device of the Location name? I jumped too soon and went and looked at Known locations again in the plugin.

    Leave a comment:


  • mitchmitchell1616
    replied
    Originally posted by sooty View Post
    Quick Update as I've been quiet on the updates front for a day or two.

    Due to a fundamental design flaw on my part its taken rather longer than anticipated to fix the issue with triggers not working when the user device was within more than 1 known location (i.e. overlapping known locations).

    I've been testing the fix here and it does now appear to be working as expected so I'll be sending it to Randy for further testing tomorrow and hopefully there will be an update for all soon after.

    As users of both V1 and V2 will know, unlike V1, V2 does not have HS devices for the known locations and instead uses triggers and conditions. When making this change I had totally neglected to cater for the fact that a device could be within more than 1 known location at the same time.

    There is a slight caveat with the next version in that the "Current Location" device cannot be used reliably to detect an "At Home" status as it will have an additional "Multiple Locations" status to reflect a user being in more than 1 known location.

    Distance to home will still be reported in a device and of course the "Enters Location" trigger and "At Location" condition can be used in events.

    Paul..
    Paul,

    Will you provide an api/http interface to let another app (like tasker) define a new known location? I'd like to be able to create a tasker task I could trigger to add my current location as a known location to Phlocation2 so I could easily "mark" locations I visit frequently when I'm there. I could set this up on my wife's phone so she could do this as she travels for her business.

    Thanks!

    Mitch

    Sent from my SM-N950U using Tapatalk

    Leave a comment:


  • sooty
    replied
    Quick Update as I've been quiet on the updates front for a day or two.

    Due to a fundamental design flaw on my part its taken rather longer than anticipated to fix the issue with triggers not working when the user device was within more than 1 known location (i.e. overlapping known locations).

    I've been testing the fix here and it does now appear to be working as expected so I'll be sending it to Randy for further testing tomorrow and hopefully there will be an update for all soon after.

    As users of both V1 and V2 will know, unlike V1, V2 does not have HS devices for the known locations and instead uses triggers and conditions. When making this change I had totally neglected to cater for the fact that a device could be within more than 1 known location at the same time.

    There is a slight caveat with the next version in that the "Current Location" device cannot be used reliably to detect an "At Home" status as it will have an additional "Multiple Locations" status to reflect a user being in more than 1 known location.

    Distance to home will still be reported in a device and of course the "Enters Location" trigger and "At Location" condition can be used in events.

    Paul..

    Leave a comment:


  • Spudjr
    replied
    Thankyou!

    Leave a comment:


  • randy
    replied
    Originally posted by Spudjr View Post
    In my devices I see "Primary RG provider not set" googled galored and cant find anything. I gather it is some service to show detail about location? Where is this set and what is it set to. Thanks
    RG stands for Reverse Geocode. Set it up on the configuration API management page.

    Click image for larger version

Name:	Capture1.PNG
Views:	22
Size:	68.4 KB
ID:	1277577

    Leave a comment:


  • Spudjr
    replied
    In my devices I see "Primary RG provider not set" googled galored and cant find anything. I gather it is some service to show detail about location? Where is this set and what is it set to. Thanks

    Leave a comment:


  • racerfern
    replied
    rprade I "think" I found part of my issue with not seeing enough data points. Since my internet and TV provider is Optimum, my phone is set so it switches to WiFi mode when it sees an optimum wifi hotspot. They're everywhere so when it connects it switches to 30 minutes logging. I disabled Wifi polling in BK and will see if things improve.

    Leave a comment:


  • Spudjr
    replied
    Thanks, found it under if device changes. Was only looking at phlocation2 Still learning here but having fun

    Leave a comment:


  • sparkman
    replied
    Originally posted by Spudjr View Post
    What Did I Miss
    PHL2 working great with ICloud account and geofencing
    With Geofancy I have it send info based on a location marker in the program. In HS3 shows just fine whether I an in or outside of the fence or outside but cant use this info as triggers. What did I miss?

    Your events should use the devices created for each Geofency fence as the triggers.

    Leave a comment:

Working...
X