Giter Club home page Giter Club logo

Comments (9)

irek74 avatar irek74 commented on July 19, 2024 2

Looks much better. If I may suggest something: maybe it's a good idea to include a "step by step" manual to get first results? Something like this:

  1. Update Raspberry PI
    sudo apt-get update
    sudo apt-get upgrade
  2. Install PHP
    sudo apt install php7.0
    sudo apt-get install php-curl
  3. Clone repository
    git clone https://github.com/thetrueavatar/Viessmann-Api.git
  4. Enter credentials
    cd /home/pi/Viessmann-Api/example
    sudo nano credentials.properties
  5. Install composer
    cd /home/pi/Viessmann-Api
    curl -sS https://getcomposer.org/installer | php
    php composer.phar install
    cd /home/pi/Viessmann-Api/script
    ./createPhar.sh
  6. Perform simple test
    cd /home/pi/Viessmann-Api/example
    php GetOutsideTemperature.php

Regards
Irek

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

Well I have written a documentation on the wiki wich I consider as the Tutorial you requires:
https://github.com/thetrueavatar/Viessmann-Api/wiki/English

from viessmann-api.

irek74 avatar irek74 commented on July 19, 2024

Yes you did and I have seen it. In my opinion (you may disagree) it's addressed more to professional programmers than to hobbyist. Unfortunately I belong to the second group and your tutorial isn't clear enought to me (maybe because php is not my strongest asset ;-). Anyway, thank you for your effort at creating Viessmann API.
Regards
Irek

from viessmann-api.

irek74 avatar irek74 commented on July 19, 2024

OK, after careful reading of your tutorial, I'm able to connect to Viessmann server using my credentials. I can read some basic data like outside temperature, power consumption, etc. I also receive many warnings for function GetAllInformation() and I don't know how to switch between circuits (0 and 1) to read data like shift and slope for each circuit, but it's a big step forward for me. Now I'm able to ask precise questions.
Regards
Irek

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

Most of the method have "circuitId" as optional parameter. By default circuit is 0 but you can overwritte it by passing the circuitId on the method:
echo $viessmannApi->getShift(1); echo $viessmannApi->getSlope(1);
Please have a look at method documentation here:
https://htmlpreview.github.io/?https://raw.githubusercontent.com/thetrueavatar/Viessmann-Api/develop/docs/classes/Viessmann.API.ViessmannAPI.html

from viessmann-api.

irek74 avatar irek74 commented on July 19, 2024

Thank you. I'll do more tests at the evening.

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

I did some "cleanup" on the wiki section to make things more understable for less technical people. If you have time to check and provide me your feedback.

from viessmann-api.

Philippe-M avatar Philippe-M commented on July 19, 2024

Add require php 7.2

from viessmann-api.

Seba0855 avatar Seba0855 commented on July 19, 2024

Looks much better. If I may suggest something: maybe it's a good idea to include a "step by step" manual to get first results? Something like this:

  1. Update Raspberry PI
    sudo apt-get update
    sudo apt-get upgrade
  2. Install PHP
    sudo apt install php7.0
    sudo apt-get install php-curl
  3. Clone repository
    git clone https://github.com/thetrueavatar/Viessmann-Api.git
  4. Enter credentials
    cd /home/pi/Viessmann-Api/example
    sudo nano credentials.properties
  5. Install composer
    cd /home/pi/Viessmann-Api
    curl -sS https://getcomposer.org/installer | php
    php composer.phar install
    cd /home/pi/Viessmann-Api/script
    ./createPhar.sh
  6. Perform simple test
    cd /home/pi/Viessmann-Api/example
    php GetOutsideTemperature.php

Regards
Irek

It would be great to see that step by step guide in documentation of the API as it was very helpful for me. It's easy to understand for beginners and it clearly shows what to do to make this work properly.

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.