Ankündigung

Einklappen
Keine Ankündigung bisher.

Wetterdaten von Webseite mir Gira Homeserver abfragen Einsteiger

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

    #16
    Ok. i change somthing like this.
    The http://wetter.com change to www.wetter.com.
    The Event-BiDir refresh is 120 sec. this works fine, but the Temparatur of the QuadClient Diagram always 0°C
    You do not have permission to view this gallery.
    This gallery has 3 photos.

    Kommentar


      #17
      I don't know for sure, but I think the "(Work: 2)" means that the evaluation stumbles over the second step. If you still have the "für" in that text field, then remove that. In your screenshot I cannot tell, the 'Wert' column is too narrow to show.

      Kommentar


        #18
        Thank you very much!!!
        So with the EventBiDir now seems to fit. In the temperature profile of the QuadClient I see 1 ° C. I have to watch this. According to Wetter.com it should currently be 2 ° C. Can you read the value anywhere else to see it all fit?

        You do not have permission to view this gallery.
        This gallery has 1 photos.

        Kommentar


          #19
          The "(OK: 1)" means that the evaluation was successful. If that "WetterAktuell" is an internal KO, you can see it in your experte eibmon (the group monitor of experte) if you assign it an internal address, such as 111/1/1. However, I assume you don't have any other logic handling of that KO going on, so what you see in your visu should be what was picked up from the website.
          I don't know that German weather website, but here in the Netherlands the equivalent sites only refresh every 10 minutes at best. So, if the HS read the page 'now', and you check it a little later, a refresh could have occurred. I would think the reading you get is accurate, and true.

          Bram

          Kommentar


            #20
            Okay watch the times and then give again modest. Thank you for your help. Can you tell me if I can run on the slebs method in php script?

            Andy

            Kommentar


              #21
              Not sure what you mean, reply in German is fine. You may have used Google Translate?

              Anyhow, to answer what I think your question is: Yes, you can do the same thing using some script. I actually do the web request to obtain my local weather data from a Raspberry Pi using Python. The principle is the same as what you do with the web request from the HS.

              Bram

              Kommentar


                #22
                Ja genau richtig!!! Würde gerne ein PHP Script auf dem Raspberry aufrufen. Das wiederrum ein Shell Script aufruft. Das Shell Script steuert ein Relais.
                //////////////////////////////////////////////////
                PHP Script:
                <?php

                shell_exec ( '/var/www/html/an.sh');

                ?>
                ///////////////////////////////////////////////////
                Shell Script: (an.sh
                #!/bin/sh

                gpio export 3 out
                gpio -g write 3 1


                funktioniert das genauso?

                Kommentar


                  #23
                  Hm, I think this would be a topic for another forum. I am not familiar with PHP, I do everything with Python on the Rasp. Yes, there is interaction between shell scripts and Python. For some of the scripts I send the result to the HS using IP telegrams, and vice-versa.

                  For this thread, at least it appears you have the webabfrage working, so that ought to be fine and resolved.

                  Bram

                  Kommentar


                    #24
                    Der Wert bleibt seit ziemlich genau einer Stunde immer derselbe? Irgenwas scheint doch noch nicht zu passen.
                    Hab dem iKO eine Adresse zugewiesen die 111/1/1. Im Eibmon wird das auch als SET 1 angezeigt dennoch hab ich immer den selben wert?

                    Kommentar


                      #25
                      Did you remove the direct KO from the output box, so that only the command remains? Otherwise, you will always get the value "1" (but not a value with °C as part of the 14-byte object).
                      temp.jpg

                      Kommentar


                        #26
                        Ja war entfernt leider immer noch die "1"


                        Sehe grad auf der Seite ist auch 1 Grad aktuell. Werde ich noch warten müssen um das zu checken!!!
                        Zuletzt geändert von Andreas1986; 13.01.2017, 17:09.

                        Kommentar


                          #27
                          The KO you use to capture the temperature will not show as a 'SET'. Eibmon should look like the attached. Look at your KO, right-click, select 'references', and see where you all use this GA. There should nowhere be an output for that GA. It should only show up in the web request listing, and in your visu. temp.jpg

                          Bram

                          Kommentar


                            #28
                            Okay bei mir schaut das leider so aus
                            You do not have permission to view this gallery.
                            This gallery has 1 photos.

                            Kommentar


                              #29
                              Jetzt scheint es zu funktionieren. Hab nur vor dem °C noch so ein Â. wie bekomme ich das weg?
                              You do not have permission to view this gallery.
                              This gallery has 1 photos.

                              Kommentar


                                #30
                                Set the checkbox to use the conversion table, it is an option in the Webabfrage. Tab 'Reception', then you find it under 'Wert als Klartext'. You already set the proper conversion in the project table.
                                Keep in mind that the value is a 14-byte text, so for the graph you need to convert it to a number.

                                Kommentar

                                Lädt...
                                X