Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Bundesliga Meisterschaft HTML Tabelle

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Bundesliga Meisterschaft HTML Tabelle

    This topic has been deleted. Only users with topic management privileges can see it.
    • dslraser
      dslraser Forum Testing Most Active @liv-in-sky last edited by

      @liv-in-sky
      das sieht doch schon mal prima aus.

      1 Reply Last reply Reply Quote 0
      • sigi234
        sigi234 Forum Testing Most Active @liv-in-sky last edited by

        @liv-in-sky

        Auch für ÖSI?

        liv-in-sky B 2 Replies Last reply Reply Quote 0
        • liv-in-sky
          liv-in-sky @sigi234 last edited by

          @sigi234

          wenn du die daten hast

          @dslraser ist da in einem project - vielleicht kann er dir da helfen - habe nur tabelle gemacht

          sigi234 dslraser 2 Replies Last reply Reply Quote 0
          • sigi234
            sigi234 Forum Testing Most Active @liv-in-sky last edited by

            @liv-in-sky sagte in FussballMeisterschat HTML Tabelle:

            wenn du die daten hast

            Welche brauchst du als was?

            liv-in-sky dslraser 4 Replies Last reply Reply Quote 0
            • dslraser
              dslraser Forum Testing Most Active @liv-in-sky last edited by dslraser

              @liv-in-sky sagte in FussballMeisterschat HTML Tabelle:

              @sigi234

              wenn du die daten hast

              @dslraser ist da in einem project - vielleicht kann er dir da helfen - habe nur tabelle gemacht

              nein, ich bin in keinem Projekt🤣
              Das ist ein neuer Adapter (nicht von mir), aber ich nutze halt kein VIS

              1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @sigi234 last edited by

                @sigi234 hier liegen sie als json vor - ist mir eigentlich egal, wie die da sind - muss dann nur die schleife anpassen

                1 Reply Last reply Reply Quote 0
                • dslraser
                  dslraser Forum Testing Most Active @sigi234 last edited by

                  @sigi234
                  schau doch mal auf der angegebenen Seite vom Adapter, ob es eine Ösi Liga gibt

                  1 Reply Last reply Reply Quote 0
                  • dslraser
                    dslraser Forum Testing Most Active @sigi234 last edited by

                    @sigi234
                    scheint es zu geben

                    Screenshot_20200129-213422_Firefox.jpg

                    1 Reply Last reply Reply Quote 1
                    • 0
                      0018 last edited by

                      Paralell hierzu ist ein Adapter in Entwicklung....oder ist das ein anderes Thema?

                      https://forum.iobroker.net/topic/29506/test-adapter-openligadb-v0-0-xt

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • liv-in-sky
                        liv-in-sky @0018 last edited by

                        @0018 nee - das sind die daten davon - hier geht es eigentlich um die integration in Iqontrol - da braucht man ein html file und mit diesem script, kann man das erzeugen

                        1 Reply Last reply Reply Quote 0
                        • dslraser
                          dslraser Forum Testing Most Active @sigi234 last edited by

                          @sigi234
                          oder leider doch nix da für Ösi

                          Screenshot_20200129-213819_Firefox.jpg

                          1 Reply Last reply Reply Quote 0
                          • sigi234
                            sigi234 Forum Testing Most Active @liv-in-sky last edited by

                            @liv-in-sky

                            21:43:40.549	info	javascript.0 (14352) Stop script script.js.Listen.Fußball_Tabelle
                            21:43:40.555	info	javascript.0 (14352) Start javascript script.js.Listen.Fußball_Tabelle
                            21:43:40.557	error	javascript.0 (14352) script.js.Listen.Fußball_Tabelle: undefined:1
                            21:43:40.558	error	javascript.0 (14352) at writeHTML (script.js.Listen.Fußball_Tabelle:135:17)
                            21:43:40.558	error	javascript.0 (14352) at script.js.Listen.Fußball_Tabelle:170:2
                            
                            liv-in-sky 1 Reply Last reply Reply Quote 0
                            • liv-in-sky
                              liv-in-sky @sigi234 last edited by

                              @sigi234 die beiden datenpunkte hast du - einen musst du selbst anlegen (dpVIS) und ins script eintragen - der andere kommt von dem neuen adapter - ich habe den nicht installiert - daher weiß ich nicht wie der heißt

                              ansonsten zeig mir den inhalt des datenpunktes mit den daten und den raw dazu

                              dslraser 1 Reply Last reply Reply Quote 0
                              • dslraser
                                dslraser Forum Testing Most Active @liv-in-sky last edited by dslraser

                                @liv-in-sky

                                das ist der DP für die Tabelle, gibt natürlich noch mehr, je nach dem was man auswerten möchte.

                                {
                                  "type": "state",
                                  "common": {
                                    "name": "table",
                                    "read": true,
                                    "write": false,
                                    "type": "string",
                                    "role": "value"
                                  },
                                  "native": {},
                                  "from": "system.adapter.openligadb.0",
                                  "user": "system.user.admin",
                                  "ts": 1580309439509,
                                  "_id": "openligadb.0.bl1.2019.table",
                                  "acl": {
                                    "object": 1636,
                                    "state": 1636,
                                    "owner": "system.user.admin",
                                    "ownerGroup": "system.group.administrator"
                                  }
                                }
                                
                                liv-in-sky 1 Reply Last reply Reply Quote 0
                                • liv-in-sky
                                  liv-in-sky @dslraser last edited by

                                  @dslraser string stimmt schon mal - und da liegt ein json drin - so war es gedacht

                                  dslraser 1 Reply Last reply Reply Quote 0
                                  • dslraser
                                    dslraser Forum Testing Most Active @liv-in-sky last edited by

                                    @liv-in-sky
                                    den Inhalt von diesem Beispiel hatte ich Dir ja geschickt, den hatte ich nur mit
                                    https://beautifier.io/ "aufgehübscht", weil es sonst bei mir im Editor eine Zeile war.

                                    liv-in-sky 1 Reply Last reply Reply Quote 0
                                    • liv-in-sky
                                      liv-in-sky @dslraser last edited by

                                      @dslraser ist ok - json ist json - sollte also erkannt werden - ob in einer oder mehrere zeilen

                                      1 Reply Last reply Reply Quote 1
                                      • sigi234
                                        sigi234 Forum Testing Most Active @liv-in-sky last edited by

                                        @liv-in-sky

                                        Läuft. 👍

                                        1 Reply Last reply Reply Quote 0
                                        • dslraser
                                          dslraser Forum Testing Most Active @liv-in-sky last edited by

                                          @liv-in-sky
                                          Mahlzeit, ich bin noch nicht dazu gekommen das Script in Blockly einzubinden. Sehe ich das richtig, das ich das scheudele im Script nicht brauche ? (Der Adapter hat ein einstellbares Polling)
                                          Für iQontrol brauche ich doch auch keinen zusätzlichen eigenen DP, oder wird/soll das html da rein geschrieben werden ? (kann ja eigentlich gleich in den iQontrol Ordner, oder ?)
                                          Für Blockly nehme ich dann nur eine Funktion und packe dann da das JavaScript rein ?

                                          liv-in-sky 1 Reply Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @dslraser last edited by liv-in-sky

                                            @dslraser

                                            du musst das hier

                                            Image 5.png

                                            in das verwandeln, dann ist das schedule weg

                                            Image 6.png

                                            wenn du dann das ganze script in blockly als funktion einfügst und aufrufst, läuft es einmal

                                            wie du dann triggerst ist dir überlassen (evtl auf den datenpunkt mit den json bei änderung

                                            so sollte funktionieren

                                            dslraser 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            746
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript template
                                            9
                                            102
                                            8776
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo