Page 42 sur 55

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 15 oct. 2018, 20:40
par thetrueavatar
hum bizarre. Fais alors git fetch. Normalement, il récupère au moins les informations des nouvelles branches. Si ça ne marche toujours pas. Supprimme ton répertoire et refais le git clone ça sera plus simple.

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 15 oct. 2018, 20:55
par Jasper
même erreur après avoir tout refait

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 15 oct. 2018, 21:13
par thetrueavatar
Refaire un git clone alors ce sera beaucoup plus sain de partir depuis quelque chose de neuf

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 15 oct. 2018, 22:29
par Jasper
Oui j'ai tout refait : Supprimé le répertoire Viessmann.Api, fait un

Code : Tout sélectionner

git clone https://github.com/thetrueavatar/Viessmann-Api.git
cd Viessmann-Api/example/
nano credentials.properties
J'ai indiqué mon nom adresse email et mon mot de passe

Code : Tout sélectionner

git pull
git checkout Feature/MethodNotYetTested
Toujours la même erreur

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 15 oct. 2018, 23:36
par thetrueavatar
My bad. La branche avait été renommée localement mais poussait toujours vers l'ancien nom. Refait un git pull et le git checkout devrait fonctionner. Désolé.

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 16 oct. 2018, 06:53
par Jasper
OK merci, le git checkout fonctionne maintenant

Code : Tout sélectionner

git checkout Feature/MethodNotYetTested M       example/credentials.properties
La branche Feature/MethodNotYetTested est paramétrée pour suivre la branche distante Feature/MethodNotYetTested depuis origin.
Basculement sur la nouvelle branche 'Feature/MethodNotYetTested'
mais je ne comprends pas comment lancer getHeatingGasConsumption et getDhwGasConsumption.
J'ai parcouru tout le répertoire Viessmann_Api et pas trouvé

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 16 oct. 2018, 07:07
par thetrueavatar
Ce sont des méthodes que j'ai rajouté sur ViessmannAPI. J'ai fait un fichier NotTestTestMethod.php qui contiendra toutes les méthodes à tester.

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 16 oct. 2018, 08:58
par Jasper
Vraiment désolé de mon incompétence mais je ne trouve pas quelle commande passer et dans quel répertoire. j'ai chercher partout un fichier NotTestTestMethod.php ou approchant mais je n'ai rien trouvé

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 16 oct. 2018, 10:50
par thetrueavatar
Refait un git pull car je viens de le créer ce fichier.

Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Publié : 16 oct. 2018, 11:07
par Jasper
Merci
La commande

Code : Tout sélectionner

php NotTestTestMethod.php
Résultat

Code : Tout sélectionner

PHP Fatal error:  Uncaught Viessmann\API\ViessmannApiException: Unable to get data for feature heating.gas.consumption.dhw
Reason: FEATURE_NOT_FOUND in phar:///home/pi/Viessmann-Api/example/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php:280
Stack trace:
#0 phar:///home/pi/Viessmann-Api/example/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php(177): Viessmann\API\ViessmannAPI->getEntity('heating.gas.con...')
#1 /home/pi/Viessmann-Api/example/NotTestTestMethod.php(3): Viessmann\API\ViessmannAPI->getDhwGasConsumption('day')
#2 {main}
  thrown in phar:///home/pi/Viessmann-Api/example/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php on line 280
C'est mort ?