Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Hilfe bei Javaskript Device Counter

    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

    Hilfe bei Javaskript Device Counter

    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Adnim last edited by

      japp exakt so sieht es bei mir aus, nimm mal die // vor der Zeile 11 weg und starte das skript neu, das geht nicht mehr und habe ich auskommentiert das ich die andren funktionen erstmal nutzen kann

      Glasfaser 1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser @Adnim last edited by

        @Adnim

        Alles in Ordnung ,keine ERROR Meldung ,

        2.JPG

        1 Reply Last reply Reply Quote 0
        • A
          Adnim last edited by

          hmm ich starte mal neu

          A 1 Reply Last reply Reply Quote 0
          • A
            Adnim @Adnim last edited by

            @Adnim sagte in Hilfe bei Javaskript Device Counter:

            hmm ich starte mal neu

            hilft nicht kommt immer die obige fehlermeldung

            Glasfaser 1 Reply Last reply Reply Quote 0
            • Glasfaser
              Glasfaser @Adnim last edited by Glasfaser

              @Adnim

              Verstehe ich nicht !?

              Hast du mal alle Datenpunkte gelöscht und das Skript dann mal neugestartet , damit die Datenpunkte " neu "erzeugt werden !!

              Zeig mal einen aktuellen Log vom Fehler !
              und einen Screenshot von den Datenpunkten , der besser zu erkennen ist.

              1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @Adnim last edited by

                @Adnim sagte:

                $('channel[state.id=.ERROR]')

                Was liefert ?

                $('channel[state.id=*.ERROR*]').each(function(id, i) {
                   log(id);
                });
                
                1 Reply Last reply Reply Quote 0
                • A
                  Adnim last edited by

                  @paul53 sagte in Hilfe bei Javaskript Device Counter:

                  @Adnim sagte:

                  $('channel[state.id=.ERROR]')

                  Was liefert ?

                  Da bekomm ich nen error, irgendwo fehlt eine klammer?

                  Screenshot_1.png

                  @Glasfaser
                  habe die objekte gelöscht sie werden angelegt ,dann stürzt das skript aber mit der Fehlermeldung ab, neustart hilft dann auch nicht
                  Screenshot_2.png

                  Screenshot_3.png

                  Danke euch!

                  Glasfaser 1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser @Adnim last edited by

                    @Adnim

                    … das Skript von paul53 in ein neues Skript starten !!!

                    A 1 Reply Last reply Reply Quote 0
                    • A
                      Adnim @Glasfaser last edited by

                      @Glasfaser
                      oh ok, habe ich versucht. Da kommt nix nur Start Skript im Log

                      Screenshot_4.png

                      Glasfaser 1 Reply Last reply Reply Quote 0
                      • Glasfaser
                        Glasfaser @Adnim last edited by

                        @Adnim

                        so muss es aussehen :

                        1.JPG

                        1 Reply Last reply Reply Quote 0
                        • A
                          Adnim last edited by

                          sieht bei mir aber so aus

                          Screenshot_5.png

                          Glasfaser 1 Reply Last reply Reply Quote 0
                          • Glasfaser
                            Glasfaser @Adnim last edited by

                            @Adnim

                            Datenpunkte mit ERROR ,die bei mir z.B aufgelistet werden :

                            1.JPG

                            1 Reply Last reply Reply Quote 0
                            • A
                              Adnim last edited by

                              ja habe ich auch ne ganze menge von den Errors States ,148 laut dem Skript er zählt sie ja beim ersten start

                              aber irgendwie findet er sie nicht mit Pauls Skript, habe Neustart und den Fixer aber gleiches Ergebnis

                              Glasfaser 1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @Adnim last edited by Glasfaser

                                @Adnim

                                Gib mal anstatt " ERROR" im Skript von paul53 ,"UNREACH" ein

                                Zeig mal bitte die ausgabe von

                                iobroker list adapters
                                
                                A 1 Reply Last reply Reply Quote 1
                                • A
                                  Adnim @Glasfaser last edited by

                                  @Glasfaser sagte in Hilfe bei Javaskript Device Counter:

                                  @Adnim
                                  Gib mal anstatt " ERROR" im Skript von paul53 ,"UNREACH" ein
                                  Zeig mal bitte die ausgabe von

                                  Ok habe UNREACH , ALIVE, CONNECTED nix führt zu einer ausgabe im LOG sieht immer so aus

                                  Screenshot_6.png

                                  iobroker list adapters
                                  Screenshot_7.png
                                  Screenshot_8.png
                                  Screenshot_9.png

                                  Lenny.CB 1 Reply Last reply Reply Quote 0
                                  • Lenny.CB
                                    Lenny.CB Most Active @Adnim last edited by

                                    @Adnim du hast javascript 4.3.0, da klappts ja momentan nicht so mit den Logeinträgen.
                                    Funktionieren soll (ungetestet)
                                    log(id, 'info');
                                    oder
                                    Console.log(id);

                                    Vielleicht läuft der Selector-codeschnipsel von paul, nur zeigt er nichts wegen des Logfehlers.

                                    A 1 Reply Last reply Reply Quote 1
                                    • A
                                      Adnim @Lenny.CB last edited by Adnim

                                      @Lenny-CB sagte in Hilfe bei Javaskript Device Counter:

                                      log(id, 'info');

                                      das funzt korrekt, Danke dir Lenny

                                      läuft deswegen auch das Haupt Skript nicht richtig?bzw das sind zwei Probleme glaube ich?

                                      Lenny.CB 1 Reply Last reply Reply Quote 0
                                      • Lenny.CB
                                        Lenny.CB Most Active @Adnim last edited by

                                        @Adnim, ich denke das wird noch eine andere Baustelle sein.

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

                                        Support us

                                        ioBroker
                                        Community Adapters
                                        Donate

                                        621
                                        Online

                                        31.8k
                                        Users

                                        80.0k
                                        Topics

                                        1.3m
                                        Posts

                                        javascript
                                        4
                                        24
                                        1788
                                        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