Closed DutchmanNL closed 7 years ago
There are no outputs form the adapter it self. All outputs are from redis/history.
Can you stop the find-my-iphone adapter on the instances Tab? Then open a shell and change to the iobroker/node_modules/iobroker.find-my-iphone directory. In there type node ./iobroker.find-my-ipone.js --force and watch the outputs on the console.
thank you looking at this issue, i executed the commands as you suggest (first stopped the instance) the console provides me following error:
root@HomeMaster:/opt/iobroker/node_modules/iobroker.find-my-iphone# node ./iobroker.find-my-ipone.js --force module.js:471 throw err; ^
Error: Cannot find module '/opt/iobroker/node_modules/iobroker.find-my-iphone/iobroker.find-my-ipone.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:389:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:504:3 root@HomeMaster:/opt/iobroker/node_modules/iobroker.find-my-iphone#
update: I adjusted the command to ensure the full path is included, this provides met following result:
root@HomeMaster:/opt/iobroker/node_modules/iobroker.find-my-iphone# node /opt/iobroker/node_modules/iobroker.find-my-iphone/find-my-iphone.js --force ICloud.prototype.request: path=login ICloud.prototype.request: statusCode=421 Misdirected Request ICloud.prototype.request: path=logout ICloud.prototype.onError: error=Misdirected Request (421) ICloud.prototype.request: statusCode=421 Misdirected Request ICloud.prototype.onError: error=Misdirected Request (421)
Misdirected Request (421). Can you login into iCloud -> find my iPhone in your browser?
Hi Soef,
Yes i can, just to ensure i did nothing from followed the steps below:
I think I found the problem. It should be fixed in version 0.2.9.
@Dutchmen: Can you please post here/forum thread if it fixes the problem?
sure will do, the issue is not solved yet.
version 0.2.9 was not provided in iobroker so i did install it from git, after installation i cannot run the adapter anymore maybe i need to force delete it first ?
reinstalled several times, issue is fixed now (at least it looks like)
still see some other issue but will report in a seperat issue post
Hi Soef,
Can we please reopen the issue its not solved sorry :)
After 1 day i have the same issue again, first initiation yesterday was OK but today no date is refresh again and using the force command results in same error as before (adapter is on version 0.2.9)
xxxx@HomeMaster:/opt/iobroker/node_modules/iobroker.find-my-iphone$ sudo node find-my-iphone.js --force [sudo] password for rafal: ICloud.prototype.request: path=login ICloud.prototype.request: statusCode=421 Misdirected Request ICloud.prototype.request: path=logout ICloud.prototype.onError: error=Misdirected Request (421) ICloud.prototype.request: statusCode=421 Misdirected Request ICloud.prototype.onError: error=Misdirected Request (421)
Adapter "find-my-iphone": 0.2.8 , installed 0.2.9
The fixed problem was that the 2 factor key was given to apple not decrypted. So it can't work.
If it runs yesterday, why does it not run anymore? The adapter hasn't changed. Are there some changes on your apple account?
btw. the adapter does not refresh the data automaticly. you have to trigger it by changing the refresh state.
I have the same issue ... installed new version, everything worked, multiple refreshs worked. Nothing changed till then,. Now no refresh is working anymore
@Apollon77
Did you try the new version 0.2.9 ? After installation yesterday i received the values for 1 time (which didnt work before). than i used the refresh button but no updates comming.
@soef
No changes at my apple account, all as is like yesterday, I also saw a value not coming (battery level) funny thing is i also have a family share (i am the family owner) and the battery level of my wife is shown
See screenshots below were you see the value has been received yesterday and last time i pushed the refresh butto in state overview:
~Dutch
Yes, 0.2.9.
If you are setting the refresh state of a device - not the one in the root - the shouldLocate flag of the request to Apple will be set. So the device will refresh its data and send it back. That can take a while. You can see it by watching the isLocating state. If it is true, the adapter is waiting for an answer.
With the refresh state in the root, all device will only send their aktual data.
it looks like the is refreshing state keeps on true forever ? I tried the refresh option for my phone and also on the root.
in both cases the value time stays on 2017-07-21 20:42:04. when using the friends/find my iphone app all looks ok, so still somehow i assume now new data is received from icloud ?
Tried:
data keeps the same no new values received :/, verified the data on find my iphone all is there. Interesting is that also the value of battery percentage is not shown, for my girlfriends phone it is but still old value
have this adapter installed for several months in beginning all looked quite OK, but now since may no new data is received.
Just made a fresh installation today, login is accepted also with 2 factor authentication but no values received.
debug:
`
`