iPhoneLocator: Alternate Map Servers
-
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.
-
Thanks for reporting this. I will look at the API key authentication to modify the plugin when I get a few minutes.
-
Thanks for reporting this. I will look at the API key authentication to modify the plugin when I get a few minutes.
-
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?
-
-
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...
-
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
-
logs don't really show anything that i can see as obviously wrong. i am completely stumped. ei've uninstalled everything, reinstalled, rebooted, refreshed, scratched my head, all to no avail. i definitely know it is some sort of user error on my end, i just can't seem to figure out what it is. really appreciate the attempt at help though.
-
logs don't really show anything that i can see as obviously wrong. i am completely stumped. ei've uninstalled everything, reinstalled, rebooted, refreshed, scratched my head, all to no avail. i definitely know it is some sort of user error on my end, i just can't seem to figure out what it is. really appreciate the attempt at help though.
@sebby said in iPhoneLocator: Alternate Map Servers:
i've uninstalled everything, reinstalled, rebooted, refreshed,
You really don’t have to do that... this isn’t Vera, you know.
There must be something basic here wrong. Can I see the startup log?