Giter Club home page Giter Club logo

Comments (14)

thetrueavatar avatar thetrueavatar commented on July 19, 2024

from viessmann-api.

JungeG avatar JungeG commented on July 19, 2024

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.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

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.

JungeG avatar JungeG commented on July 19, 2024

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.

JungeG avatar JungeG commented on July 19, 2024

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.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

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.

JungeG avatar JungeG commented on July 19, 2024

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.

JungeG avatar JungeG commented on July 19, 2024

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.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

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.

JungeG avatar JungeG commented on July 19, 2024

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.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

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.

JungeG avatar JungeG commented on July 19, 2024

I am bit confused - just downloaded the actual Viessmann...phar which has a different size than the one of this morning.

php GetOutsideTemperature.php
response didn't contains code to get token probably due to an error in authentication process. Response :

<title>Viessmann Login</title> <script src="/login/resources/nevislogrend/applications/IDM_OIDC_IDP_V1/webdata/js/material.min.js"></script>
Login
viessmann-logo

Login failed; please check the details you have entered.

User name
Password
Stay logged on
                                            <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>                 
LOGIN
            </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.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

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.

JungeG avatar JungeG commented on July 19, 2024

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)

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.