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 goldriver View Post
    Hi All

    Just decided to co-install V2 on my system but I have an issue I can't figure out. Once installed, the plugin keeps disconnecting:

    févr.-10 15:15:08 Info Plugin PHLocation2 with instance: has disconnected
    févr.-10 15:15:06 PHLocation2 (InitHomeLocation) Home location not found creating from HS3 location data.
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Distance data provider is set to Pri:None Alt:None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Static map provider is set to None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Dynamic map provider is set to None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Links map provider is set to None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Elevation Data provider is set to Pri:None Alt:None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Reverse Geocode provider is set to Pri:None Alt:None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) plug-in is working in Imperial units.
    févr.-10 15:15:06 PHLocation2 (Startup) Main database found. Version:7
    févr.-10 15:15:06 PHLocation2 (Startup) ImagePath = images\PHLocation2\
    févr.-10 15:15:06 PHLocation2 (Startup) LogPath = html\PHLocation2\Logs\
    févr.-10 15:15:06 PHLocation2 (Startup) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\PHLocation2.db3
    févr.-10 15:15:06 PHLocation2 (Startup) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\
    févr.-10 15:15:06 PHLocation2 (Startup) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
    févr.-10 15:15:06 PHLocation2 (Startup) UTC offset secs: -18000
    févr.-10 15:15:06 PHLocation2 (Startup) System decimal separator used is [,]
    févr.-10 15:15:06 PHLocation2 (Startup) Detected OS is Windows version 6.2.9200.0
    févr.-10 15:15:06 PHLocation2 (Startup) Plug-in version is: 3.0.0.57
    févr.-10 15:15:06 PHLocation2 (Startup) Begins at 15:15:06.825
    févr.-10 15:15:06 Starting Plug-In Plugin PHLocation2 started successfully in 4 milliseconds
    févr.-10 15:15:06 Starting Plug-In Initializing plugin PHLocation2 ...
    févr.-10 15:15:06 Starting Plug-In PHLocation2 loaded in 15098 milliseconds
    févr.-10 15:14:51 Info Plugin PHLocation2 has connected. IP:127.0.0.1:53604
    févr.-10 15:14:51 Warning I/O interface PHLocation2 is down, executable is not running, restarting ...


    I guess the problem is around the PHLocation2 (InitHomeLocation) Home location not found creating from HS3 location data but looking at my setup, my home location is set.

    Any idea anyone ?

    thanks


    One information that might help, I tried to manually start the .exe from dos prompt and I could see the following error (45.5 being my Latitude)

    C:\Program Files (x86)\HomeSeer HS3>hspi_phlocation2
    Connecting to server at 127.0.0.1...
    Connected, waiting to be initialized...
    (Startup) Begins at 16:21:33.552
    (Startup) Plug-in version is: 3.0.0.57
    (Startup) Detected OS is Windows version 6.2.9200.0
    (Startup) System decimal separator used is [,]
    (Startup) UTC offset secs: -18000
    (Startup) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
    (Startup) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\
    (Startup) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\PHLocation2.db3
    (Startup) LogPath = html\PHLocation2\Logs\
    (Startup) ImagePath = images\PHLocation2\
    (Startup) Main database found. Version:7
    (LoadConfigSettings) plug-in is working in Imperial units.
    (LoadConfigSettings) Reverse Geocode provider is set to Pri:None Alt:None
    (LoadConfigSettings) Elevation Data provider is set to Pri:None Alt:None
    (LoadConfigSettings) Links map provider is set to None
    (LoadConfigSettings) Dynamic map provider is set to None
    (LoadConfigSettings) Static map provider is set to None
    (LoadConfigSettings) Distance data provider is set to Pri:None Alt:None
    (InitHomeLocation) Home location not found creating from HS3 location data.

    Exception non gérée : System.InvalidCastException: La conversion de la chaîne "45.5" en type 'Double' n'est pas valide. ---> System.FormatException: Le format de la chaîne d'entrée est incorrect.
    à Microsoft.VisualBasic.CompilerServices.Conversions.ParseDoub le(String Value, NumberFormatInfo NumberFormat)
    à Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble( String Value, NumberFormatInfo NumberFormat)
    --- Fin de la trace de la pile d'exception interne ---
    à Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble( String Value, NumberFormatInfo NumberFormat)
    à o.a(Boolean A_0)
    à HSPI_PHLocation2.HSPI.StartPlugin()
    à HSPI_PHLocation2.HSPI.a(Object A_0)
    à System.Threading.QueueUserWorkItemCallback.WaitCallback_Cont ext(Object state)
    à System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    à System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem()
    à System.Threading.ThreadPoolWorkQueue.Dispatch()
    à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback ()

    Click image for larger version Name:	phloc2.JPG Views:	1 Size:	11.4 KB ID:	1283862
    I can see what the problem is.

    On first run the plug-in will attempt to set the location from HS3 as the home location. Your system is set to use "," as the decimal separator but the latitude and longitude in your HS3 settings are specified with "." which is causing it to fail when trying to convert 45.5 or -73.61 into a decimal.

    I didn't cater for this but I will put in a fix for it now. In the meantime, send me a PM or email and I'll explain how to workaround the issue.

    Paul..

    Leave a comment:


  • goldriver
    replied
    Hi All

    Just decided to co-install V2 on my system but I have an issue I can't figure out. Once installed, the plugin keeps disconnecting:

    févr.-10 15:15:08 Info Plugin PHLocation2 with instance: has disconnected
    févr.-10 15:15:06 PHLocation2 (InitHomeLocation) Home location not found creating from HS3 location data.
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Distance data provider is set to Pri:None Alt:None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Static map provider is set to None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Dynamic map provider is set to None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Links map provider is set to None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Elevation Data provider is set to Pri:None Alt:None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) Reverse Geocode provider is set to Pri:None Alt:None
    févr.-10 15:15:06 PHLocation2 (LoadConfigSettings) plug-in is working in Imperial units.
    févr.-10 15:15:06 PHLocation2 (Startup) Main database found. Version:7
    févr.-10 15:15:06 PHLocation2 (Startup) ImagePath = images\PHLocation2\
    févr.-10 15:15:06 PHLocation2 (Startup) LogPath = html\PHLocation2\Logs\
    févr.-10 15:15:06 PHLocation2 (Startup) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\PHLocation2.db3
    févr.-10 15:15:06 PHLocation2 (Startup) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\
    févr.-10 15:15:06 PHLocation2 (Startup) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
    févr.-10 15:15:06 PHLocation2 (Startup) UTC offset secs: -18000
    févr.-10 15:15:06 PHLocation2 (Startup) System decimal separator used is [,]
    févr.-10 15:15:06 PHLocation2 (Startup) Detected OS is Windows version 6.2.9200.0
    févr.-10 15:15:06 PHLocation2 (Startup) Plug-in version is: 3.0.0.57
    févr.-10 15:15:06 PHLocation2 (Startup) Begins at 15:15:06.825
    févr.-10 15:15:06 Starting Plug-In Plugin PHLocation2 started successfully in 4 milliseconds
    févr.-10 15:15:06 Starting Plug-In Initializing plugin PHLocation2 ...
    févr.-10 15:15:06 Starting Plug-In PHLocation2 loaded in 15098 milliseconds
    févr.-10 15:14:51 Info Plugin PHLocation2 has connected. IP:127.0.0.1:53604
    févr.-10 15:14:51 Warning I/O interface PHLocation2 is down, executable is not running, restarting ...


    I guess the problem is around the PHLocation2 (InitHomeLocation) Home location not found creating from HS3 location data but looking at my setup, my home location is set.

    Any idea anyone ?

    thanks


    One information that might help, I tried to manually start the .exe from dos prompt and I could see the following error (45.5 being my Latitude)

    C:\Program Files (x86)\HomeSeer HS3>hspi_phlocation2
    Connecting to server at 127.0.0.1...
    Connected, waiting to be initialized...
    (Startup) Begins at 16:21:33.552
    (Startup) Plug-in version is: 3.0.0.57
    (Startup) Detected OS is Windows version 6.2.9200.0
    (Startup) System decimal separator used is [,]
    (Startup) UTC offset secs: -18000
    (Startup) HSAppPath = C:\Program Files (x86)\HomeSeer HS3
    (Startup) BinPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\
    (Startup) DataPath = C:\Program Files (x86)\HomeSeer HS3\Data\PHLocation2\PHLocation2.db3
    (Startup) LogPath = html\PHLocation2\Logs\
    (Startup) ImagePath = images\PHLocation2\
    (Startup) Main database found. Version:7
    (LoadConfigSettings) plug-in is working in Imperial units.
    (LoadConfigSettings) Reverse Geocode provider is set to Pri:None Alt:None
    (LoadConfigSettings) Elevation Data provider is set to Pri:None Alt:None
    (LoadConfigSettings) Links map provider is set to None
    (LoadConfigSettings) Dynamic map provider is set to None
    (LoadConfigSettings) Static map provider is set to None
    (LoadConfigSettings) Distance data provider is set to Pri:None Alt:None
    (InitHomeLocation) Home location not found creating from HS3 location data.

    Exception non gérée : System.InvalidCastException: La conversion de la chaîne "45.5" en type 'Double' n'est pas valide. ---> System.FormatException: Le format de la chaîne d'entrée est incorrect.
    à Microsoft.VisualBasic.CompilerServices.Conversions.ParseDoub le(String Value, NumberFormatInfo NumberFormat)
    à Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble( String Value, NumberFormatInfo NumberFormat)
    --- Fin de la trace de la pile d'exception interne ---
    à Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble( String Value, NumberFormatInfo NumberFormat)
    à o.a(Boolean A_0)
    à HSPI_PHLocation2.HSPI.StartPlugin()
    à HSPI_PHLocation2.HSPI.a(Object A_0)
    à System.Threading.QueueUserWorkItemCallback.WaitCallback_Cont ext(Object state)
    à System.Threading.ExecutionContext.RunInternal(ExecutionConte xt executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    à System.Threading.QueueUserWorkItemCallback.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem()
    à System.Threading.ThreadPoolWorkQueue.Dispatch()
    à System.Threading._ThreadPoolWaitCallback.PerformWaitCallback ()

    Click image for larger version  Name:	phloc2.JPG Views:	1 Size:	11.4 KB ID:	1283862

    Leave a comment:


  • sooty
    replied
    I've uploaded version 3.0.0.57. Download link is in the release notes post.

    The only change in this version is the addition of a Message Panel HS device.

    Users of V1 of the plug-in will be familiar with the message panel although configuration is very slightly different in V2.
    I haven't updated the user guide as yet but I'll have a go at explaining how it works here.

    On the Other tab within the plug-in main config page there is a new Message Panel section with 3 options.

    1. Use plug-in's built in message panel.
    This just switches on/off the entire message panel feature. When switching on for the first time it will create a new message panel HS3 device.
    NOTE: Switching off the message panel option will NOT delete the HS3 device.

    2. Generate a message when new fence devices are added.
    If enabled then a new message will be added whenever the plug-in automatically creates a new geofence child device.

    3. Generate messages for fence change events by default.
    Each individual geofence child device can be configured to generate messages on entry and / or exit events. If this option is enabled, then any automatically added geofence child devices will be set up with both entry and exit message events enabled.

    In addition to geofencing messages the message panel can also be configured to generate messages whenever a position based user transitions a known location.
    There is a checkbox on each known location to enable messages.
    There is a checkbox in the general section for each position based user to enable messages.

    Currently the option is only on/off per user and/or known place. There is no option to have messages only for example exit events.

    Paul..

    Leave a comment:


  • MNB
    replied
    Well I'm cooking with gas! (dangerous).. I have question in regards in getting a static map to display my current Home location along with two concentric GeoFency fences pray how does one get them to both to be displayed? thanxs in advance Mike

    Leave a comment:


  • sparkman
    replied
    Originally posted by mwaite View Post

    Nevermind, I had missed the reply to log into iCloud.com separately.
    Yes, that’s what fixed it.

    Leave a comment:


  • mwaite
    replied
    Originally posted by mwaite View Post

    Did you get this sorted out? I'm experiencing the same thing.
    Nevermind, I had missed the reply to log into iCloud.com separately.

    Leave a comment:


  • mwaite
    replied
    Originally posted by sparkman View Post
    I'm running into an issue with 2FA on adding an iPhone. I was able to add my phone fine, but for my wife's phone, I get this message:

    Code:
    (Validate2faCode) SendCode Error for Ref:7955 Code=400 Text=Exception: The remote server returned an error: (412)
    Any ideas?

    Thanks
    Al
    Did you get this sorted out? I'm experiencing the same thing.

    Leave a comment:


  • racerfern
    replied
    Hmm, I have two android phones and both were fine until this morning. One phone has backitude, the other egizone. I made no changes, but neither show any history for this morning's commute. The phones appear to be doing their job. Thoughts?

    Leave a comment:


  • sooty
    replied
    Originally posted by MNB View Post
    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
    For various reasons, the Nearest Location (n.nnn) device status string is created internally and doesn't use HS device value + Status / Graphic pairs. If folks prefer, I can change it so that everything uses 2 decimal places.

    Paul..

    Leave a comment:


  • 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:

Working...
X