Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. Umrechung Grad in Windrichtung HTML

    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

    Umrechung Grad in Windrichtung HTML

    This topic has been deleted. Only users with topic management privileges can see it.
    • paul53
      paul53 @Alero last edited by

      @Alero sagte:

      Oder bin ich jetzt völlig falsch?

      Das ist schon richtig.

      Das Skript ist aktiv und läuft nicht unter der Gruppe global ?

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

        @paul53
        Ich ich stelle immer alle unter common

        Gruß
        Alero

        paul53 2 Replies Last reply Reply Quote 0
        • paul53
          paul53 @Alero last edited by

          @Alero Wenn die ID stimmt

          const idGrad = 'hm-rpc.2.001858A992B979.WIND_DIR'; // Datenpunkt-ID für Windrichtung in Grad
          

          muss auch getriggert werden, also Log-Einträge unter dem Javascript-Editor-Fenster erfolgen.

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

            @paul53
            Also habe ein neues Javascript erstellt. (Unter Common)
            Im Log welches unter dem Javascript ist (erscheint auch im Log von Iobroker) stehtr folgendes.:
            14:53:33.399 info javascript.0 Start javascript script.js.common.Windrichtung
            14:53:33.401 info javascript.0 script.js.common.Windrichtung: registered 1 subscription and 0 schedules

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

              @Alero Die ID stimmt nicht: Es fehlt der Kanal 1:

              const idGrad = 'hm-rpc.2.001858A992B979.1.WIND_DIR'; // Datenpunkt-ID für Windrichtung in Grad 
              
              A 1 Reply Last reply Reply Quote 0
              • A
                Alero @paul53 last edited by

                @paul53
                hab sie nachgetragen
                onst idGrad = 'hm-rpc.2.001858A992B979.1.WIND_DIR'

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

                  HI,

                  jetzt kommt im Log was:
                  script.js.common.Windrichtung: 100 Typ: number
                  Dafür steht jetzt unter Wert unter Javascript kein N mehr.

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

                    @Alero sagte:

                    script.js.common.Windrichtung: 100 Typ: number

                    Das sieht gut aus. Dann sollte jetzt auch die richtige Windrichtung im Datenpunkt javascript.0.Wetter.Windrichtung stehen ?

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

                      @paul53
                      Also unter javascript und wert steht leider nichts.

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

                        @Alero Was erscheint im Log, wenn Du

                        log(dp.state.val + ' Typ: ' + typeof dp.state.val);
                        

                        durch

                        log(dir);
                        

                        ersetzt ?

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

                          @paul53

                          15:11:50.749 info javascript.0 script.js.common.Windrichtung: SSO
                          Jetzt steht es auch unter Java im Feld Wert

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

                            Hi Paul,

                            vielen vielen Dank für deine Ruhe und das du mich mit meinem Problem nicht im Stich gelassen hast.

                            Es geht jetzt.

                            143684a0-12e6-4f8f-a55a-5d1ab0ed3838-grafik.png

                            Gruß
                            Alero

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

                              Moin zusammen, ich habe das gleiche Problem wie oben beschrieben.
                              Fehlt hier der letzte Schritt, der den Erfolg brachte?
                              Unbenannt1.JPG
                              Unbenannt2.JPG
                              Unbenannt3.JPG
                              Unbenannt4.JPG
                              Unbenannt5.JPG

                              Wo liegt der Fehler?

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

                                @aidan sagte: Wo liegt der Fehler?

                                Die Datenpunkt-ID für WIND_DIR ist falsch.

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

                                  @paul53 wie meinste das? ich hätte es ohne Hm-RPC.2 geschrieben, hatte es aber dazugefügt, da es bei euch auch so stand

                                  paul53 2 Replies Last reply Reply Quote 0
                                  • paul53
                                    paul53 @Aidan last edited by

                                    @aidan sagte: wie meinste das?

                                    Eine Datenpunkt-ID für HomeMatic(IP) sieht immer so aus:
                                    hm-rpc.N.Seriennummer.C.WIND_DIR
                                    N = Instanz-Nr.
                                    C = Kanalnr.

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

                                      @aidan sagte: ich hätte es ohne Hm-RPC.2 geschrieben,

                                      Der Name ist nicht die ID.

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

                                        @paul53 Unbenannt1.JPG

                                        Unter ID steht nur WIND_DIR
                                        Scheine da gerade auf dem Schlauch zu stehen.

                                        Homoran paul53 2 Replies Last reply Reply Quote 0
                                        • Homoran
                                          Homoran Global Moderator Administrators @Aidan last edited by

                                          @aidan Wenn du keine Screenshots, sondern den Code als Text in Code-tags posten würdest, kann man auch kopieren

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

                                            @aidan
                                            Das sieht besser aus, aber der Doppelpunkt muss durch einen Punkt ersetzt werden.
                                            Es gibt rechts oben ein Hilfsmittel (Select ID), um die ID auszuwählen.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            911
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            62
                                            4692
                                            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