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
    Gaurave, question I was able to successfully get your example working, but I wondering how your utilizing your example? The Pushover is going to your phone so if your not home who is verbally triggering your Google home? I would have thought that it would be better to send the pushover to a tablet or some other device within the home when someone in the home triggers Google home to enquire your where abouts? Am I missing something? Don't get me wrong I really like your example (don't stop sharing) so you'll have to indulge my simpleton questions as they help get my head around new concepts. Mike

    Leave a comment:


  • MNB
    replied
    The SlDist to home when changed to 3 displays the same as Nearest Location. Observation why can't I also change the Nearest Location decimal place to 2? I know that when converting a 5 meters accuracy = 16.40 feet so if one was looking to track down to that level a 3 digit mile would be needed, but for the majority of users I would wouldn't think would care, any opinions out there? Mike

    Leave a comment:


  • sooty
    replied
    Originally posted by MNB View Post
    Paul, two questions:
    1) Whilst Polling of my iCloud account I've noticed that when I select the Poll button that not all PHL devices update, in fact only one device updated with same timestamp is this normal also?

    2) I noticed a slight discrepancy between my PHL NearestLocation device value of (0.004 mi) and PHL SIDistToHome device which has a value of (0 Miles) I would have expected them to be the same as my PHL Fix Accuracy is 5 Meters. Also I notice that format of the unit measurement for PHL SIDistToHome, PHL Driving Distance are all "Miles" whilst PHL NearestLocation is "mi"? Mike
    1. The design is that it should only update the location data (lat, lon, accuracy etc) if the location has changed. (Min dist to move set for that device has been exceeded).
    If it hasn't moved it should still update the other devices like battery level and charging state etc but only if they have changed.

    2. Not in front of the code right now but I think the difference will be due to the decimal places. The nearest known location distance shown in brackets after the name is to 3 decimal places and the SL dist to home is only 2. If you open the SL dist to home device and look on the Advanced tab, does it show the same value (or thereabouts)?

    Try changing the decimal places on the Status / Graphics tab for the SL dist to home device to 3 and see if they then match.

    Paul..

    Leave a comment:


  • MNB
    replied
    Paul, two questions:
    1) Whilst Polling of my iCloud account I've noticed that when I select the Poll button that not all PHL devices update, in fact only one device updated with same timestamp is this normal also?

    2) I noticed a slight discrepancy between my PHL NearestLocation device value of (0.004 mi) and PHL SIDistToHome device which has a value of (0 Miles) I would have expected them to be the same as my PHL Fix Accuracy is 5 Meters. Also I notice that format of the unit measurement for PHL SIDistToHome, PHL Driving Distance are all "Miles" whilst PHL NearestLocation is "mi"? Mike

    Leave a comment:


  • dillalade
    replied
    Originally posted by MNB View Post
    Gaurave, "U Da Man!" many thanxs for the comeback and education I occasionally use Pushover for a few events but I really liked your example which now makes me want to do a little more "Thinking outside the box" now that I have PHL2 up and running on all cylinder.. isn't kind of late your time? Mike
    No problem man.
    I'm a geek by trade so I have the foresight to visualise what can be achieved given the tools at hand.

    Again I'm only about 48hours in with this PL2 as well as Homeseer Variable replacements.

    It's all coming together.
    The magic is coming alive

    Sent from my Phone 2 using Tapatalk

    Leave a comment:


  • MNB
    replied
    Gaurave, I tried your extract and replaced the DSR with my Long/Lat device but something seems amiss I get to google map but I only see the Long value with a "no result found for your search which is obvious as it doesn't have the second value.. More clues please

    Randy, looking at both values (URL address and Log/Lat device) they seem to match so am I missing something, I will try using the URL also since I'm in the learning mode, Mike

    UPDATE: Using the URL address device produced a working Map which is good

    Leave a comment:


  • MNB
    replied
    Originally posted by dillalade View Post

    Extract of Message Body:
    Dad is <a href="http://maps.google.com/?q=$$DSR:XXX:,$$DSR:XXX:">Here</a>

    Where those DSR "values" return Longitude, Latitude.

    Within the Pushover message it appears in Blue highlight to depict a hyperlink (see Original Post above) - once clicked from within the Pushover message it opens up in Google Maps App on my droid. Beautifully.

    Thinking outside the box really comes into it's own with HS3 & these powerful Plugins.
    Gaurave, "U Da Man!" many thanxs for the comeback and education I occasionally use Pushover for a few events but I really liked your example which now makes me want to do a little more "Thinking outside the box" now that I have PHL2 up and running on all cylinder.. isn't kind of late your time? Mike

    Leave a comment:


  • dillalade
    replied
    Originally posted by rprade View Post
    You can also use the replacement variable for the “Address URL” child that PHL provides.
    I tried this but it's not as accurate as Long and Latitude in my tests, which is near enough pin point. I trialled with majority of the child values.

    Sent from my Phone 2 using Tapatalk

    Leave a comment:


  • rprade
    replied
    You can also use the replacement variable for the “Address URL” child that PHL provides.

    Leave a comment:


  • dillalade
    replied
    Originally posted by MNB View Post
    Gaurave, thanxs for sharing your example above, slow question within the message body how are you using to pull the current values for dad is Here and the remaining items I'm assuming your using $$DSR:XXX: values?

    I've confirm that it is in deed Replacement Values but in particular what does the Dad is Here highlight do? Mike



    Extract of Message Body:
    Dad is <a href="http://maps.google.com/?q=$$DSR:XXX:,$$DSR:XXX:">Here</a>

    Where those DSR "values" return Longitude, Latitude.

    Within the Pushover message it appears in Blue highlight to depict a hyperlink (see Original Post above) - once clicked from within the Pushover message it opens up in Google Maps App on my droid. Beautifully.

    Thinking outside the box really comes into it's own with HS3 & these powerful Plugins.

    Leave a comment:


  • MNB
    replied
    Gaurave, thanxs for sharing your example above, slow question within the message body how are you using to pull the current values for dad is Here and the remaining items I'm assuming your using $$DSR:XXX: values?

    I've confirm that it is in deed Replacement Values but in particular what does the Dad is Here highlight do? Mike

    Leave a comment:


  • dillalade
    replied
    Good morning from sunny England,

    Firstly I've been using HS3 for the passed 5 years, albeit for relatively novice situations.

    However the passed week I've stepped my game up severely.

    This plugin took me all over 24hours to read, comprehend, deploy, test & perfect across 3 devices/users.

    Wanted to use this for Home occupancy & more, it's doing the job well.

    Prior to this form of fencing I was using IFTT Location Fence to turn On/Off a Virtual Device in HS3 for my occupancy.

    I still have IFTT recipe invoked.

    With pushover messages from both Entered/Excited triggers for both PL2 & IFTT methods.

    This way over the next week or two I can perhaps determine if one method is faster then the other.

    So far in only my 24hours usage I can't say much other then IFTT seems to trigger it's action 5-10 seconds faster then PL2. This could be down to the polling interval I have set in PL2 which is set at 2minutes.

    Honestly though what a superb plugin.
    Moreso what a great write up in the user guide.

    Example of what I get sent to Pushover, when I ask Google Home to: "Turn on Dad's Location" which is a Virtual device...

    Which will invoke an Event to create a static image of his location and uses various PHLocation Values to provide a verbose of his status. As well as supply a HREF hyperlink html referencing the locatoion (which pulls up Google maps - niceeeeeee)
    The same details are Announced out aloud over my Google Home with her native tongue (using the amazing Chromecast plugin.)



    Leave a comment:


  • sooty
    replied
    Originally posted by MNB View Post

    I figure I would add the actual screen captures to show what I'm seeing. The first screen is when I select "All users" and the second screen is when I select "History". Mike
    I'm not 100% confident because it isn't an issue here but it could be the apostrophe in "Mike's iPhone X" that's causing it.
    Can you try removing the apostrophe from the root device's name, hit the Save Changes button and try running the map again.

    If it still doesn't work then can you:
    1. Try running a history map for Mike's iPhone X as per your screenshot 2.
    2. Note down the HS3 deviceRef (numerical value) for Mike's iPhone X.
    3. Got to \HS3\html\PHLocation2\Maps and look for a file named xxxx_history.html where xxxx is the numerical value from stage 2 above.

    If that file exists and the timestamp matches up with when you generated the map in stage 1, please zip up and email or pm me the file.

    If the file doesn't exist or has an old timestamp (e.g. from before you generated the map in stage 1 above) and there are no errors in the HS3 log then I will need to send you a debug version of the plug-in so we can try and establish the cause.

    Paul..

    Leave a comment:


  • MNB
    replied
    Another Map question when I use PHL2 Map and I select "All Users" I get a map of my current location when I select "History" I get a blue text "Showing history for Mike's iPhoneX (26 points)'" but the previous map is replaced with a white map area, I was expecting the previous map with 26 bread crumb being displayed what am I missing? Mike
    I figure I would add the actual screen captures to show what I'm seeing. The first screen is when I select "All users" and the second screen is when I select "History". Mike
    Attached Files

    Leave a comment:


  • MNB
    replied
    Originally posted by sooty View Post

    If its showing the blue text "26 points" then it should be displaying the map.

    1. Which dynamic map provider do you have set?
    2. On the Config>Mapping tab Dynamic Map (Built-In Viewer) Settings what is the Initial Max Zoom Level set to?

    Paul..
    Sorry for taking a few days to respond.. was out of commission with Flu. I attached a image of both my API and Mapping tab to answer your question. Mike

    Attached Files

    Leave a comment:

Working...
X