Problème Localisation ios cloud

Hello @arcameca,

As tu bien coché l’option « activer le cron » sur l’équipement Compte iOSCloud ?
Attention, par défauut celui-ci est réglé sur 1 min donc les batteries vont se vider vite.
Je conseille de le régler sur 15 min ou 30min voir 1h

Xav

Hello @corsica19

Non tu n’es pas le seul :slight_smile:
Chez moi également, avec une fréquence de 2 à 3 par jour. C’est normal à partir du moins où le plugin relance l’authentification.

Xav

@Mr_Dje

En effet cela semble être un pb d’écriture du cookie. Tu as quoi comme fichier dans le répertoire pycloud/154 ?
Pour la, gestion des droits, peux tu aller dans Système → Configuration → OS/DB et cliquer sur Rétablissement des droits des dossiers et fichiers puis retenter une authentification ?

@xav16,

Tu as déjà essayé avec 1 seul compte ?
Si jamais tu reçois 2 messages en très peu de temps avec le code à saisir, utilise bien le second !

Xav

Bonjour prfalken,

Ci-joint le déroulement de la manip en ssh.
Merci pour ton aide.
ssh log.txt (2,7 Ko)

c est débloquer sur jeebox. les devices descende bien tous refonctionne. pour l instant en réinstallent python 3.7

sudo apt-get install python3.7
 curl -O https://bootstrap.pypa.io/get-pip.py
ensuite. j ai installé la dernière version de pip et un autre package nommé setuptools
sudo  python3 get-pip.py --user``

voila mon installation de dependance
si sa peut aidé sur jeebox

  •       Installation des dépendances             *
    

***** Commande: sudo apt-get update **********
Atteint :1 http://deb.debian.org/debian buster InRelease
Atteint :2 http://security.debian.org buster/updates InRelease
Atteint :3 http://deb.debian.org/debian buster-updates InRelease
Atteint :4 http://deb.debian.org/debian buster-backports InRelease
Atteint :5 https://deb.nodesource.com/node_14.x buster InRelease
Atteint :6 http://mirror.armbian.de/apt buster InRelease
Atteint :7 https://packagecloud.io/ookla/speedtest-cli/debian buster InRelease
Lecture des listes de paquets…
***** Commande: sudo apt-get install -y python3 python3-pip **********
Lecture des listes de paquets…
Construction de l’arbre des d?pendances…
Lecture des informations d’?tat…
python3-pip est d?j? la version la plus r?cente (18.1-5).
python3 est d?j? la version la plus r?cente (3.7.3-1).
0 mis ? jour, 0 nouvellement install?s, 0 ? enlever et 0 non mis ? jour.
***** Commande: sudo pip3 install requests **********
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with ‹ -m pip › instead of running pip directly.
Collecting pyicloud
Using cached pyicloud-0.10.2.tar.gz (32 kB)
Installing build dependencies: started
Installing build dependencies: finished with status ‹ done ›
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status ‹ done ›
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status ‹ done ›
Collecting keyring<=9.3.1,>=8.0
Using cached keyring-9.3.1-py2.py3-none-any.whl (35 kB)
Requirement already satisfied: certifi>=2019.11.28 in /usr/local/lib/python3.7/dist-packages (from pyicloud) (2021.10.8)
Requirement already satisfied: future>=0.18.2 in /usr/local/lib/python3.7/dist-packages (from pyicloud) (0.18.2)
Requirement already satisfied: requests>=2.20.0 in /usr/lib/python3/dist-packages (from pyicloud) (2.21.0)
Requirement already satisfied: tzlocal==2.0.0 in /usr/local/lib/python3.7/dist-packages (from pyicloud) (2.0.0)
Requirement already satisfied: keyrings.alt<=3.2.0,>=1.0 in /usr/local/lib/python3.7/dist-packages (from pyicloud) (3.2.0)
Requirement already satisfied: click<=7.1.1,>=6.0 in /usr/local/lib/python3.7/dist-packages (from pyicloud) (7.1.1)
Requirement already satisfied: six>=1.14.0 in /usr/local/lib/python3.7/dist-packages (from pyicloud) (1.16.0)
Requirement already satisfied: pytz>=2019.3 in /usr/local/lib/python3.7/dist-packages (from pyicloud) (2021.3)
Collecting secretstorage
Using cached SecretStorage-3.3.1-py3-none-any.whl (15 kB)
Collecting cryptography>=2.0
Downloading cryptography-36.0.1-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (3.3 MB)
Requirement already satisfied: jeepney>=0.6 in /usr/local/lib/python3.7/dist-packages (from secretstorage->keyring<=9.3.1,>=8.0->pyicloud) (0.7.1)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.7/dist-packages (from cryptography>=2.0->secretstorage->keyring<=9.3.1,>=8.0->pyicloud) (1.15.0)
Requirement already satisfied: pycparser in /usr/local/lib/python3.7/dist-packages (from cffi>=1.12->cryptography>=2.0->secretstorage->keyring<=9.3.1,>=8.0->pyicloud) (2.21)
Building wheels for collected packages: pyicloud
Building wheel for pyicloud (pyproject.toml): started
Building wheel for pyicloud (pyproject.toml): finished with status ‹ done ›
Created wheel for pyicloud: filename=pyicloud-0.10.2-py3-none-any.whl size=32044 sha256=f22bb7b9ee2474c3dce3be53417b7f47ce9e1f6eb462b003c5755c105c95e0aa
Stored in directory: /root/.cache/pip/wheels/0b/8e/78/9773e5ce3d8655206f7be6fdb1ef58e9a215123b4ec445a3e4
Successfully built pyicloud
Installing collected packages: cryptography, secretstorage, keyring, pyicloud
Successfully installed cryptography-36.0.1 keyring-9.3.1 pyicloud-0.10.2 secretstorage-3.3.1
WARNING: Running pip as the ‹ root › user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

* ```
        Installation terminée                    *
1 « J'aime »

Salut @Xav-74,

Oui, elle est bien cochée. Si je regarde le log ça tourne toutes les secondes et les infos sont dans le log (position etc…).

En attendant je reste sur PyIcloud, une fois programmé ça tourne comme un horloge !

[2022-01-18 07:41:16][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:16][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:16][DEBUG] : Saved session data to file
[2022-01-18 07:41:16][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:17][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'INFOSPERSO
[2022-01-18 07:41:17][DEBUG] : Device offline : AirPods Pro de Prenom
[2022-01-18 07:41:17][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:17][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:17][DEBUG] : Saved session data to file
[2022-01-18 07:41:17][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:17][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': {'MjAzOTU1MjU1Nzg~': {'accountFormatter': 0, 'firstName': 'Autreprenom', 'lastName': 'NOM', INFOPERSO
[2022-01-18 07:41:17][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:17][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:17][DEBUG] : Saved session data to file
[2022-01-18 07:41:17][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:17][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:17][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:18][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:18][DEBUG] : Saved session data to file
[2022-01-18 07:41:18][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:18][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:18][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:18][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:18][DEBUG] : Saved session data to file
[2022-01-18 07:41:18][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:18][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:18][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:18][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:18][DEBUG] : Saved session data to file
[2022-01-18 07:41:18][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:18][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:18][DEBUG] : Device online : Apple Watch de Prenom
[2022-01-18 07:41:18][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:19][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:19][DEBUG] : Saved session data to file
[2022-01-18 07:41:19][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:19][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo'INFOPERSO
[2022-01-18 07:41:19][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:19][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:19][DEBUG] : Saved session data to file
[2022-01-18 07:41:19][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:19][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:19][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:20][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:20][DEBUG] : Saved session data to file
[2022-01-18 07:41:20][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:20][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:20][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:20][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:20][DEBUG] : Saved session data to file
[2022-01-18 07:41:20][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:20][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:20][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:20][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:20][DEBUG] : Saved session data to file
[2022-01-18 07:41:20][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:20][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO
[2022-01-18 07:41:20][DEBUG] : Device online : iPhone de Prenom
[2022-01-18 07:41:20][DEBUG] : POST https://p59-fmipweb.icloud.com:443/fmipservice/client/web/refreshClient {"clientContext": {"fmly": true, "shouldLocate": true, "selectedDevice": "all", "deviceListVersion": 1}}
[2022-01-18 07:41:21][DEBUG] : https://p59-fmipweb.icloud.com:443 "POST /fmipservice/client/web/refreshClient HTTP/1.1" 200 None
[2022-01-18 07:41:21][DEBUG] : Saved session data to file
[2022-01-18 07:41:21][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/19/monemailcom
[2022-01-18 07:41:21][DEBUG] : {'userInfo': {'accountFormatter': 0, 'firstName': 'Prenom', 'lastName': 'NOM', 'membersInfo': INFOPERSO

j’ai supprimé le 2° compte, et je saisi uniquement le 2° code recu, mais ca ne remonte toujours pas

[2022-01-21 09:44:46][ERROR] : Authentication required for Account. (421)
[2022-01-21 09:45:03][ERROR] : Error on send request to jeedom, return code 403 - Forbidden
[2022-01-21 09:45:03][ERROR] : Calling jeedom failed
[2022-01-21 09:45:04][ERROR] : Not Found (404)
[2022-01-21 09:45:04][ERROR] : Session trust failed.
[2022-01-21 09:45:09][ERROR] : Authentication required for Account. (421)
[2022-01-21 09:45:25][ERROR] : Error on send request to jeedom, return code 403 - Forbidden
[2022-01-21 09:45:25][ERROR] : Calling jeedom failed
[2022-01-21 09:45:26][ERROR] : Not Found (404)
[2022-01-21 09:45:26][ERROR] : Session trust failed.

je suis sur une fresh install (refaite il y a 2 jours)
dans >_OS/DB j’ai retabli les droits et installé ts les pakages manquants

Hello @Xav-74,

En fait je ne pouvais pas aller dans le répertoire pycloud/154.
Avec le rétablissement des droits, je peux maintenant, et surtout ça a réglé le problème d’écriture du cookie donc du fonctionnement du plugin.

Un grand merci !!! :slight_smile:

2 « J'aime »

Hello
Bon chez mo ca ne fonctionne pas du tout
quand je click sur authent
rien
rien sur l’iP¨hone pas de code

et en log:

[2022-01-27 12:31:06][DEBUG] : Create commande
[2022-01-27 12:31:06][DEBUG] : Cookie d'identification non présent
[2022-01-27 12:31:06][DEBUG] : Check if dir exist /var/www/html/plugins/ioscloud/core/class/../../resources/ioscloud/pyicloud
[2022-01-27 12:31:08][DEBUG] : Create commande
[2022-01-27 12:31:08][DEBUG] : Cookie d'identification non présent
[2022-01-27 12:31:08][DEBUG] : stop create commande
[2022-01-27 12:31:34][DEBUG] : Create commande
[2022-01-27 12:31:34][DEBUG] : Cookie d'identification non présent
[2022-01-27 12:31:34][DEBUG] : Check if dir exist /var/www/html/plugins/ioscloud/core/class/../../resources/ioscloud/pyicloud

merci pour votre aide

Hello @stanthewizzard,

Un caractère spécial dans ton password :thinking::thinking:

Xav

oui 1
je confirme

Donc cela vient de là !
2 possibilités :

  • tu modifies le mot de passe
  • si tu t’y connais un peu en prog, tu peux modifier une partie du code pour que le plugin accepte les caractères spéciaux. La solution a été donnée plus haut dans ce fil :stuck_out_tongue_winking_eye:

Xav

MERCI
effectivement en modifiant la classe PHP c’est bon j’ai eu l’authent Apple.

Les devices sont là !!!

Vivement que tout sorte de beta

Encore grand merci pour ta patience et ton aide

1 « J'aime »

Bonsoir,

Malheureusement je rencontre toujours le même soucis, j’ai ajouté le compte de ma femme sans soucis, par contre lors de l’ajout de mon compte 5 appareils remonte mais il manque mon iPhone… dans les logs :

[2022-01-30 00:45:14][DEBUG] : MacBook Air de Simon
[2022-01-30 00:45:14][DEBUG] : Apple Watch de Simon
[2022-01-30 00:45:14][DEBUG] : AirPods Pro de Simon #2
[2022-01-30 00:45:14][DEBUG] : AirPods de Ju :sunflower:
[2022-01-30 00:45:14][DEBUG] : AirPods de Charlyne
[2022-01-29 23:45:14][DEBUG] : http://127.0.0.1:80 « POST /plugins/ioscloud/core/php/ioscloud.php?apikey=******* HTTP/1.1 » 500 0
[2022-01-29 23:45:14][DEBUG] : Status Code : 500
[2022-01-29 23:45:14][ERROR] : Error on send request to jeedom, return code 500 - Internal Server Error
[2022-01-29 23:45:14][ERROR] : Calling jeedom failed

:confused:

Bonjour,
j’ai un soucis je pense avec le cookie.
je suis sur une fresh install. j’ai ajouté toutes les librairies manquantes et rétablis les droits dans >_OS/DB.
j’ai effectué la procédure avec 2 fenêtres ouvertes,
Je reçois bien un code (un seul) sur mon idevice.
j’ai bien accès au dossier /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/231/ via jeeXplorer

[2022-01-31 11:07:56][DEBUG] : Code verification successful.
[2022-01-31 11:07:56][DEBUG] : GET https://idmsa.apple.com/appleauth/auth/2sv/trust 
[2022-01-31 11:07:56][DEBUG] : https://idmsa.apple.com:443 "GET /appleauth/auth/2sv/trust HTTP/1.1" 302 None
[2022-01-31 11:07:56][DEBUG] : Starting new HTTP connection (1): www.apple.com:80
[2022-01-31 11:07:56][DEBUG] : http://www.apple.com:80 "GET /filenotfound HTTP/1.1" 301 0
[2022-01-31 11:07:56][DEBUG] : Starting new HTTPS connection (1): www.apple.com:443
[2022-01-31 11:07:56][DEBUG] : https://www.apple.com:443 "GET /filenotfound HTTP/1.1" 404 6857
[2022-01-31 11:07:57][DEBUG] : Saved session data to file
[2022-01-31 11:07:57][DEBUG] : Cookies saved to /var/www/html/plugins/ioscloud/resources/ioscloud/pyicloud/231/xavgxxxfr
[2022-01-31 11:07:57][ERROR] : Not Found (404)
[2022-01-31 11:07:57][ERROR] : Session trust failed.
[2022-01-31 11:07:57][DEBUG] : Code validation result: False
[2022-01-31 11:07:57][DEBUG] : Failed to verify security code

une idée ?
merci de votre aide

Hello tout le monde,

J’ai identiquement le même soucis que toi @xav16 .

Plugin inutilisable pour l’instant.

Sans vraies informations tu es seul juge de savoir si c’est le même souci…

Ca fonctionne qd meme pour pas mal de personne.

Juste dire idem moi pareil ne prouve rien

prfalken c’est vrai mais je n’ai aucune réponse à mon message et je ne sais pas quels éléments donner de plus pour pouvoir avancer

Hello @xav16 @Djoss0022

Au niveau du password, pas de caractère spécial ?

1 « J'aime »