[Tuto] Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge
-
thetrueavatar
- Messages : 71
- Inscription : 04 nov. 2017, 23:41
Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge
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
même erreur après avoir tout refait
-
thetrueavatar
- Messages : 71
- Inscription : 04 nov. 2017, 23:41
Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge
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
Oui j'ai tout refait : Supprimé le répertoire Viessmann.Api, fait un
J'ai indiqué mon nom adresse email et mon mot de passe
Toujours la même erreur
Code : Tout sélectionner
git clone https://github.com/thetrueavatar/Viessmann-Api.git
cd Viessmann-Api/example/
nano credentials.propertiesCode : Tout sélectionner
git pull
git checkout Feature/MethodNotYetTested-
thetrueavatar
- Messages : 71
- Inscription : 04 nov. 2017, 23:41
Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge
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
OK merci, le git checkout fonctionne maintenant
mais je ne comprends pas comment lancer getHeatingGasConsumption et getDhwGasConsumption.
J'ai parcouru tout le répertoire Viessmann_Api et pas trouvé
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'J'ai parcouru tout le répertoire Viessmann_Api et pas trouvé
-
thetrueavatar
- Messages : 71
- Inscription : 04 nov. 2017, 23:41
Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge
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
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é
-
thetrueavatar
- Messages : 71
- Inscription : 04 nov. 2017, 23:41
Re: Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge
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
Merci
La commande
Résultat
C'est mort ?
La commande
Code : Tout sélectionner
php NotTestTestMethod.phpCode : 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