[Tuto] Contrôler sa chaudière Viessmann avec Domoticz via une interface infrarouge

Vous avez créé un script LUA dont vous êtes fier, un .sh génial, un programme Python hors du commun, un Tuto, c'est ici que vous pouvez les partager.
thetrueavatar
Messages : 71
Inscription : 04 nov. 2017, 23:41

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

Message 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.
Jasper
Messages : 83
Inscription : 20 janv. 2018, 12:14

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

Message par Jasper »

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

Message par thetrueavatar »

Refaire un git clone alors ce sera beaucoup plus sain de partir depuis quelque chose de neuf
Jasper
Messages : 83
Inscription : 20 janv. 2018, 12:14

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

Message 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
thetrueavatar
Messages : 71
Inscription : 04 nov. 2017, 23:41

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

Message 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é.
Jasper
Messages : 83
Inscription : 20 janv. 2018, 12:14

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

Message 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é
thetrueavatar
Messages : 71
Inscription : 04 nov. 2017, 23:41

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

Message 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.
Jasper
Messages : 83
Inscription : 20 janv. 2018, 12:14

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

Message 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é
thetrueavatar
Messages : 71
Inscription : 04 nov. 2017, 23:41

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

Message par thetrueavatar »

Refait un git pull car je viens de le créer ce fichier.
Jasper
Messages : 83
Inscription : 20 janv. 2018, 12:14

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

Message 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 ?
Répondre