Navigation

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

    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

    AirSniffer JavaScript?

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

      ich auch den Adapter wiffi-wz drauf und meinen iobroker als ccu eingestellt, da geht bei mir garnichts, ich habe keine CCU.

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

        @acidsubway sagte:

        nur Abfragen mit http://192.168.0.37/?json

        Vorschlag (nicht getestet):

        // Airsniffer einlesen und in Datenpunkte schreiben
        const url = 'http://192.168.0.37/?json';
        const path = '0_userdata.0.Luftdaten.';
        
        schedule('* * * * *', function() { // jede Minute
            request(url, function(err, response, json) {
                if(!err && json) {
                    let vars = JSON.parse(json).vars;
                    for(let i = 0; i < vars.length; i++) {
                        let obj = vars[i];
                        let id = path + obj.homematic_name;
                        if(existsState(id)) setState(id, obj.value, true);
                        else {
                            let role = 'value';
                            if(obj.type == 'string') role = 'info';
                            createState(id, obj.value, {type: obj.type, name: obj.desc, unit: obj.unit.replace('gradC', '°C'), role: role});
                        }
                    } 
                }
            });
        });
        
        A 1 Reply Last reply Reply Quote 1
        • crunchip
          crunchip Forum Testing Most Active @acidsubway last edited by crunchip

          @acidsubway nach Anleitung eingestellt

          @acidsubway sagte in AirSniffer JavaScript?:

          ich auch den Adapter wiffi-wz drauf und meinen iobroker als ccu eingestellt

          im Adapter
          Haupteinstellung

          • Listen on all Ips

          Wiffi Geräte
          Name, Ip deines Gerätes, Zimmer

          auf deinem Gerät die "CCu" einrichten, mit dem Befehl
          IpvonGerät/?ccu:myCCU-IP: IPvomIoBroker
          https://forum.iobroker.net/post/487875

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

            @crunchip
            ich hab ja keine CCU!

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

              @paul53

              DANKE PAUL!!!!!!!!!!!!!!!!!! es geht!!!!!!!

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

                @acidsubway sagte:

                es geht!

                Dann zeige uns mal einen Screenshot der neuen Datenpunkte und markiere das Thema in der Überschrift des ersten Beitrags als [gelöst].

                1 Reply Last reply Reply Quote 0
                • crunchip
                  crunchip Forum Testing Most Active @acidsubway last edited by

                  @acidsubway oh man ich gebs auf🙄
                  ICH HABE EBENFALLS KEINE CCU
                  du kannst dem Gerät die IP deines IOBROKER geben, was die CCU ersetzt

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

                    @crunchip
                    ich habs nicht hinbekommen, werde deine Posts noch mal durchgehen.

                    @paul53

                    hier noch mal ein Fehler der immer wieder aufgetaucht.

                    javascript.0 2021-01-09 14:12:05.537 error (727) Request error: Error: read ECONNRESET

                    2021-01-09 14_10_48-objects - ioBroker.jpg

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

                      @acidsubway sagte:

                      Request error: Error: read ECONNRESET

                      Ist die Abfrage jede Minute vielleicht zu schnell?

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

                        @paul53

                        der sensor ist nicht der schnellst, obwohl es ein esp8266 ist.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        912
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        javascript
                        3
                        15
                        655
                        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