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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Bundesliga Meisterschaft HTML Tabelle

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

                              @liv-in-sky
                              Kurze Rückmeldung und Danke 👍
                              Ich bin eben mal dazu gekommen es in iQontrol ein zu bauen.

                              iQontrol Button
                              Screenshot_20200131-184217_Chrome.jpg

                              Ansicht auf dem Handy in quer passt (mit scrollen)

                              Screenshot_20200131-184105_Chrome.jpg

                              Ansicht auf dem Handy in hochkant passt noch nicht ganz in der Breite, damit spiele ich noch etwas rum (mit scrollen)

                              Screenshot_20200131-184148_Chrome.jpg

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

                                @liv-in-sky
                                Gladbach braucht zu viel Platz (der laaange Name 😀)

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

                                  @dslraser in den Daten gibt es einen shortname

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

                                    @OliverIO sagte in FussballMeisterschat HTML Tabelle:

                                    @dslraser in den Daten gibt es einen shortname

                                    Gleich ein html in Deinem Adapter bereit zu stellen ist sicher auch ganz schön Aufwand ?
                                    Ich habe es wegen iQontrol (VIS nutze ich nicht) für mich so mit der Hilfe von @liv-in-sky gelöst, da er ohnehin gerade einige Tabellen bereit stellt.
                                    An dieser Stelle mal danke für Deinen Adapter @OliverIO 👍

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

                                      @dslraser sollen wir das ganze auf den shortname umrüsten ?

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

                                        @dslraser

                                        hier ShortName eintragen

                                        Image 7.png

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

                                          @liv-in-sky
                                          ich schau später mal...(muss nochmal kurz weg)

                                          1 Reply Last reply Reply Quote 0
                                          • OliverIO
                                            OliverIO @dslraser last edited by

                                            @dslraser ne eigentlich nicht. Wenn das grundgerüst steht geht es Flux. Der ganze Adapter war in nicht mal 2 Wochen nebenher fertig inklusive 3 konfigurierbaren Widgets

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            967
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript template
                                            9
                                            102
                                            7829
                                            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