Comments (14)
from viessmann-api.
Merci,
did understand your French Reply - but my French is not good enough to reply :-(
Did the Installation of php-curl - new error:
php GetOuts ideTemperature.php
PHP Warning: include(phar:///etc/openhab2/transfer/viessmann/Viessmann-Api-0.4- SNAPSHOT.phar/index.php): failed to open stream: phar error: invalid url or non- existent phar "phar:///etc/openhab2/transfer/viessmann/Viessmann-Api-0.4-SNAPSHO T.phar/index.php" in /etc/openhab2/transfer/viessmann/bootstrap.php on line 6
PHP Warning: include(): Failed opening 'phar:///etc/openhab2/transfer/viessmann /Viessmann-Api-0.4-SNAPSHOT.phar/index.php' for inclusion (include_path='.:/usr/ share/php') in /etc/openhab2/transfer/viessmann/bootstrap.php on line 6
PHP Fatal error: Uncaught Error: Class 'Viessmann\API\ViessmannAPI' not found i n /etc/openhab2/transfer/viessmann/bootstrap.php:18
Stack trace:
#0 /etc/openhab2/transfer/viessmann/GetOutsideTemperature.php(2): include()
#1 {main}
thrown in /etc/openhab2/transfer/viessmann/bootstrap.php on line 18
Cordialement
Georg
from viessmann-api.
You don't need to reply me in french. English is fine. I thought you were french because gmail did translate the email automaticaly in french..
For you problem, the file /etc/openhab2/transfer/viessmann/bootstrap.php tries to include the
/etc/openhab2/transfer/viessmann /Viessmann-Api-0.4-SNAPSHOT.phar but doesn't seems to find it. Could you check that this file does exists ?
from viessmann-api.
oh sh...!
I deleted it, but forgot to copy it back.
Thanks it is working now for OutsideTemperature and BoilerTemperature - will test the remaining examples during next week.
Je te souhaite un bon week-end
Georg
from viessmann-api.
Hi - I am testing again.
First of all I had to reset my password on ViCare. The App Vitotrol Plus I cannot login any longer. The app is disconnected any how.
I changed the credentials.properties file to new password - now I get an error Error during authentication process. Please review your username/password
Any idea what is going wrong?
Thanks for a quick reply
Georg
from viessmann-api.
To get more info, please add the bold line in the bootstrap.php file:
try {
$viessmannApi = new ViessmannAPI($params);
} catch (ViessmannApiException $e) {
echo $e->getMessage();
echo "Trace:" . $e->getTraceAsString() . "\n";
exit();
}
from viessmann-api.
Trace after inserting:
Error during authentication process. Please review your username/passwordTrace:#0 phar:///home/openhabian/Downloads/Viessmann-Api-0.4-SNAPSHOT.phar/src/Oauth/ViessmannOauthClientImpl.php(56): Viessmann\Oauth\ViessmannOauthClientImpl->getCode()
#1 phar:///home/openhabian/Downloads/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php(43): Viessmann\Oauth\ViessmannOauthClientImpl->__construct(Array)
#2 /home/openhabian/Downloads/bootstrap.php(18): Viessmann\API\ViessmannAPI->__construct(Array)
#3 /home/openhabian/Downloads/GetOutsideTemperature.php(2): include('/home/openhabia...')
#4 {main}
Hope this is the information you are looking for
Georg
from viessmann-api.
This version works:
675696 Nov 22 10:58 Viessmann-Api-0.4-SNAPSHOT.phar
This seems to be the version from beginning of November.
This version shows the error:
675759 Nov 22 10:50 Viessmann-Api-0.4-SNAPSHOT.phar
This is the actual version downloaded yesterday.
from viessmann-api.
I didn't commit anything in the phar since 11 november. I have added the response of the viessmann server to understand the problem:
so now please take the latest version of the phar and update bootstrap.php:
try {
$viessmannApi = new ViessmannAPI($params);
} catch (ViessmannApiException $e) {
echo $e->getPrevious()->getMessage();
exit();
}
from viessmann-api.
Hi,
the working version ist before 11.11. probably 08.11
now as follows:
PHP Fatal error: Uncaught Error: Call to a member function getMessage() on null in /home/openhabian/Downloads/bootstrap.php:20
Stack trace:
#0 /home/openhabian/Downloads/GetOutsideTemperature.php(2): include()
#1 {main}
thrown in /home/openhabian/Downloads/bootstrap.php on line 20
line 20 ist the line with getPrevious().
does this help?
Georg
from viessmann-api.
Well it does tell you that echo $e->getPrevious() is null which according to me is not possible if you did update your phar with latest version. Could you check that you have correctly updated the phar ?
from viessmann-api.
I am bit confused - just downloaded the actual Viessmann...phar which has a different size than the one of this morning.
<title>Viessmann Login</title> <script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V1/webdata/js/material.min.js"></script>php GetOutsideTemperature.php
response didn't contains code to get token probably due to an error in authentication process. Response :
Login failed; please check the details you have entered.
<div class="mdl-layout-spacer"></div>
<div class="mdl-cell" style="width:auto;margin-top:5px"> <a class="forgot-username-password" id="link_pwlost" title="Forgotten password" href="/selfservice/passwordlost">Forgotten password</a>
</div> </div>
</form> <script type="text/javascript">document.forms['AuthUidPwDialog'].elements[0].focus()</script>
</div> </div> <div class="mdl-layout-spacer"></div> </div>
<script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V1/webdata/js/jquery-1.11.2.min.js"></script>
<script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V1/webdata/js/nevislogrend.js"></script>
</body> </html>
Trace:#0 phar:///home/openhabian/Downloads/Viessmann-Api-0.4-SNAPSHOT.phar/src/Oauth/ViessmannOauthClientImpl.php(56): Viessmann\Oauth\ViessmannOauthClientImpl->getCode()
#1 phar:///home/openhabian/Downloads/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php(43): Viessmann\Oauth\ViessmannOauthClientImpl->__construct(Array)
#2 /home/openhabian/Downloads/bootstrap.php(18): Viessmann\API\ViessmannAPI->__construct(Array)
#3 /home/openhabian/Downloads/GetOutsideTemperature.php(2): include('/home/openhabia...')
#4 {main}
This is the error message I receive.
Georg
from viessmann-api.
Well Viessmann server clearly complains about your given credentials... "Login failed; please check the details you have entered."
I receive the same error when I intentionaly enter a wrong password.
I have checked and didn't change for at least one month and maybe even more.
My guess is that's a problem with the credentials provided. You could have more information if in the bootstrap.php:
try { $viessmannApi = new ViessmannAPI($params); } catch (ViessmannApiException $e) { print_r($e->getTrace()); exit(); }
This will display an array of 4 item. The second and third should show you the state of the variable user and pwd. Don't put them here but you could check if it's you're credentials... If you're using the credentials.properties file ensure that you don't have a third empty line.
from viessmann-api.
Checked credentials file - not working.
Copied a credentials.properties from a working copy - it is working now.
Don't understand content (user and password) and size of both files was identical.
Thanks
Georg
from viessmann-api.
Related Issues (20)
- Is it possible to read the values of the energy balance? HOT 6
- Action activat et désactivate sur programme externe (external progams).
- API officiel Viessmann HOT 1
- Does setDhwTemperature2() for oneTimeCharge-Temp exist? HOT 1
- Install composer HOT 1
- Issues with new Viessmann API authentication HOT 3
- Unable to get token with 2.0.0 HOT 10
- for information, futures not working in new api for my OPT1 (Vitoconnect 100) but before working fine HOT 12
- getRawJsonData / setRawJsonData don't work with new V api? HOT 5
- The feature getDhwTemperature() is no longer working HOT 4
- from yesterday - Error during authentication process HOT 2
- Consommations électriques et gaz ne remontent plus HOT 18
- Some features broken (?) HOT 8
- Query zigbee devices -> room temp. HOT 9
- PHP Warning: Argument #2 ($key) must be passed by reference,
- $viessmannApi->getHeatingSolarStatistics() not working.
- Invalid REDIRECT_URL in ViessmannOauthClientImpl
- Error installation HOT 2
- Update to Version 2.0 pour novice
- Could not get the API work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viessmann-api.