Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. HTML-Tabelle für Time-Switch Adapter

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    HTML-Tabelle für Time-Switch Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @Stephan Schleich last edited by

      @stephan-schleich genau das meinte ich

      1 Reply Last reply Reply Quote 1
      • M
        McOnno last edited by

        Re: HTML-Tabelle für Time-Switch Adapter
        Hallo liv-in-sky,
        bin sehr an der Tabelle interessiert, bekomme sie aber nicht in die Vis!?
        Script habe ich unter dem Ordner "Java.time-switch" abgelegt und gestartet.
        Die HTML-Datei hab ich "t-switch" genannt und das vorgegebene Verz (Vis.0) gelassen.
        Meine Frage nun: mit welchem Widget bekomme ich die HTML-Seite in der VIS angezeigt?
        Habe es mit dem HTML-Widget probiert, hat nur tlw geklappt, Anzeige der Tabelle war oben links, obwohl da gar kein Widget war!?

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

          @mconno

          das standard html widget ist das richtige - erscheint das dann in der linken oberen ecke, läuft was falsch - dann wurde falscher html code generiert

          @mconno sagte in HTML-Tabelle für Time-Switch Adapter:

          Die HTML-Datei hab ich "t-switch" genannt und das vorgegebene Verz (Vis.0) gelassen.

          das braucht man eigentlich nicht mehr - wurde früher für iqontrol gebraucht

          hast du einen datenpunkt angelegt unter =_userdata.0....... - vom typ zeichenkette (du kannst da irgendeinen namen nehmen ? hast du diesen datenpunkt dann in dem widget in geschweifter klammer angegeben (nennt sich binding) ? hast du den datenpunkt auch im script bei der variablen dpVIS angegeben (zeile 9)

          ich nutze den adapter nicht mehr - daher kann ich dir nicht mal sagen, ob das script noch richtig läuft - evtl hat sich am adapter irgendwann mal was geändert

          M Q 2 Replies Last reply Reply Quote 1
          • M
            McOnno @liv-in-sky last edited by

            @liv-in-sky sagte in HTML-Tabelle für Time-Switch Adapter:

            @mconno

            das standard html widget ist das richtige - erscheint das dann in der linken oberen ecke, läuft was falsch - dann wurde falscher html code generiert

            @mconno sagte in HTML-Tabelle für Time-Switch Adapter:

            Die HTML-Datei hab ich "t-switch" genannt und das vorgegebene Verz (Vis.0) gelassen.

            das braucht man eigentlich nicht mehr - wurde früher für iqontrol gebraucht

            hast du einen datenpunkt angelegt unter =_userdata.0....... - vom typ zeichenkette (du kannst da irgendeinen namen nehmen ? hast du diesen datenpunkt dann in dem widget in geschweifter klammer angegeben (nennt sich binding) ? hast du den datenpunkt auch im script bei der variablen dpVIS angegeben (zeile 9)

            ich nutze den adapter nicht mehr - daher kann ich dir nicht mal sagen, ob das script noch richtig läuft - evtl hat sich am adapter irgendwann mal was geändert

            Vielen Dank für die Antwort, habe es mit allen "HTML"-Widges probiert, immer dasselbe, angezeigt wurde es entweder links oben in der Ecke oder gar nichts!
            Im Thread des Adapters selbst bekam ich den Hinweis, das Basic-String Wdg zu nehmen, damit klappte es auf Anhieb!!

            LG Onno

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

              @liv-in-sky

              Was benutzt du denn momentan so?
              hab den Time-Switch Adapter auch am laufen, jedoch kommt es ein paar mal im Jahr vor, dass er sich "aufhängt" und nichts mehr macht. Ein Neustart hilft hier.

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

                @quorle ich habe nicht so viel, was zeitabhängig zu schalten wäre - mache ich mit blockly

                @McOnno - poste mal den inhalt des datenpuntes (der unter dpVIS definiert ist) mit der tabelle ( kopiere den inhalt in eine textdatei und poste/ziehe dann diese datei hier in einen post)

                M 1 Reply Last reply Reply Quote 1
                • M
                  McOnno @liv-in-sky last edited by

                  @liv-in-sky Hat sich alles erledigt! Bekomme nun die Tabelle so angezeigt, wie es sein soll!

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

                    @mconno auch im html standard widget ?

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

                      @liv-in-sky Nein, nur im String widget!

                      Oh, ich sehe gerade, dass der DP "dppVIS" gar nicht da ist, müsste ich den extra anlegen?
                      Bin jetzt bei der Freundin und kann erst am Dienstag weitermachen, melde mich dann...
                      Bestimmt bekommen wir das dann auch so hin, wie es sein soll!

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

                        @mconno ja - der muss angelegt werden - siehe ersten post - erster punkt in der auflistung - typ zeichenkette

                        1 Reply Last reply Reply Quote 0
                        • B
                          buchner51 last edited by

                          Hallo,

                          ich habe auch interesse diese Tabele in IQontrol darzustellen.
                          Oder gibt es einen ganz anderen Weg?

                          Leider nur mit mäßigem Erfolg.

                          Hat das jemand am laufen und könnte mal ein paar Bilder von den Einstellungen der Kachel schicken, Danke.

                          Das Script hab ich angelegt, auch den einen Datenpunkt als Zeichenkette.
                          Da bin ich mir aber nicht so sicher ob der Rest passt.

                          Gruß
                          und schonmal Danke

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

                            @buchner51

                            erzeugt das script eine tabelle ?

                            • steht was im log - fehler oder warnng ?
                            • was steht im datenpunkt, nachdem das scipt lief - kannst du den inhalt des dp-tes mal in code tags hier posten ?

                            wie man das in iqontrol einbindet weiß ich nicht - nutze ich schon lange nicht mehr - aber erstmal muss du sicherstellen, dass da eine tabelle im dp ist

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

                              @liv-in-sky
                              Hier mal meinen angelegten Datenpunkt:

                              {
                                "common": {
                                  "name": "Datenpunkte.VIS/Blockly.TimeSwitch",
                                  "desc": "Manuell erzeugt",
                                  "role": "",
                                  "type": "string",
                                  "read": true,
                                  "write": true
                                },
                                "type": "state",
                                "native": {},
                                "_id": "0_userdata.0.Datenpunkte.VIS/Blockly.TimeSwitch",
                                "acl": {
                                  "object": 1636,
                                  "state": 1636,
                                  "owner": "system.user.admin",
                                  "ownerGroup": "system.group.administrator"
                                },
                                "binary": true,
                                "from": "system.adapter.admin.0",
                                "user": "system.user.admin",
                                "ts": 1710259641380
                              }
                              

                              Im Script laufen folgende Fehler auf:

                              12.3.2024, 17:09:41.018	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:09:41.127	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:09:41.170	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:09:41.171	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:09:41.173	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:09:41.173	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:09:41.173	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:09:41.173	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:09:41.174	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              12.3.2024, 17:10:00.017	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:10:00.020	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:10:00.020	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:10:00.020	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:10:09.318	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:10:09.424	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:10:09.471	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:10:09.472	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:10:09.474	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:10:09.475	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:10:09.475	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:10:09.475	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:10:09.476	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              12.3.2024, 17:10:10.643	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:10:10.715	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:10:10.739	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:10:10.740	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:10:10.741	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:10:10.741	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:10:10.742	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:10:10.742	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:10:10.742	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              12.3.2024, 17:11:00.014	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:11:00.017	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:11:00.017	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:11:00.017	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:12:00.012	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:12:00.016	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:12:00.017	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:12:00.018	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:13:00.027	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:13:00.033	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:13:00.034	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:13:00.034	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:14:00.010	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:14:00.012	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:14:00.012	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:14:00.012	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:15:00.050	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:15:00.056	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:15:00.056	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:15:00.057	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:16:00.026	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:16:00.034	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:16:00.035	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:16:00.035	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:17:00.024	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:17:00.028	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:17:00.028	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:17:00.029	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:18:00.034	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:18:00.039	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:18:00.041	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:18:00.041	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:19:00.024	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:19:00.029	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:19:00.030	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:19:00.030	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:19:29.723	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:19:29.827	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:19:29.845	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:19:29.845	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:19:29.847	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:19:29.847	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:19:29.847	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:19:29.849	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:19:29.849	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              12.3.2024, 17:20:00.028	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:20:00.031	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:20:00.032	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:20:00.032	[error]: javascript.0 (186897)     at Object.<anonymous> (script.js.iqontroll.Uhr_Time-Switch:261:2)
                              12.3.2024, 17:20:20.179	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:20.299	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:20.325	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:20:20.327	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:20:20.328	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:20:20.329	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:20:20.329	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:20:20.329	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:20:20.329	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              12.3.2024, 17:20:27.264	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:27.374	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:27.393	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:20:27.394	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:20:27.396	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:20:27.396	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:20:27.397	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:20:27.397	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:20:27.397	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              12.3.2024, 17:20:39.972	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:40.036	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:40.052	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:20:40.053	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:20:40.054	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:20:40.054	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:20:40.054	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:20:40.055	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:20:40.055	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              12.3.2024, 17:20:41.044	[info ]: javascript.0 (186897) Stop script script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:41.141	[info ]: javascript.0 (186897) Start javascript script.js.iqontroll.Uhr_Time-Switch
                              12.3.2024, 17:20:41.157	[warn ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                              12.3.2024, 17:20:41.158	[info ]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: registered 0 subscriptions, 1 schedule, 0 messages, 0 logs and 0 file subscriptions
                              12.3.2024, 17:20:41.161	[error]: javascript.0 (186897) script.js.iqontroll.Uhr_Time-Switch: TypeError: Cannot read properties of null (reading 'common')
                              12.3.2024, 17:20:41.162	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:161:64
                              12.3.2024, 17:20:41.162	[error]: javascript.0 (186897)     at writeHTML (script.js.iqontroll.Uhr_Time-Switch:148:33)
                              12.3.2024, 17:20:41.162	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:264:2
                              12.3.2024, 17:20:41.162	[error]: javascript.0 (186897)     at script.js.iqontroll.Uhr_Time-Switch:377:3
                              

                              Ich sehe leider den Fehler nicht.

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

                                @buchner51 wieviele zeilen hat das script im editor ?

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

                                  @liv-in-sky

                                  Das steht auf 366 stimmt nicht auf 365

                                     });
                                  
                                  liv-in-sky 1 Reply Last reply Reply Quote 0
                                  • liv-in-sky
                                    liv-in-sky @buchner51 last edited by

                                    @buchner51

                                    hast du lust, dass wir telefonieren und gleichzeitig anydesk verbindung zu dir herstellen - nutze weder script noch adapter - so könnten wir gemeinsam schauen, ob wir eine lösung finden

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

                                      @liv-in-sky
                                      anydesk? muss bald los das wird eng.

                                      //HIER WIRD PFAD UND FILENAME DEFINIERT
                                      const path = "/htmlexample.html";                   //FIlenamen definieren
                                      const home ='iqontrol.0'                                 //wo soll das file im iobroker-file-system liegen ? (oder z.b auch vis.0 iqontrol.meta)
                                      let   braucheEinFile=false;                          // bei true wird ein file geschrieben
                                      let   braucheEinVISWidget=true;                     // bei true wird ein html-tabelle in einen dp geschrieben - siehe nächste zeile
                                      let dpVIS="0_userdata.0.Datenpunkte.VIS/Blockly.TimeSwitch"        //WICHTIG wenn braucheEinVISWidget auf true gesetzt !!  dp zusätzlich für VIS-HTML-Basic-Widget
                                      let mySchedule=" * * * * * ";                       //jede minute  
                                       let htmlColorValue="yellow";
                                       let htmlColorDisabled="#868A08"
                                      

                                      Das sind ja die ersten Zeilen, ist es richtig das nach dpVis keine Leerzeichen sind?
                                      Auch habe ich werte im Datenpunkt aber mit altem Zeitstempel.

                                      liv-in-sky 4 Replies Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @buchner51 last edited by

                                        @buchner51

                                        bin mir nicht sicher, ob es gut ist, einen schrägstrich im datenpunkt zu nutzen - das würde ich mal ändern

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

                                          @buchner51 sagte in HTML-Tabelle für Time-Switch Adapter:

                                          richtig das nach dpVis keine Leerzeichen sind?

                                          ist unwichtig - kannste auch machen, wenn du willst

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

                                            @buchner51 ich verstehe das nicht

                                            pt.js.iqontroll.Uhr_Time-Switch: Object "default.state" does not exist
                                            

                                            erkenne darin keinen sinn

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            582
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript
                                            7
                                            49
                                            3815
                                            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