iPhoneLocator: Alternate Map Servers
-
This is a part of the plugin I did not touch: the iCloud API. Not sure what the error could be but definitely a connection with iCloud. Just to be sure, the device is seen and all setup right?
-
It eventually decided to work! (I did think that that was part of the original as it were. I suspect Apple just being picky.
Thanks, as ever
C
-
Annnnd finally got the maps to load properly with an extension blocking CORS
C
-
I thought I should give this a try on OpenLuup. I used iPhoneLocator on my Vera some years ago. It worked really well, but then I removed it due to the limitations in the Vera.
The problem I run into is that when I try to create credentials I do not understand how to create an "App code".
On here.com it says:
"App code credentials will continue to be supported for a few products and current Developer Portal accounts where App code credentials have already been generated for an App. New accounts will only be able to use App Code credentials for some legacy products. App code credentials are the least secure of the authentication credential types and we recommend the use of the API Key or OAuth 2.0 Token credentials instead for improved security."Either it is me missing something very obvious or here.com have changed something.
-
I suspect it's the latter.....
C
-
To close this off: It helps if your wife signs into iCloud on her phone....
C
-
In fact that wasn't it at all
iCloud knows exactly where she is
C
-
Sorry to revive an old thread. i've started moving my devices over to openLuup to see if i can just make the vera Plus i own just a zwave handler. I installed the iphone locator from the alt app store, but there seems to be no way for me to enter my google map key. i also downloaded @rafale77 iphone plugin modified for Here maps, and in the UI i still don't see where to enter the keys. am i missing something?
-
The keys are added as device variables for the plugin. on ALTUI, you just go into the variable table and paste it in the corresponding variables: APIkey, AppCode, AppID, GoogleMapKey depending on what service and plugin version you are using.
-
thanks, but that seems to be the problem, none of those variable keys are showing on my installation. mine starts at addrformat and jumps to commfailure, i've reloaded luup, hard refreshed the browser, but nothing seems to bring those variables in.
-
running AltUI v2.50.2549 and iphone locator plugin 2.43
-
You got me back looking at the code. If such is the case then it looks like you didn't install the plugin properly.
The plugin should create these variables during startup. It isn't a part of the code I actually touched. Make sure all the files from the plugin repo are present. Also the plugin version seems to be grossly old... The version I modified was 2.52.PS: Looking at the code, I can see some old mistakes from @amg0 which apparently never affected anything...
-
k, let me try to upload all again, and i will post updates here. appreciate the help!
-
I'm going to uninstall iphone locator and start from scratch. i guess my confusion is that if i pull it from the alt app store, i have two options 2.43 or 2.master. i assumed that since 2.43 was selected it was the latest version.
-
i uninstalled and installed the 2.master version and the googlemapkey shows up. When i replace all the files from @fadale77 repository, reload luup and do a hard refresh of the browser it still only shows me the googlemapkey and not the here maps details. i installed openLuup in /etc/cmh-ludl/ and i am copying the files into the /files directory in there. Not sure what else to try now?
-
Good that you already got the googlemapkey variable. Now I am not sure whether I autocreated the other keys. I think I left the instructions in the old place and it's been so long that I forgot. I may have missed adding the function to autocreate the variables. Will get back to you.
Edit: Just looked at my old code and yep they are there. Upon luup reload, if you dropped in the files from my repo, you should see the new variables. Look at the very end of this file:
Is it the branch you got your file from?
-
when i cat /etc/cmh-ludl/files/L_IPhone.lua i see the code from your repo. Just strange that it is not loading them.
function initstatus(lul_device)
lul_device = tonumber(lul_device)
UserMessage("starting version "..version.." lul_device:"..lul_device)
checkVersion(lul_device)
local delay = 2 -- delaying first refresh by x seconds
if (getParent(lul_device)==0) then
debug("initstatus("..lul_device..") startup for Root device, delay:"..delay)
getSetVariable(service, "AppID", lul_device, "")
getSetVariable(service, "AppCode", lul_device, "")
getSetVariable(service, "APIkey", lul_device, "")
getSetVariable(service, "IconURL", lul_device,defIconURL)else debug("initstatus("..lul_device..") startup for Child device, delay:"..delay) end luup.call_delay("startupDeferred", delay, tostring(lul_device))
end
-- do not delete, last line must be a CR according to MCV wiki page