Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. [gelöst] Gerät per Mac Adr & Blockly ansprechen

    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

    [gelöst] Gerät per Mac Adr & Blockly ansprechen

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

      @fastfoot also ich bekome bei arp -a genau 5 geräte angezeigt

      mit arp-scan --localnet sind es alle

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

        @liv-in-sky sagte in Gerät per Mac Adr & Blockly ansprechen:

        arp-scan

        nein nein also es werden viele Geräte angezeigt

        1 Reply Last reply Reply Quote 0
        • F
          fastfoot @Aphofis last edited by

          @Aphofis
          dann müsste es eigentlich funktionieren. Probiere mal arp -a|grep DEINE_MAC| cut -f1 -d" ". Das müsste dir den Namen zurückgeben. arp -a|grep DEINE_MAC|cut -f2 -d" "|cut -f2|cut -c2-16|cut -f1 -d ")" die IP Adresse.

          1 Reply Last reply Reply Quote 1
          • haselchen
            haselchen Most Active last edited by

            Stehe ich aufm Schlauch oder müsste @Aphofis nicht einfach 2 verschiedene Adressbereiche in seinen Routern vergeben , um das Problem zu lösen ?
            Z.B.
            Fritzbox 192.168.2... .
            Tp Link 192.168.0......

            Aphofis F 2 Replies Last reply Reply Quote 0
            • Aphofis
              Aphofis last edited by

              Bei abfrage arp-scan -localnet kommt das

              pi@AquaPi:~ $ arp-scan -localnet
              -bash: arp-scan: Kommando nicht gefunden.
              
              1 Reply Last reply Reply Quote 0
              • F
                fastfoot @liv-in-sky last edited by

                @liv-in-sky sagte in Gerät per Mac Adr & Blockly ansprechen:

                @fastfoot also ich bekome bei arp -a genau 5 geräte angezeigt

                mit arp-scan --localnet sind es alle

                arp-scan ist kein Standardprogramm. Ich schrieb ja dass nur die Geräte gelistet werden welche Traffic hatten. Mit ping fehlende_ip-adresse kannst du das prüfen

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

                  @haselchen
                  nein DHCP ist Fritzbox vergibt adressen
                  Fritzbox 192.168.0.1
                  Aqua_Net 192.168.0.2
                  Aqua_Repeater 192.168.0.33
                  alle Geräte bekommen von der Fritzbox ihre IP die auch fixiert ist.
                  jeweils alle Geräte die nur ins Aqua_Net dürfen sind per MAC adresse deklariert!
                  Ich sage ja nihct das alle Geräte ständig sporadisch eine neue IP bekommen es sind nur 3 NodeMCU die mucken machen und ausgetauscht habe ich die auch schon

                  haselchen 1 Reply Last reply Reply Quote 0
                  • Aphofis
                    Aphofis @fastfoot last edited by

                    @fastfoot
                    Ich hatte in der abfrage die Mac adresse eingegeben von dem Gerät was ich auslesen wollte.
                    dann kommt dies in der Log dabei raus

                    javascript.0	2020-06-23 20:52:29.139	info	(31412) script.js.ESP_Reboot.Aqu_Control_IP_Abfrage: http:///cm?user=admin&mein_benutzer=mein_passwort
                    javascript.0	2020-06-23 20:52:29.094	info	(31412) script.js.ESP_Reboot.Aqu_Control_IP_Abfrage: registered 0 subscriptions and 0 schedules
                    javascript.0	2020-06-23 20:52:29.036	info	(31412) Start javascript script.js.ESP_Reboot.Aqu_Control_IP_Abfrage
                    javascript.0	2020-06-23 20:52:27.575	info	(31412) Stop script script.js.ESP_Reboot.Aqu_Control_IP_Abfrage
                    
                    F 1 Reply Last reply Reply Quote 0
                    • F
                      fastfoot @haselchen last edited by

                      @haselchen
                      er schrieb doch dass das gleiche Netz benutzt wird...

                      Aphofis 1 Reply Last reply Reply Quote 0
                      • Aphofis
                        Aphofis @fastfoot last edited by

                        @fastfoot
                        ein zweites subnetz habe ich getestet! dann ist alles völlig durcheinander !!!
                        so ist es besser mit einem DHCP

                        1 Reply Last reply Reply Quote 0
                        • F
                          fastfoot @Aphofis last edited by

                          @Aphofis sagte in Gerät per Mac Adr & Blockly ansprechen:

                          @fastfoot
                          Ich hatte in der abfrage die Mac adresse eingegeben von dem Gerät was ich auslesen wollte.
                          dann kommt dies in der Log dabei raus

                          nein, erstmal so auf der Konsole probieren 🙂

                          Aphofis 1 Reply Last reply Reply Quote 0
                          • Aphofis
                            Aphofis @fastfoot last edited by

                            @fastfoot
                            Ich meinte dein blockly wäre cool wenn das geht !!! nur was soll ich denn in der konsole eingeben

                            F 1 Reply Last reply Reply Quote 0
                            • Aphofis
                              Aphofis last edited by

                              arp listet 21 Geräte bzw zugriffe auf! am iobroker bzw Aqua_Net sind 18 Geräte verbunden.

                              1 Reply Last reply Reply Quote 0
                              • F
                                fastfoot @Aphofis last edited by

                                @Aphofis sagte in Gerät per Mac Adr & Blockly ansprechen:

                                @fastfoot
                                Ich meinte dein blockly wäre cool wenn das geht !!! nur was soll ich denn in der konsole eingeben

                                das was ich vor 8Min gepostet hatte 🙂 arp -a|grep DEINE_MAC| cut -f1 -d" " und dann noch den zweiten Befehl

                                Aphofis 2 Replies Last reply Reply Quote 0
                                • Aphofis
                                  Aphofis @fastfoot last edited by

                                  @fastfoot
                                  ups sorry muss ich überlesen haben 👍

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

                                    @fastfoot kein thema - ich kann ja das exec ändern, wenn ich es mal brauche

                                    @Aphofis arp-scan muss installiert werde - aber mach mal mit @fastfoot weiter - bin mir sicher, ihr findet den fehler nochund - arp scheint ja bei dir zu funktionieren

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

                                      @liv-in-sky ja arp ist installiert und läuft!
                                      system wurde sauber aufgesetzt auf meinem Pi4

                                      1 Reply Last reply Reply Quote 0
                                      • Aphofis
                                        Aphofis @fastfoot last edited by

                                        @fastfoot
                                        die Abfrage ergibt ..... nix

                                        
                                        pi@AquaPi:~ $ arp -a|grep 98:da:c4:7a:ff:1a| cut -f1 -d" "
                                        pi@AquaPi:~ $
                                        
                                        
                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          fastfoot @Aphofis last edited by

                                          @Aphofis sagte in Gerät per Mac Adr & Blockly ansprechen:

                                          @fastfoot
                                          die Abfrage ergibt ..... nix

                                          das ist der Grund für die leere Rückgabe. Wenn du arp -a eingibst, wird dann deine Adresse gelistet? Aus einem vorigen Post dachte ich dass dasso ist, hier wird sie aber nicht gefunden. zur Not nimm die MAC der Fritte zum testen.

                                          Aphofis 1 Reply Last reply Reply Quote 0
                                          • Aphofis
                                            Aphofis @fastfoot last edited by

                                            @fastfoot
                                            be patient i will try

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            896
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            158
                                            11040
                                            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