-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update client to use new IOT API from Viessmann
Removed session_start() from code so that session is managed by the user of the api. credentials.properties is now defined as key=value file.
- Loading branch information
lbscld
committed
Jul 16, 2021
1 parent
dee4e00
commit 49c3771
Showing
17 changed files
with
247 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Version 1.4.0 | ||
-------------- | ||
Switch to version 2 of Oauth Viessmann servuce. Many other small improvements. See release note https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.4.0 | ||
|
||
Version 1.3.4 | ||
-------------- | ||
Suppress dep on php 7.1 and fix GetAvailableFeatures https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.3.4 | ||
|
||
Version 1.3.3 | ||
-------------- | ||
|
||
Added missing DateTime import. | ||
https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.3.3 | ||
|
||
Version 1.3.2 | ||
-------------- | ||
Warning. This version requires php and php-curl 7.1 to support "?". | ||
Added caching to reduced load is available here : https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.3.2 | ||
It's also possible to define installationId(3rd line) and gatewayId(4th line) in the credentials.properties. | ||
To get those value please use the getGatewayId and getInstallationid method. | ||
This would reduce the total of request to 3. Moreover authentication(2 request) seems to not be taken into account so it will result in only 1 request counting in the quota. | ||
|
||
As mentionned, Viessmann as set 2 limit to their API: | ||
* 120 calls for a time window of 10 minutes | ||
* 1450 calls for a time window of 24 hours | ||
|
||
|
||
|
||
Version 1.1.0 available ! | ||
------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Version 1.4.0 | ||
------------- | ||
Basculement sur la version v2 du service Oauth Viessmann. Plusieurs autres modifications voir release note https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.4.0 | ||
|
||
Version 1.3.4 | ||
------------- | ||
Suppression de la dépendance sur php 7.1 et fix de GetAvailableFeatures | ||
https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.3.4 | ||
|
||
Version 1.3.3 | ||
-------------- | ||
|
||
Ajout d'un import DateTime manquant créant une erreur lors du traitement du message de ban de Viessmann: | ||
https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.3.3 | ||
|
||
Version 1.3.2 | ||
-------------- | ||
Attention, cette version nécessite php et php-curl 7.1 pour supporter l'utilisation du "?". | ||
Translated documentation can be found here: | ||
- English: https://github.com/thetrueavatar/Viessmann-Api/blob/develop/README-en.md | ||
|
||
Ajout d'une cache et refactoring pour réduire la charge sur le serveur Viessmann https://github.com/thetrueavatar/Viessmann-Api/releases/tag/1.3.2 | ||
Il est désormais possible de définir dans le credentials.properties son installationId(3ème ligne) et son gatewayid(4ème ligne) ce qui réduit le nombre de requêtes nécessaire. | ||
Ces valeurs peuvent être obtenues en appelant les méthodes getGatewayId and getInstallationId avec juste le user/pwd dans credentials.properties. | ||
Cela réduira le nombre de requête à 3 dont 2 pour l'authentification qui ne comptent pas dans le quota. | ||
La cache est utilisée pour tout appelle sur l'objet ViessmannApi. | ||
Le code suivant ne fait donc qu'un seul appel au total: | ||
|
||
<?php | ||
include __DIR__ . '/bootstrap.php'; | ||
$viessmannApi->getOutsideTemperature()); | ||
$viessmannApi->getBoilerTemperature()); | ||
$viessmannApi->getSlope()); | ||
$viessmannApi->getShift()); | ||
|
||
Comme déjà expliqué Viessmann limite désormais le nombre de requête sur son service: | ||
* 120 calls for a time window of 10 minutes | ||
* 1450 calls for a time window of 24 hours | ||
|
||
|
||
|
||
News FR | ||
---- | ||
Une nouvelle version utilisant une cache et évitant un nombre trop important d'appel est disponible en snapshot. Cette version a été développé à l'aveulge(mon compte est bloqué) mais fonctionne en test local. Faites-moi le plus de retour possible ! | ||
Attention, la cache fonctionne à condition que vous fassiez tout vos appels sur le même objet viessmannApi. | ||
Exemple: | ||
|
||
$viessmannApi->getOutsideTemperature()); | ||
|
||
$viessmannApi->getBoilerTemperature()); | ||
|
||
$viessmannApi->getSlope()); | ||
|
||
$viessmannApi->getShift()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.