Ankündigung

Einklappen
Keine Ankündigung bisher.

Webabfrage [english content]

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Webabfrage [english content]

    Hi all...

    I've searched this forum, trying to find a solution, but could not find it.

    I have a very simple web page query (webabfrage) but I can't seem to get any results back.

    In the "debug" website of my HS, I can see a section called Event-Bidir

    There you can see wich data is send and recieved. The sending works, but the recieving part is "cut off".

    The data on the requested web page:

    Code:
    <icon>42</icon> <currenttemp>19.4</currenttemp> <current_temp_high>20</current_temp_high> <current_temp_low>4</current_temp_low> <weather>Helder</weather> <airpressure>1035</airpressure> <rain>0</rain> <windspeed>3.2</windspeed> <update>26 March, 17:09</windspeed>
    But when I then look at the recieved data in the BiDir field, it's the following:

    Code:
    HTTP/1.1 200 OK Date: Tue, 27 Mar 2012 09:29:28 GMT Server: Apache/2.2.20 (Ubuntu) Vary: Accept-Encoding Content-Length: 264 Connection: close Content-Type: text/html  [icon]42[/icon] [current
    [B](Gesamt: 7) (Work: 5) (Typ: Liste) (OK: 0)[/B]
    It just get's cut off after [current. Also, why are there square brackets here [ instead of the < in the source code?

    I'm really stumped... I hop someone can help... I understand a bit german, so english is not required to answer

    Kind regards

    #2
    Hi!

    Some screens of your web page query would be helpful.

    But as the debug shows, the 4 first lines run through and then it stops at line 5 - so I think (without having seen your query) the keyword you are searching in line 5 can not be found.

    Regards

    Olaf
    Möchte den Komfort meiner Installation nicht mehr missen!

    Kommentar


      #3
      The images from my request
      Angehängte Dateien

      Kommentar


        #4
        The Carriage Return (CR) or the Line Feed (LF) may be the problem.....IMHO there are two options:
        • try with the different combinations of CR and LF in the line 3 with "</icon>"
        • change line 3 to "</ic" and insert a new line at position 4 with "Beliebige Anzahl an Daten" (this would automatically include the "on" and CRs and LFs)

        Definitely you have to add an "Beliebige Anzahl an Daten" at the beginning and the end if the source code you quoted is just an extract of a page containing more than those 9 lines

        Regards

        Olaf
        Möchte den Komfort meiner Installation nicht mehr missen!

        Kommentar


          #5
          I tried somthing like you said... Step by step (I also changed the source code)

          The new settings (see attachments)

          Another question: what do these "things" mean exactly?

          (Gesamt: 29) (Work: 2) (Typ: Liste) (OK: 0)

          Especially the "work" / "typ" / "OK"Kind regards
          Angehängte Dateien

          Kommentar


            #6
            It's working now !

            I had a small error with the last test in the send-list, fixed it and now it works.

            Now it's just a whole lot of work to get all data displayed like I want on the visu page but i'm getting there

            Thanx for the help!
            Angehängte Dateien

            Kommentar


              #7
              Wow, visu looks good, think you are on the right way :-)

              Gesamt => that is the number of lines your query has
              Work => if it is the same as "Gesamt" your query run through to the end, if it is a smaller number, it is the line where the error occurred - usually a text which can not be found
              Typ => do not know at all :-(
              OK => it is a 0 if the query did not run through and (I think) a 1 if it run through correctly

              Olaf
              Möchte den Komfort meiner Installation nicht mehr missen!

              Kommentar


                #8
                Thanx, It should become something nice, I'm a graphic designer/webdesigner

                A lot of work has gone in to it allready, 3D floorplandesign and so on...That kind of work I can do, this new stuff is somewhat difficult to get to know...

                Again, thanks for the help!

                Kommentar


                  #9
                  Hi!

                  No problem, if there wouldn't have been other users in the last years who helped me, my installation would definitely not run as it does today!

                  You are a web designer? 3D floorplans? Sounds good...possibly you can return a favour with that when I build my second house :-)

                  have you already seen the "Skandal-Visu" from Helmut (EIB-Tech)? It is an amazing visu, I think the best I have ever seen! Just search for "Skandal-Visu"!

                  And if you have any more questions: Don't hesitate to post here!

                  Regards

                  Olaf
                  Möchte den Komfort meiner Installation nicht mehr missen!

                  Kommentar


                    #10
                    I' will take a look...

                    When the webrequests are done, i'm going to try to get the xxAPI working.

                    It is the only way to get the short/long buttonpress functionality into the ajax visu, or are there easier ways to get this done? (for shutters mostly)

                    Kommentar


                      #11
                      I think Alfreds c-move (available here in the download section) has an option for short and long button press, too.

                      I've not used xxapi - I sold my house before xxapi was available and now I'm just maintaining the installation for the new owner and try to avoid more complexity!

                      Olaf
                      Möchte den Komfort meiner Installation nicht mehr missen!

                      Kommentar


                        #12
                        Just a small update, to show my progress thanks to your help

                        Another 4 pages to go, and then some logic editor work. I installed xxAPI, but need to get to know how it works exactly...
                        Angehängte Dateien

                        Kommentar


                          #13
                          Wow, looks fantastic!
                          Möchte den Komfort meiner Installation nicht mehr missen!

                          Kommentar

                          Lädt...
                          X