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 racerfern View Post
    I use Android exclusively and have never set anything of iCloud. Why are the following lines in the startup routine?
    Feb-02 16:44:14 PHLocation2 (LoadConfigSettings) Using stored iCloud client ID: 68604395-C983-424C-8478-735065A58ECE
    Feb-02 16:44:14 PHLocation2 (LoadConfigSettings) iCloud retry time 5000 ms.
    Feb-02 16:44:14 PHLocation2 (LoadPiSettings) iCloud give up after 5 tries.
    Feb-02 16:44:14 PHLocation2 (LoadPiSettings) iCloud max retries set to 6
    These settings are present in all installations regardless if iCloud is used or not on the premise that it might be used.

    You're not the first to ask that question so I'll remove those entries from the start up logging.

    Paul..

    Leave a comment:


  • sooty
    replied
    Originally posted by will40 View Post
    I changed my PHL V1 backtiude parameters to meet new PHL V2 with new device REF, success code, URL, etc and have successful messages on my device. Unfortunately my devices are not updating and my HS3. log is rejecting the data. I double checked device ID. Am I missing something? Thanks

    Click image for larger version

Name:	PHL v2 BK log.JPG
Views:	31
Size:	29.4 KB
ID:	1281673
    Can you disable then re-enable the plug-in from the HS3 manage plug-ins page, then email or PM me all the log entries from the plug-in start-up. There will be 2 entries (Startup) Begins at.... and (Startup) Finished at.... to help identify the entries I need to see.

    Paul..

    Leave a comment:


  • racerfern
    replied
    I use Android exclusively and have never set anything of iCloud. Why are the following lines in the startup routine?
    Feb-02 16:44:14 PHLocation2 (LoadConfigSettings) Using stored iCloud client ID: 68604395-C983-424C-8478-735065A58ECE
    Feb-02 16:44:14 PHLocation2 (LoadConfigSettings) iCloud retry time 5000 ms.
    Feb-02 16:44:14 PHLocation2 (LoadPiSettings) iCloud give up after 5 tries.
    Feb-02 16:44:14 PHLocation2 (LoadPiSettings) iCloud max retries set to 6

    Leave a comment:


  • will40
    replied
    I changed my PHL V1 backtiude parameters to meet new PHL V2 with new device REF, success code, URL, etc and have successful messages on my device. Unfortunately my devices are not updating and my HS3. log is rejecting the data. I double checked device ID. Am I missing something? Thanks

    Click image for larger version

Name:	PHL v2 BK log.JPG
Views:	31
Size:	29.4 KB
ID:	1281673

    Attached Files

    Leave a comment:


  • w.vuyk
    replied
    The driving distance devices for all users (two in this case) have never been updated. When I started connecting with icloud users I have seen some errors, which were pointing to the fact there was no secondary provider confiugered. That is where I added MapQuest to the providers. Since then I did not see any errors in the log, but also no updates on the devices.

    Will send you an email on this

    Attached Files

    Leave a comment:


  • sooty
    replied
    Originally posted by w.vuyk View Post
    I am trying here to get driving distance to home working, but so far there has not been any update on the devices for this. I have configured google as primary driving data provider, which did not work and I have also configured MapQuest as primary for some time now without success

    Any ideas how I get this working? Am using the same in the old plugin to switch the heater on when I am driving home and will be there in 30 minutes or so... kind of miss that now
    Driving distance/time to home is only done if the user is not within the home location otherwise both are set to 0.

    Have the driving distance and time devices ever updated for that user?

    If you have configured a distance data provider then ensure that the suppress API error messages is switched OFF then if it fails to get the distance you will see an error message in the HS log.

    If this fails to show anything up, drop me an email and I'll send you a version with some specific debugging for the driving lookups.

    Paul..

    Leave a comment:


  • sooty
    replied
    Originally posted by Timon View Post
    Questions:

    I have the Dynamic map provider set to Google and the API key is set, same as I used for PHLocate, but when PH2 starts it still shows "None" in the log and the making page shows "Please specify a dynamic map provider on the API's configuration tab". I'm I missing something?
    The issue with API preferences not sticking should be resolved in version 3.0.0.54.
    See release notes thread for download link.

    Paul..

    Leave a comment:


  • w.vuyk
    replied
    I am trying here to get driving distance to home working, but so far there has not been any update on the devices for this. I have configured google as primary driving data provider, which did not work and I have also configured MapQuest as primary for some time now without success

    Any ideas how I get this working? Am using the same in the old plugin to switch the heater on when I am driving home and will be there in 30 minutes or so... kind of miss that now

    Leave a comment:


  • sooty
    replied
    Originally posted by Timon View Post
    Questions:

    I have the Dynamic map provider set to Google and the API key is set, same as I used for PHLocate, but when PH2 starts it still shows "None" in the log and the making page shows "Please specify a dynamic map provider on the API's configuration tab". I'm I missing something?
    The API's tab on the configuration page shouldn't let you choose invalid combinations but I've identified a couple of issues where it will allow invalid choices.

    When the plug-in starts up, it checks the API choices again. If it finds an invalid combination (e.g. missing API key) it will set the provider(s) to none or in the case there is a free (no API key required) provider for that data type it will set that.

    I'll go through all the code in both sections today and fix the issues.

    Paul..

    Leave a comment:


  • Timon
    replied
    Questions:

    I have the Dynamic map provider set to Google and the API key is set, same as I used for PHLocate, but when PH2 starts it still shows "None" in the log and the making page shows "Please specify a dynamic map provider on the API's configuration tab". I'm I missing something?

    Leave a comment:


  • sooty
    replied
    Originally posted by MNB View Post
    Paul, I've set two events one for Dynamic Mapping (after your example) and Static Mapping, I'm using .png extension for both files but am only getting a static file with the proper png extension the dymaic has a filename.png within the Name field but the type is HTML file am I missing something?

    PS thanxs a lot the additional feature are great now to figure out what to do... Mike
    Don't add extensions if overriding the file name.
    Dynamic maps are output as html files which are designed to be embedded in other web pages etc. These can then be navigated in a browser etc.
    Static maps are just an image snapshot and can be used for example in HSTouch etc.

    Paul..

    Leave a comment:


  • sooty
    replied
    I've uploaded 3.0.0.53 which fixes the issue with the path and file names for static maps.

    NOTES:
    Static maps are image files and will have a .png extension.
    Dynamic maps are html files and will have a .html extension.
    If you don't override the path, then files for both static and dynamic maps will be written to the default path of \HS3\html\PHLocation2\Maps\
    If overriding the path then you must enter the trailing slash e.g. C:\MyMaps\
    If overriding the file name then DO NOT add the extension to the file name.

    For a static map:
    Path: \\ds213\maps\ FileName: MyTestStaticMap
    will produce a file \\ds213\maps\MyTestStaticMap.png

    For a dynamic map:
    Path: \\ds213\maps\ FileName: MyTestDynamicMap
    will produce a file \\ds213\maps\MyTestDynamicMap.html

    Either option can be used without affecting the other. So the file name can be overridden leaving the path empty in which case it will save the file in the default location.

    Paul..

    Leave a comment:


  • MNB
    replied
    Paul, I've set two events one for Dynamic Mapping (after your example) and Static Mapping, I'm using .png extension for both files but am only getting a static file with the proper png extension the dymaic has a filename.png within the Name field but the type is HTML file am I missing something?

    PS thanxs a lot the additional feature are great now to figure out what to do... Mike

    Leave a comment:


  • sooty
    replied
    There is an issue with the custom path / file with static maps.

    Stand by for an update.

    Paul..

    Leave a comment:


  • mikesnook
    replied
    Originally posted by drparker151 View Post

    It combines the two fields, make sure to end the path with a slash. forwards or backwards slash is based on your OS. I'm on linux so my path is:
    /usr/local/HomeSeer/html/maps/ and file name is $YMD$-drew.png

    I had to create the maps directory

    EDIT: linux is case sensitive as well.
    Understood, however the following event produces no image at all :

    Folder: C:\Program Files (x86)\HomeSeer HS3\html\PHLocation2\Maps\
    File: test.png

    Tried quotes and no quotes around the folder string.

    It installed on a windows box.

    PS in the .vb script i use currently to generate the static maps I have to use this path, linux format on a windows box: /html/PHLocation2/Maps/. i've also tried this in the Phlocation static map event action and it didnt work.

    Thanks,
    Mike

    Leave a comment:

Working...
X