Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Hardware
    4. Blink Camera System

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Blink Camera System

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Soukai @Pischleuder last edited by Soukai

      @pischleuder leider macht blockly immer noch kein bild in das Verzeichnis 😕

      leider immer noch nichts. Egal wie

      P 1 Reply Last reply Reply Quote 0
      • P
        Pischleuder @Soukai last edited by Pischleuder

        @soukai

        1.) du hast in Deinem blockly das python voran entfernt,
        ich würde alle scripte in /opt/iobroker packen, wegen der Rechte
        2.) was für eine Kamera ist das
        3.) wie sieht die bild.py jetzt genau aus
        4.) wird das script jetzt ausgeführt, unabhängig davon ob ein bild in das Verzeichnis gelegt wird

        S 1 Reply Last reply Reply Quote 1
        • S
          Soukai @Pischleuder last edited by Soukai

          @pischleuder

          @pischleuder said in Blink Camera System:

          @soukai

          1.) du hast in Deinem blockly das python voran entfernt

          4ded80fe-7508-4fb9-b699-f828b283b5f7-grafik.png

          2.) was für eine Kamera ist das

          06cea9d0-1d2a-4179-bae1-6b78733b7238-grafik.png

          3.) wie sieht die bild.py jetzt genau aus

          #!/usr/bin/python3
          import requests
          
          from blinkpy.blinkpy import Blink
          from blinkpy.auth import Auth
          from blinkpy.helpers.util import json_load
          from blinkpy.camera import BlinkCamera
          
          blink = Blink()
          auth = Auth({"username": 'x', "password": 'x'}, no_prompt=True)
          blink.auth = auth
          blink.start()
          
          #auth.send_auth_key(blink, "x")
          #blink.setup_post_verify()
          
          ###### hier den Dateinamen/Pfad eintragen, den das snapshot Bild erhalten soll - bei mir Flur und Garten Kamera  #####
          
          bild = './haustuer.jpg'
          #bild2 = '/home/saeko/blinkpy/Tuerklingel.jpg'
          #for name, camera in blink.cameras.items(): print(name), print(camera.attributes)
          
          #### hier Eure Kamera 1 eintragen und weitere Einträge für mehr Kameras vornehmen ####
          
          camera = blink.cameras['Haustür']
          camera.snap_picture()
          blink.refresh()
          camera.image_to_file(bild)
          
          #payload = {'value':bild}
          #r = requests.get("http://192.168.178.92:8081/set/0_userdata.0.snapcamera1", params=payload)
          
          #### hier Eure Kamera 2 eintragen und weitere Einträge für mehr Kameras vornehmen ####
          
          #camera = blink.cameras['Türklingel']
          #camera.snap_picture()
          #blink.refresh()
          #camera.image_to_file(bild2)
          
          #payload = {'value':bild}
          #r = requests.get("http://192.168.178.92:8081/set/0_userdata.0.snapcamera1", params=payload)
          
          

          4.) wird das script jetzt ausgeführt, unabhängig davon ob ein bild in das Verzeichnis gelegt wird

          In der Konsole ja.
          das kommt in der konsole

          saeko@raspberrypi:/opt/iobroker $ ./bild.py
          Could not extract camera info: {'message': 'Camera not found', 'code': 500}
          Expected json response from https://rest-e004.immedia-semi.com/network/unknown/camera/unknown/signals, but received: 406: Not Acceptable
          Could not retrieve calibrated temperature.
          Could not find thumbnail for camera unknown
          Expected json response from https://rest-e004.immedia-semi.com/network/66328/camera/unknown/config, but received: 406: Not Acceptable
          Could not extract camera info: None
          Expected json response from https://rest-e004.immedia-semi.com/network/unknown/camera/unknown/signals, but received: 406: Not Acceptable
          Could not retrieve calibrated temperature.
          Could not find thumbnail for camera unknown
          

          Wie prüfe ich es in blockly? Zumindest kommt keine Fehlermeldung in der Konsole

          be006ec9-e20b-48a8-9e8c-0457da633b1a-grafik.png

          P 2 Replies Last reply Reply Quote 0
          • P
            Pischleuder @Soukai last edited by

            @soukai sagte in Blink Camera System:

            @pischleuder

            @pischleuder said in Blink Camera System:

            @soukai

            1.) du hast in Deinem blockly das python voran entfernt

            4ded80fe-7508-4fb9-b699-f828b283b5f7-grafik.png

            hier muss auch der Pfad mit angegeben werden:
            /opt/iobroker/bild.py ebenso beim jpg

            S 1 Reply Last reply Reply Quote 1
            • S
              Soukai @Pischleuder last edited by

              @pischleuder

              Gesagt, getan. Das hatte ich dann auch schon versucht... Leider ohne Erfolg...

              e0ace3c0-59e7-443b-b07e-255b26da3af1-grafik.png

              P 1 Reply Last reply Reply Quote 0
              • P
                Pischleuder @Soukai last edited by Pischleuder

                @soukai sagte in Blink Camera System:

                @pischleuder

                #!/usr/bin/python3
                import requests
                
                from blinkpy.blinkpy import Blink
                from blinkpy.auth import Auth
                from blinkpy.helpers.util import json_load
                from blinkpy.camera import BlinkCamera
                
                blink = Blink()
                auth = Auth({"username": 'x', "password": 'x'}, no_prompt=True)
                blink.auth = auth
                blink.start()
                
                #auth.send_auth_key(blink, "x")
                #blink.setup_post_verify()
                
                ###### hier den Dateinamen/Pfad eintragen, den das snapshot Bild erhalten soll - bei mir Flur und Garten Kamera  #####
                
                bild = './haustuer.jpg'
                #bild2 = '/home/saeko/blinkpy/Tuerklingel.jpg'
                #for name, camera in blink.cameras.items(): print(name), print(camera.attributes)
                
                #### hier Eure Kamera 1 eintragen und weitere Einträge für mehr Kameras vornehmen ####
                
                camera = blink.cameras['Haustür']
                camera.snap_picture()
                blink.refresh()
                camera.image_to_file(bild)
                
                

                hier wäre es ggf. angeraten, dass zu ergänzen:

                
                time.sleep(10)
                blink.refresh(force=True)
                
                

                das kann wichtig sein, weil er dir ggf. sonst das alte (vorherige) Bild aufgrund von cache Problemen sendet.

                S 1 Reply Last reply Reply Quote 1
                • P
                  Pischleuder @Soukai last edited by Pischleuder

                  @soukai sagte in Blink Camera System:

                  @pischleuder

                  Gesagt, getan. Das hatte ich dann auch schon versucht... Leider ohne Erfolg...

                  e0ace3c0-59e7-443b-b07e-255b26da3af1-grafik.png

                  das ist klar, dass per telegramm nur der Text übermittelt wird, weil du ja keine Datei anhängst, es
                  wird nur das gesendet, was in " bla bla " steht.
                  Zum Versenden des nun hoffentlich vorhandenem Bildes solltest du ein javascript nehmen und das aus dem blockly aufrufen.

                  S 1 Reply Last reply Reply Quote 1
                  • S
                    Soukai @Pischleuder last edited by

                    @pischleuder Wenn ein Bild drin ist, schickt er mir jedoch das bild

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      Pischleuder @Soukai last edited by Pischleuder

                      @soukai

                      dann solltest du das korrekt anpassen:

                      bild = './haustuer.jpg'
                      

                      also auf /opt/iobroker/haustuer.jpg

                      1 Reply Last reply Reply Quote 1
                      • S
                        Soukai @Pischleuder last edited by Soukai

                        @pischleuder

                        
                        time.sleep(10)
                        blink.refresh(force=True)
                        
                        

                        habe das ans Ende angehängt und in der Konsole kommt:

                        saeko@raspberrypi:/opt/iobroker $ ./bild.py
                        Could not extract camera info: {'message': 'Camera not found', 'code': 500}
                        Expected json response from https://rest-e004.immedia-semi.com/network/unknown/camera/unknown/signals, but received: 406: Not Acceptable
                        Could not retrieve calibrated temperature.
                        Could not find thumbnail for camera unknown
                        Expected json response from https://rest-e004.immedia-semi.com/network/66328/camera/unknown/config, but received: 406: Not Acceptable
                        Could not extract camera info: None
                        Expected json response from https://rest-e004.immedia-semi.com/network/unknown/camera/unknown/signals, but received: 406: Not Acceptable
                        Could not retrieve calibrated temperature.
                        Could not find thumbnail for camera unknown
                        Traceback (most recent call last):
                          File "/opt/iobroker/./bild.py", line 28, in <module>
                            time.sleep(10)
                        NameError: name 'time' is not defined
                        
                        

                        Code bis jetzt:

                        #!/usr/bin/python3
                        import requests
                        
                        from blinkpy.blinkpy import Blink
                        from blinkpy.auth import Auth
                        from blinkpy.helpers.util import json_load
                        from blinkpy.camera import BlinkCamera
                        
                        blink = Blink()
                        auth = Auth({"username": 'x', "password": 'x'}, no_prompt=True)
                        blink.auth = auth
                        blink.start()
                        
                        #auth.send_auth_key(blink, "x")
                        #blink.setup_post_verify()
                        
                        ###### hier den Dateinamen/Pfad eintragen, den das snapshot Bild erhalten soll - bei mir Flur und Garten Kamera  #####
                        
                        bild = './haustuer.jpg'
                        
                        #### hier Eure Kamera 1 eintragen und weitere Einträge für mehr Kameras vornehmen ####
                        
                        camera = blink.cameras['Haustür']
                        camera.snap_picture()
                        blink.refresh()
                        camera.image_to_file(bild)
                        
                        time.sleep(10)
                        blink.refresh(force=True)
                        
                        
                         
                        
                        P 1 Reply Last reply Reply Quote 0
                        • P
                          Pischleuder @Soukai last edited by

                          @soukai

                          du musst dann auch unter:
                          import requests
                          import time

                          setzen

                          S 1 Reply Last reply Reply Quote 1
                          • S
                            Soukai @Pischleuder last edited by

                            @pischleuder

                            Wurde eingefügt. Konsole geht. Blockly immer noch nicht...

                            P 1 Reply Last reply Reply Quote 0
                            • P
                              Pischleuder @Soukai last edited by Pischleuder

                              @soukai

                              unter javascript adapter hattest du aber "exec" und "send to host" erlauben angeklickt ? Ansonsten weiß ich nun auch nicht mehr weiter, denn es sollte funktionieren.

                              S 1 Reply Last reply Reply Quote 1
                              • S
                                Soukai @Pischleuder last edited by Soukai

                                @pischleuder
                                Send to host war bei mir nicht drin. Aber leider hat sich da wieder nichts geändert. Bin nochmal alle Cmds durchgegangen und bin da auf etwas gestoßen, wobei ich mir nicht mehr sicher bin, obs egal war oder nicht.

                                Habe den Befehl mal aufgerufen:

                                saeko@raspberrypi:/opt/iobroker $ sudo -u iobroker python3 /opt/iobroker/bild.pyTraceback (most recent call last):
                                  File "/opt/iobroker/bild.py", line 5, in <module>
                                    from blinkpy.blinkpy import Blink
                                ModuleNotFoundError: No module named 'blinkpy'
                                
                                

                                und dann bei dem folgenden Befehl, die Meldung erhalten, dass es installiert wurde. Nun ist die Fehlermeldung verschwunden. Jedoch permission denied.

                                saeko@raspberrypi:~/blinkpy $ sudo -H -u iobroker pip3 install --upgrade dist/*.whl
                                Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                Processing ./dist/blinkpy-0.20.0.dev0-py3-none-any.whl
                                Requirement already satisfied: requests>=2.24.0 in /usr/local/lib/python3.9/dist-packages (from blinkpy==0.20.0.dev0) (2.27.1)
                                Requirement already satisfied: python-slugify>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy==0.20.0.dev0) (4.0.1)
                                Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy==0.20.0.dev0) (2.8.2)
                                Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.1->blinkpy==0.20.0.dev0) (1.16.0)
                                Requirement already satisfied: text-unidecode>=1.3 in /usr/local/lib/python3.9/dist-packages (from python-slugify>=4.0.1->blinkpy==0.20.0.dev0) (1.3)
                                Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy==0.20.0.dev0) (2.10)
                                Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy==0.20.0.dev0) (2020.6.20)
                                Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/dist-packages (from requests>=2.24.0->blinkpy==0.20.0.dev0) (2.0.12)
                                Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests>=2.24.0->blinkpy==0.20.0.dev0) (1.25.11)
                                Installing collected packages: blinkpy
                                Successfully installed blinkpy-0.20.0.dev0
                                saeko@raspberrypi:~/blinkpy $ sudo -u iobroker python3 /opt/iobroker/bild.py    Could not extract camera info: {'message': 'Camera not found', 'code': 500}
                                Expected json response from https://rest-e004.immedia-semi.com/network/unknown/camera/unknown/signals, but received: 406: Not Acceptable
                                Could not retrieve calibrated temperature.
                                Could not find thumbnail for camera unknown
                                Expected json response from https://rest-e004.immedia-semi.com/network/66328/camera/unknown/config, but received: 406: Not Acceptable
                                Could not extract camera info: None
                                Expected json response from https://rest-e004.immedia-semi.com/network/unknown/camera/unknown/signals, but received: 406: Not Acceptable
                                Could not retrieve calibrated temperature.
                                Could not find thumbnail for camera unknown
                                Traceback (most recent call last):
                                  File "/opt/iobroker/bild.py", line 27, in <module>
                                    camera.image_to_file(bild)
                                  File "/home/iobroker/.local/lib/python3.9/site-packages/blinkpy/camera.py", line 241, in image_to_file
                                    with open(path, "wb") as imgfile:
                                PermissionError: [Errno 13] Permission denied: './haustuer.jpg'
                                

                                Update:

                                AAAH. Es funktioniert nun. 😊

                                Nachdem ich im Script den Pfad zu "/opt/iobroker/haustuer.jpg" geändert hatte, kam keine permission Fehler Meldung mehr. Begreife ich zwar nicht, aber bin Froh, dass es nun tut. Das einzige was ich nun noch machen muss, ist eine Verzögerung in Blockly einbauen, da mein script etwas dauert, bis er durchläuft...

                                Ich dank dir nochmal vielmals für deine Geduld und kompetente Hilfe!

                                P 1 Reply Last reply Reply Quote 0
                                • P
                                  Pischleuder @Soukai last edited by Pischleuder

                                  @soukai

                                  na bestens, manchmal hilft ein wenig experimentieren und eine Nachtschicht - hatte ich auch schon oft 🙂

                                  1 Reply Last reply Reply Quote 1
                                  • S
                                    smarthome2020 last edited by smarthome2020

                                    Ich habe mir nun nicht alles durchgelesen, ich hoffe ihr verzeiht mir das.
                                    Kann man die Blink mini in den ioBroker integrieren? Also kann ich da nen Stream abfangen?
                                    Morgen ist Prime day und die Kameras sind für 20 Euro drin .

                                    P 1 Reply Last reply Reply Quote 0
                                    • P
                                      Pischleuder @smarthome2020 last edited by

                                      @smarthome2020

                                      Hallo,

                                      klare Antwort - bisher nicht.

                                      Gruss

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        smarthome2020 @Pischleuder last edited by

                                        @pischleuder
                                        Aber einzelne Bilder gehen?

                                        P 1 Reply Last reply Reply Quote 0
                                        • P
                                          Pischleuder @smarthome2020 last edited by

                                          @smarthome2020

                                          kommt auf die Kamera an, ich habe nur Erfahrung mit der normalen Blink Kamera.

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

                                            @pischleuder Hast Du es geschafft, mit Blinkpy z.B. auf Motion oder Drücken der Haustürklingel zu triggern und damit einen Datenpunkt im ioB zu schreiben, damit man darauf in ioB triggern kann?

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            612
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            blink xt camera
                                            63
                                            406
                                            97332
                                            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