Giter Club home page Giter Club logo

Comments (10)

thetrueavatar avatar thetrueavatar commented on June 20, 2024 1

from viessmann-api.

bidonMarc avatar bidonMarc commented on June 20, 2024 1

similar issue here!
I created a clientId with no captcha and default URI http://localhost:4200/.
But I get "Error during authentication process. Please review your username/password"
Any Ideas?

Some people, told me that they did a password recovering to fix the problem. Seems that password with special character lead to some problem. Maybe it's in my implementation but can't check right now.
Did you update the bootstrap.php and the credentials.propeties ? It's required to change both so that the new format of the credentials.properties is correctly managed.

Hi,
I had same issue and I enclosed all the fields with double quote (") to solve it :
user="[email protected]"
pwd="P4ssword!"
clientId="myAPIkey"

from viessmann-api.

soeffi avatar soeffi commented on June 20, 2024

Did you make sure, that this redirect URL is set for the client in the developer portal?

from viessmann-api.

tigermurmel avatar tigermurmel commented on June 20, 2024

similar issue here!
I created a clientId with no captcha and default URI http://localhost:4200/.
But I get "Error during authentication process. Please review your username/password"

Any Ideas?

from viessmann-api.

adorobis avatar adorobis commented on June 20, 2024

I've had some problems logging in, instead user name I had to provide e-mail address. Maybe something similar?

from viessmann-api.

0rsa avatar 0rsa commented on June 20, 2024

I read Viessmann documentation and I'm able now to connect without PHP library.
As viessmann API uses now OAuth, you have to login manually via a Viessman login form, then the form is redirecting you to your redirect_uri.

If you want to avoid that (for an automatic script which refresh every minutes for example), you need to set scope to IoT User offline_access to get a refresh_token which allows to get a fresh token without manual login.

With a simple call, I'm able to retrieve all data from my boiler.

Example of a simple script when u have your refresh_token

$token = json_decode(exec('curl -X POST "https://iam.viessmann.com/idp/v2/token" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=refresh_token&client_id=CLIENT_ID&refresh_token=REFRESH_TOKEN"'));

echo exec('curl -X GET https://api.viessmann.com/iot/v1/equipment/installations/INSTALLATION_ID/gateways/GATEWAY_SERIAL/devices/0/features -H "Authorization: Bearer '.$token->access_token.'"');

Viessmann Oauth documentation to get a refresh_token:
https://developer.viessmann.com/en/doc/authentication

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 20, 2024

similar issue here!
I created a clientId with no captcha and default URI http://localhost:4200/.
But I get "Error during authentication process. Please review your username/password"

Any Ideas?

Some people, told me that they did a password recovering to fix the problem. Seems that password with special character lead to some problem. Maybe it's in my implementation but can't check right now.
Did you update the bootstrap.php and the credentials.propeties ? It's required to change both so that the new format of the credentials.properties is correctly managed.

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 20, 2024

Thanks for the feedback. I will try to fix this to avoid the double quote

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 20, 2024

I did a fix that should correctly parse php reserved char($,...).
The fix is inside the bootstrap.php for information. Could you check?

from viessmann-api.

bidonMarc avatar bidonMarc commented on June 20, 2024

Hi,
I got the following :

pi@rasp-domoticz:/Viessmann-Api/PAC-History$ php getPACValues.php
PHP Warning: include(phar:///home/pi/Viessmann-Api/PAC-History/Viessmann-Api-2.1.0-SNAPSHOT.phar/index.php): failed to open stream: phar error: invalid url or non-existent phar "phar:///home/pi/Viessmann-Api/PAC-History/Viessmann-Api-2.1.0-SNAPSHOT.phar/index.php" in /home/pi/Viessmann-Api/PAC-History/bootstrap.php on line 7
PHP Warning: include(): Failed opening 'phar:///home/pi/Viessmann-Api/PAC-History/Viessmann-Api-2.1.0-SNAPSHOT.phar/index.php' for inclusion (include_path='.:/usr/share/php') in /home/pi/Viessmann-Api/PAC-History/bootstrap.php on line 7
Array
(
[user] => [email protected]
[pwd] => Passw!qu5
[clientId] => xxxxxxxxxxxxxxx
[installationId] =>
[gatewayId] =>
[deviceId] => 0
[circuitId] => 0
)
Message: Class 'Viessmann\API\ViessmannAPI' not found
Code: 0
pi@rasp-domoticz:
/Viessmann-Api/PAC-History$

from viessmann-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.