Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on ViessmannOauthClient::getCode() #1

Closed
drlaplace opened this issue Sep 7, 2018 · 18 comments
Closed

Error on ViessmannOauthClient::getCode() #1

drlaplace opened this issue Sep 7, 2018 · 18 comments

Comments

@drlaplace
Copy link

I get following errors when I start Main.php. Before I insert user and pwd in credentials.

PHP Notice:  Undefined offset: 0 in /home/ss/Downloads/Viessmann-Api-master/src/Oauth/ViessmannOauthClient.php on line 78
PHP Fatal error:  Uncaught TypeError: Return value of Viessmann\Oauth\ViessmannOauthClient::getCode() must be of the type string, null returned in /home/ss/Downloads/Viessmann-Api-master/src/Oauth/ViessmannOauthClient.php:78

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@drlaplace
Copy link
Author

Thanks for your fast answer!
Unfortunately I have no carriage return after the second line. Error still the same.

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@drlaplace
Copy link
Author

Sorry my bad. I get this Error code:
Fatal error: Uncaught Error: Class 'TomPHP\Siren\Entity' not found in /home/ss/Downloads/Viessmann-Api-master/src/API/ViessmannAPI.php:58
Do I have to install anything?

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@drlaplace
Copy link
Author

OK. take your time. I can only test it again on Monday

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 7, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 10, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 10, 2018 via email

@drlaplace
Copy link
Author

Thanks. It works!!
Is there any to get the gas consumption? The given URL can't be found:
heating.gas.consumption.dhw

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 10, 2018 via email

@thetrueavatar
Copy link
Owner

thetrueavatar commented Sep 11, 2018 via email

@thetrueavatar
Copy link
Owner

Problème fixé

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants