Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Hardware
  4. Blink Camera System

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    16
    1
    1.8k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    883

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.1k

Blink Camera System

Scheduled Pinned Locked Moved Hardware
blink xtcamera
406 Posts 63 Posters 124.6k Views 66 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Pischleuder

    @Smartuser

    hast du ein update von blink aus dem git gemacht ?

    Das funktioniert nicht, da die syntax sich geändert hat.

    Du musst die Version 15.1 beibehalten.

    Gruss

    S Offline
    S Offline
    Soukai
    wrote on last edited by Soukai
    #249

    Habs inzwischen geschafft, einen snapshot von der Blink kamera durch den Python script zu ergattern. Nun möchte ich mir das per Telegram senden lassen, jedoch führt er mir mein Python script nicht aus. Jemand eine Ahnung woran das liegt? In der Konsole funkts

    db9777ba-3999-49f4-9907-0d9d02ab535f-grafik.png

    Edit: habe durch diesen Post rausgefunden, dass mir dinge fehlten und ich exec nicht in javascript aktiviert hatte.

    jetzt komm ich hier nicht mehr weiter:

    saeko@raspberrypi:~/blink/scripts $ sudo -u iobroker python3 /home/saeko/blink/scripts/bild.py
    Traceback (most recent call last):
      File "/home/saeko/blink/scripts/bild.py", line 5, in <module>
        from blinkpy.auth import Auth
    ModuleNotFoundError: No module named 'blinkpy.auth'
    
    

    Edit2: habs nun soweit ohne error laufen, jedoch im blinkpy order und nicht in meinem eigenen /home/saeko/blink/scripts/bild.py . Was muss ich machen, damit das so auch funktioniert?

    Trotzallem, möchte mir der javascript adapter kein Bild erstellen, auch mit sudo python3 'path' im exec baustein.

    P 1 Reply Last reply
    0
    • S Soukai

      Habs inzwischen geschafft, einen snapshot von der Blink kamera durch den Python script zu ergattern. Nun möchte ich mir das per Telegram senden lassen, jedoch führt er mir mein Python script nicht aus. Jemand eine Ahnung woran das liegt? In der Konsole funkts

      db9777ba-3999-49f4-9907-0d9d02ab535f-grafik.png

      Edit: habe durch diesen Post rausgefunden, dass mir dinge fehlten und ich exec nicht in javascript aktiviert hatte.

      jetzt komm ich hier nicht mehr weiter:

      saeko@raspberrypi:~/blink/scripts $ sudo -u iobroker python3 /home/saeko/blink/scripts/bild.py
      Traceback (most recent call last):
        File "/home/saeko/blink/scripts/bild.py", line 5, in <module>
          from blinkpy.auth import Auth
      ModuleNotFoundError: No module named 'blinkpy.auth'
      
      

      Edit2: habs nun soweit ohne error laufen, jedoch im blinkpy order und nicht in meinem eigenen /home/saeko/blink/scripts/bild.py . Was muss ich machen, damit das so auch funktioniert?

      Trotzallem, möchte mir der javascript adapter kein Bild erstellen, auch mit sudo python3 'path' im exec baustein.

      P Online
      P Online
      Pischleuder
      wrote on last edited by
      #250

      @soukai

      Servus,

      das hast du aber auch gemacht ? Den Aufruf als root zu machen ist nicht gut !

      sudo -H -u iobroker pip3 install blinkpy
      

      Diesen Aufruf aus dem blinkpy Verzeichnis ausführen, dann braucht es beim py Script Aufruf auch kein sudo.

      S 1 Reply Last reply
      0
      • P Pischleuder

        @soukai

        Servus,

        das hast du aber auch gemacht ? Den Aufruf als root zu machen ist nicht gut !

        sudo -H -u iobroker pip3 install blinkpy
        

        Diesen Aufruf aus dem blinkpy Verzeichnis ausführen, dann braucht es beim py Script Aufruf auch kein sudo.

        S Offline
        S Offline
        Soukai
        wrote on last edited by Soukai
        #251

        @pischleuder Hey, ja den code habe ich schon ausgeführt.
        trotzallem erstellt er mir wie gesagt bloss ein bild in der konsole nicht jedoch per blockly :/

        hier mal noch mein pyton script vielleicht findet sich da was :neutral_face:
        die letzten Zeilen habe ich auskommentiert, da sie auch nicht bei mir funktionieren....

        #!/usr/bin/python3
        import requests
        
        from blinkpy.blinkpy import Blink
        from blinkpy.auth import Auth
        
        blink = Blink()
        # Can set no_prompt when initializing auth handler
        auth = Auth({"username": 'xxxxxx', "password": 'xxxxx'}, no_prompt=True)
        blink.auth = auth
        blink.start()
        auth.send_auth_key(blink, "xxxx")
        blink.setup_post_verify()
        
        ###### hier den Dateinamen/Pfad eintragen, den das snapshot Bild erhalten soll - bei mir Flur und Garten Kamera  #####
        
        bild = '/home/saeko/blink/bilder/haustuer_oben.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)
        
        
        
        P 1 Reply Last reply
        0
        • S Soukai

          @pischleuder Hey, ja den code habe ich schon ausgeführt.
          trotzallem erstellt er mir wie gesagt bloss ein bild in der konsole nicht jedoch per blockly :/

          hier mal noch mein pyton script vielleicht findet sich da was :neutral_face:
          die letzten Zeilen habe ich auskommentiert, da sie auch nicht bei mir funktionieren....

          #!/usr/bin/python3
          import requests
          
          from blinkpy.blinkpy import Blink
          from blinkpy.auth import Auth
          
          blink = Blink()
          # Can set no_prompt when initializing auth handler
          auth = Auth({"username": 'xxxxxx', "password": 'xxxxx'}, no_prompt=True)
          blink.auth = auth
          blink.start()
          auth.send_auth_key(blink, "xxxx")
          blink.setup_post_verify()
          
          ###### hier den Dateinamen/Pfad eintragen, den das snapshot Bild erhalten soll - bei mir Flur und Garten Kamera  #####
          
          bild = '/home/saeko/blink/bilder/haustuer_oben.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)
          
          
          
          P Online
          P Online
          Pischleuder
          wrote on last edited by
          #252

          @soukai

          nimm mal das python3 in dem exec Befehl heraus.

          S 1 Reply Last reply
          0
          • P Pischleuder

            @soukai

            nimm mal das python3 in dem exec Befehl heraus.

            S Offline
            S Offline
            Soukai
            wrote on last edited by Soukai
            #253

            @pischleuder schon versucht.

            versucht wurde
            sudo python3 path, python path, python3.8 path, python 3.9 path
            ohne sudo
            /home/saeko/blinkpy/bilder.py
            home/saeko/blinkpy/bilder.py
            ./home/saeko/blinkpy/bilder.py

            Alles will nicht :/

            edit: Pfadänderung des snapshots in den blinkpy ordner bringt auch nichts

            P 1 Reply Last reply
            0
            • S Soukai

              @pischleuder schon versucht.

              versucht wurde
              sudo python3 path, python path, python3.8 path, python 3.9 path
              ohne sudo
              /home/saeko/blinkpy/bilder.py
              home/saeko/blinkpy/bilder.py
              ./home/saeko/blinkpy/bilder.py

              Alles will nicht :/

              edit: Pfadänderung des snapshots in den blinkpy ordner bringt auch nichts

              P Online
              P Online
              Pischleuder
              wrote on last edited by Pischleuder
              #254

              @soukai

              zeig doch einmal, welchem User Dein script zugeordnet ist.

              Bei mir so im Verzeichnis /opt/iobroker:

              ls -l ./blink-cameraflur.py 
              -rwxrwxrwx+ 1 pi pi 1372 Apr 16 11:01 ./blink-cameraflur.py
              
              S 1 Reply Last reply
              0
              • P Pischleuder

                @soukai

                zeig doch einmal, welchem User Dein script zugeordnet ist.

                Bei mir so im Verzeichnis /opt/iobroker:

                ls -l ./blink-cameraflur.py 
                -rwxrwxrwx+ 1 pi pi 1372 Apr 16 11:01 ./blink-cameraflur.py
                
                S Offline
                S Offline
                Soukai
                wrote on last edited by Soukai
                #255

                @pischleuder danke für deine Zeit!

                
                saeko@raspberrypi:~/blinkpy $ ls -l ./bild.py
                -rwxrwxrwx 1 saeko saeko 922 Jun  9 17:38 ./bild.py
                
                

                habs auch versucht den Umlaut im script zu streichen, ohne erfolg

                P 1 Reply Last reply
                0
                • S Soukai

                  @pischleuder danke für deine Zeit!

                  
                  saeko@raspberrypi:~/blinkpy $ ls -l ./bild.py
                  -rwxrwxrwx 1 saeko saeko 922 Jun  9 17:38 ./bild.py
                  
                  

                  habs auch versucht den Umlaut im script zu streichen, ohne erfolg

                  P Online
                  P Online
                  Pischleuder
                  wrote on last edited by
                  #256

                  @soukai

                  dann weiß ich erst einmal nicht weiter - bin auch gerade im Urlaub. Kann mich dazu erst Mitte nächster Woche melden.

                  S 2 Replies Last reply
                  1
                  • P Pischleuder

                    @soukai

                    dann weiß ich erst einmal nicht weiter - bin auch gerade im Urlaub. Kann mich dazu erst Mitte nächster Woche melden.

                    S Offline
                    S Offline
                    Soukai
                    wrote on last edited by Soukai
                    #257

                    @pischleuder Geht klar! Danke!

                    
                    saeko@raspberrypi:~/blinkpy $ sudo -u iobroker python3 /home/saeko/blinkpy/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 "/home/saeko/blinkpy/bild.py", line 27, in <module>
                        camera.image_to_file(bild)
                      File "/home/saeko/blinkpy/blinkpy/camera.py", line 241, in image_to_file
                        with open(path, "wb") as imgfile:
                    PermissionError: [Errno 13] Permission denied: '/home/saeko/blinkpy/haustuer.jpg'
                    saeko@raspberrypi:~/blinkpy $ sudo -u iobroker sudo python3 /home/saeko/blinkpy/bild.py
                    [sudo] password for iobroker:
                    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
                    
                    

                    um den script per iobroker starten zu können, brauch ich sudo, falls das was aussagt. Die anderen Fehlermeldungen kommen vermutlich von der Blink Doorbell, die wohl noch nicht integriert wurde.

                    1 Reply Last reply
                    0
                    • S speridal

                      @exmerci
                      Hallo zusammen,

                      ich habe es herausgefunden. Im Logfile vom Raspberry (/var/log/syslog) habe ich gesehen, dass das homebridge-blink-for-home plugin eine Abhängigkeit zu homebridge 1.4 hat (im ham-adapter ist 1.3.6 enthalten). Außerdem sieht man einen Absturz des Moduls.
                      Ich habe daraufhin das Modul in Version 3.7.6 installiert (Checkbox setzen für Aktualisierung beim nächsten Start) und jetzt funktioniert alles.

                      Gruß,
                      Bernd

                      F Offline
                      F Offline
                      Förster
                      wrote on last edited by
                      #258

                      @speridal sagte in Blink Camera System:

                      Ich habe daraufhin das Modul in Version 3.7.6 installiert (Checkbox setzen für Aktualisierung beim nächsten Start) und jetzt funktioniert alles.

                      Gruß,
                      Bernd

                      @speridal Ich stehe vor der selben Herausforderung ... Wie installiert man denn diese "ältere" Version ? Immer wenn ich homebridge-blink-for-home eingebe, installiert er mir ja die neueste Version 3.9.1

                      S 1 Reply Last reply
                      0
                      • F Förster

                        @speridal sagte in Blink Camera System:

                        Ich habe daraufhin das Modul in Version 3.7.6 installiert (Checkbox setzen für Aktualisierung beim nächsten Start) und jetzt funktioniert alles.

                        Gruß,
                        Bernd

                        @speridal Ich stehe vor der selben Herausforderung ... Wie installiert man denn diese "ältere" Version ? Immer wenn ich homebridge-blink-for-home eingebe, installiert er mir ja die neueste Version 3.9.1

                        S Offline
                        S Offline
                        Soukai
                        wrote on last edited by Soukai
                        #259

                        @förster Indem du "homebridge-blink-for-home@3.7.6" als modul eingibst
                        wie hier zb. gezeigt:

                        7feaef99-30b3-4afa-a38f-671e13bdb75c-grafik.png

                        1 Reply Last reply
                        1
                        • P Pischleuder

                          @soukai

                          dann weiß ich erst einmal nicht weiter - bin auch gerade im Urlaub. Kann mich dazu erst Mitte nächster Woche melden.

                          S Offline
                          S Offline
                          Soukai
                          wrote on last edited by
                          #260

                          @pischleuder Möchte nicht aufdringlich wirken, aber hätten sie wieder zeit?

                          P 1 Reply Last reply
                          0
                          • S Soukai

                            @pischleuder Möchte nicht aufdringlich wirken, aber hätten sie wieder zeit?

                            P Online
                            P Online
                            Pischleuder
                            wrote on last edited by
                            #261

                            @soukai

                            Hi,

                            versuche doch bitte einmal Dein script in den /opt/iobroker Ordner zu kopieren und starte das
                            in der Konsole normal, also ohne sudo und poste das Ergebnis.

                            S 1 Reply Last reply
                            0
                            • P Pischleuder

                              @soukai

                              Hi,

                              versuche doch bitte einmal Dein script in den /opt/iobroker Ordner zu kopieren und starte das
                              in der Konsole normal, also ohne sudo und poste das Ergebnis.

                              S Offline
                              S Offline
                              Soukai
                              wrote on last edited by Soukai
                              #262

                              @pischleuder Hey,
                              inzwischen dies hier, aber wahrscheinlich wegen der neuen blink doorbell. bild2 ist ohne json credentials. 1 mit. Ist aber der gleiche text wie im blinkpy ordner

                              saeko@raspberrypi:/opt/iobroker $ python bild2.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
                              Did not receive valid response from server.
                              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
                              Haustür
                              {'name': 'Haustür', 'camera_id': '68316', 'serial': 'G8T1GJ0003118F0H', 'temperature': 69, 'temperature_c': 20.6, 'temperature_calibrated': 69, 'battery': 'ok', 'battery_voltage': 168, 'thumbnail': 'https://rest-e004.immedia-semi.com/api/v3/media/accounts/62195/networks/66328/catalina/68316/thumbnail/thumbnail.jpg?ts=1655932081&ext=', 'video': None, 'motion_enabled': True, 'motion_detected': False, 'wifi_strength': -70, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': 'catalina'}
                              Türklingel
                              {'name': 'unknown', 'camera_id': 'unknown', 'serial': None, 'temperature': None, 'temperature_c': None, 'temperature_calibrated': None, 'battery': None, 'battery_voltage': None, 'thumbnail': None, 'video': None, 'motion_enabled': 'unknown', 'motion_detected': False, 'wifi_strength': None, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': None}
                              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
                              saeko@raspberrypi:/opt/iobroker $ python 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
                              saeko@raspberrypi:/opt/iobroker $
                              
                              saeko@raspberrypi:~/blinkpy $ saeko@raspberrypi:~/blinkpy $ python 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
                              saeko@raspberrypi:~/blinkpy $ python bild2.py
                              python3.8: can't open file 'bild2.py': [Errno 2] No such file or directory
                              saeko@raspberrypi:~/blinkpy $ python bild2.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
                              Did not receive valid response from server.
                              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
                              Haustür
                              {'name': 'Haustür', 'camera_id': '68316', 'serial': 'G8T1GJ0003118F0H', 'temperature': 69, 'temperature_c': 20.6, 'temperature_calibrated': 69, 'battery': 'ok', 'battery_voltage': 168, 'thumbnail': 'https://rest-e004.immedia-semi.com/api/v3/media/accounts/62195/networks/66328/catalina/68316/thumbnail/thumbnail.jpg?ts=1655932467&ext=', 'video': None, 'motion_enabled': True, 'motion_detected': False, 'wifi_strength': -70, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': 'catalina'}
                              Türklingel
                              {'name': 'unknown', 'camera_id': 'unknown', 'serial': None, 'temperature': None, 'temperature_c': None, 'temperature_calibrated': None, 'battery': None, 'battery_voltage': None, 'thumbnail': None, 'video': None, 'motion_enabled': 'unknown', 'motion_detected': False, 'wifi_strength': None, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': None}
                              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
                              
                              
                              
                              P 1 Reply Last reply
                              0
                              • S Soukai

                                @pischleuder Hey,
                                inzwischen dies hier, aber wahrscheinlich wegen der neuen blink doorbell. bild2 ist ohne json credentials. 1 mit. Ist aber der gleiche text wie im blinkpy ordner

                                saeko@raspberrypi:/opt/iobroker $ python bild2.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
                                Did not receive valid response from server.
                                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
                                Haustür
                                {'name': 'Haustür', 'camera_id': '68316', 'serial': 'G8T1GJ0003118F0H', 'temperature': 69, 'temperature_c': 20.6, 'temperature_calibrated': 69, 'battery': 'ok', 'battery_voltage': 168, 'thumbnail': 'https://rest-e004.immedia-semi.com/api/v3/media/accounts/62195/networks/66328/catalina/68316/thumbnail/thumbnail.jpg?ts=1655932081&ext=', 'video': None, 'motion_enabled': True, 'motion_detected': False, 'wifi_strength': -70, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': 'catalina'}
                                Türklingel
                                {'name': 'unknown', 'camera_id': 'unknown', 'serial': None, 'temperature': None, 'temperature_c': None, 'temperature_calibrated': None, 'battery': None, 'battery_voltage': None, 'thumbnail': None, 'video': None, 'motion_enabled': 'unknown', 'motion_detected': False, 'wifi_strength': None, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': None}
                                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
                                saeko@raspberrypi:/opt/iobroker $ python 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
                                saeko@raspberrypi:/opt/iobroker $
                                
                                saeko@raspberrypi:~/blinkpy $ saeko@raspberrypi:~/blinkpy $ python 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
                                saeko@raspberrypi:~/blinkpy $ python bild2.py
                                python3.8: can't open file 'bild2.py': [Errno 2] No such file or directory
                                saeko@raspberrypi:~/blinkpy $ python bild2.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
                                Did not receive valid response from server.
                                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
                                Haustür
                                {'name': 'Haustür', 'camera_id': '68316', 'serial': 'G8T1GJ0003118F0H', 'temperature': 69, 'temperature_c': 20.6, 'temperature_calibrated': 69, 'battery': 'ok', 'battery_voltage': 168, 'thumbnail': 'https://rest-e004.immedia-semi.com/api/v3/media/accounts/62195/networks/66328/catalina/68316/thumbnail/thumbnail.jpg?ts=1655932467&ext=', 'video': None, 'motion_enabled': True, 'motion_detected': False, 'wifi_strength': -70, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': 'catalina'}
                                Türklingel
                                {'name': 'unknown', 'camera_id': 'unknown', 'serial': None, 'temperature': None, 'temperature_c': None, 'temperature_calibrated': None, 'battery': None, 'battery_voltage': None, 'thumbnail': None, 'video': None, 'motion_enabled': 'unknown', 'motion_detected': False, 'wifi_strength': None, 'network_id': 66328, 'sync_module': 'Zuhause', 'last_record': None, 'type': None}
                                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
                                
                                
                                
                                P Online
                                P Online
                                Pischleuder
                                wrote on last edited by Pischleuder
                                #263

                                @soukai

                                der Aufruf mit python vorab ist falsch, da das im script bereits definiert ist. Das script muss lokal (in /opt/iobroker) so ausgeführt werden:

                                ./bild.py
                                

                                Ausserdem fehlt in Deinem script etwas:

                                from blinkpy.camera import BlinkCamera
                                

                                Ansonsten muss es sich um ein Rechteproblem des scriptes handeln, oder Du hast blink nicht für den user iobroker richtig installiert, da es mit sudo ja funktioniert. Dieses Problem hatte ich ja auch, wie in Deinem oben genannten Link erwähnt.
                                Also vergewissere Dich bitte, ob Du das bereits gemacht hast (aus dem blink git Ordner):

                                als normaler user saeko
                                pip3 install blinkpy

                                mit sudo
                                sudo -H -u iobroker pip3 install blinkpy

                                S 1 Reply Last reply
                                0
                                • P Pischleuder

                                  @soukai

                                  der Aufruf mit python vorab ist falsch, da das im script bereits definiert ist. Das script muss lokal (in /opt/iobroker) so ausgeführt werden:

                                  ./bild.py
                                  

                                  Ausserdem fehlt in Deinem script etwas:

                                  from blinkpy.camera import BlinkCamera
                                  

                                  Ansonsten muss es sich um ein Rechteproblem des scriptes handeln, oder Du hast blink nicht für den user iobroker richtig installiert, da es mit sudo ja funktioniert. Dieses Problem hatte ich ja auch, wie in Deinem oben genannten Link erwähnt.
                                  Also vergewissere Dich bitte, ob Du das bereits gemacht hast (aus dem blink git Ordner):

                                  als normaler user saeko
                                  pip3 install blinkpy

                                  mit sudo
                                  sudo -H -u iobroker pip3 install blinkpy

                                  S Offline
                                  S Offline
                                  Soukai
                                  wrote on last edited by Soukai
                                  #264

                                  @pischleuder said in Blink Camera System:

                                  @soukai

                                  der Aufruf mit python vorab ist falsch, da das im script bereits definiert ist. Das script muss lokal (in /opt/iobroker) so ausgeführt werden:

                                  ./bild.py
                                  

                                  Habe folgendes probiert (mit python und ohne) und es hat sich leider nichts geändert:
                                  39c3f20e-6c38-481d-84da-2aac98d8483c-grafik.png

                                  Ausserdem fehlt in Deinem script etwas:

                                  from blinkpy.camera import BlinkCamera
                                  

                                  Zeile wurde jetzt eingefügt.

                                  mein script 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(json_load("/home/saeko/blink/cred.json"))
                                  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 >
                                  
                                  bild = './haustuer.jpg'
                                  #bild2 = '/home/saeko/blinkpy/Tuerklingel.jpg'
                                  #for name, camera in blink.cameras.items(): print(name), print(camera.attribute>
                                  
                                  #### hier Eure Kamera 1 eintragen und weitere Einträge für mehr Kameras vornehm>
                                  
                                  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", pa>
                                  
                                  #### hier Eure Kamera 2 eintragen und weitere Einträge für mehr Kameras vornehm>
                                  
                                  #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", pa>
                                  

                                  Ansonsten muss es sich um ein Rechteproblem des scriptes handeln, oder Du hast blink nicht für den user iobroker richtig installiert, da es mit sudo ja funktioniert. Dieses Problem hatte ich ja auch, wie in Deinem oben genannten Link erwähnt.
                                  Also vergewissere Dich bitte, ob Du das bereits gemacht hast (aus dem blink git Ordner):

                                  als normaler user saeko
                                  pip3 install blinkpy

                                  mit sudo
                                  sudo -H -u iobroker pip3 install blinkpy

                                  Hatte dies schon installiert, leider auch keine Änderung :/

                                  saeko@raspberrypi:~/blinkpy $ pip3 install blinkpy
                                  Defaulting to user installation because normal site-packages is not writeable
                                  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                  Requirement already satisfied: blinkpy in /home/saeko/.local/lib/python3.8/site-packages (0.20.0.dev0)
                                  Requirement already satisfied: requests>=2.24.0 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.27.1)
                                  Requirement already satisfied: python-dateutil>=2.8.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.8.2)
                                  Requirement already satisfied: python-slugify>=4.0.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (6.1.2)
                                  Requirement already satisfied: six>=1.5 in /home/saeko/.local/lib/python3.8/site-packages (from python-dateutil>=2.8.1->blinkpy) (1.16.0)
                                  Requirement already satisfied: text-unidecode>=1.3 in /home/saeko/.local/lib/python3.8/site-packages (from python-slugify>=4.0.1->blinkpy) (1.3)
                                  Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (1.26.9)
                                  Requirement already satisfied: idna<4,>=2.5 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (3.3)
                                  Requirement already satisfied: charset-normalizer~=2.0.0 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2.0.12)
                                  Requirement already satisfied: certifi>=2017.4.17 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2022.5.18.1)
                                  saeko@raspberrypi:~/blinkpy $ sudo -H -u iobroker pip3 install blinkpy
                                  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                  Requirement already satisfied: blinkpy in /usr/local/lib/python3.9/dist-packages (0.20.0.dev0)
                                  Requirement already satisfied: requests>=2.24.0 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.27.1)
                                  Requirement already satisfied: python-slugify>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (4.0.1)
                                  Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.8.2)
                                  Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.1->blinkpy) (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) (1.3)
                                  Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2.10)
                                  Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/dist-packages (from requests>=2.24.0->blinkpy) (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) (1.25.11)
                                  Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2020.6.20)
                                  saeko@raspberrypi:~/blinkpy $
                                  
                                  

                                  Normaler aufruf per Konsole:

                                  saeko@raspberrypi:/opt/iobroker $ python 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
                                  
                                  

                                  Per iobroker aufruf sudo -u iobroker python3 ./bild.py kommt nun folgendes:

                                  saeko@raspberrypi:/opt/iobroker $ sudo -u iobroker python3 ./bild.py
                                  Traceback (most recent call last):
                                    File "/opt/iobroker/./bild.py", line 4, in <module>
                                      from blinkpy.blinkpy import Blink
                                  ModuleNotFoundError: No module named 'blinkpy'
                                  
                                  
                                  P 3 Replies Last reply
                                  0
                                  • S Soukai

                                    @pischleuder said in Blink Camera System:

                                    @soukai

                                    der Aufruf mit python vorab ist falsch, da das im script bereits definiert ist. Das script muss lokal (in /opt/iobroker) so ausgeführt werden:

                                    ./bild.py
                                    

                                    Habe folgendes probiert (mit python und ohne) und es hat sich leider nichts geändert:
                                    39c3f20e-6c38-481d-84da-2aac98d8483c-grafik.png

                                    Ausserdem fehlt in Deinem script etwas:

                                    from blinkpy.camera import BlinkCamera
                                    

                                    Zeile wurde jetzt eingefügt.

                                    mein script 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(json_load("/home/saeko/blink/cred.json"))
                                    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 >
                                    
                                    bild = './haustuer.jpg'
                                    #bild2 = '/home/saeko/blinkpy/Tuerklingel.jpg'
                                    #for name, camera in blink.cameras.items(): print(name), print(camera.attribute>
                                    
                                    #### hier Eure Kamera 1 eintragen und weitere Einträge für mehr Kameras vornehm>
                                    
                                    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", pa>
                                    
                                    #### hier Eure Kamera 2 eintragen und weitere Einträge für mehr Kameras vornehm>
                                    
                                    #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", pa>
                                    

                                    Ansonsten muss es sich um ein Rechteproblem des scriptes handeln, oder Du hast blink nicht für den user iobroker richtig installiert, da es mit sudo ja funktioniert. Dieses Problem hatte ich ja auch, wie in Deinem oben genannten Link erwähnt.
                                    Also vergewissere Dich bitte, ob Du das bereits gemacht hast (aus dem blink git Ordner):

                                    als normaler user saeko
                                    pip3 install blinkpy

                                    mit sudo
                                    sudo -H -u iobroker pip3 install blinkpy

                                    Hatte dies schon installiert, leider auch keine Änderung :/

                                    saeko@raspberrypi:~/blinkpy $ pip3 install blinkpy
                                    Defaulting to user installation because normal site-packages is not writeable
                                    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                    Requirement already satisfied: blinkpy in /home/saeko/.local/lib/python3.8/site-packages (0.20.0.dev0)
                                    Requirement already satisfied: requests>=2.24.0 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.27.1)
                                    Requirement already satisfied: python-dateutil>=2.8.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.8.2)
                                    Requirement already satisfied: python-slugify>=4.0.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (6.1.2)
                                    Requirement already satisfied: six>=1.5 in /home/saeko/.local/lib/python3.8/site-packages (from python-dateutil>=2.8.1->blinkpy) (1.16.0)
                                    Requirement already satisfied: text-unidecode>=1.3 in /home/saeko/.local/lib/python3.8/site-packages (from python-slugify>=4.0.1->blinkpy) (1.3)
                                    Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (1.26.9)
                                    Requirement already satisfied: idna<4,>=2.5 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (3.3)
                                    Requirement already satisfied: charset-normalizer~=2.0.0 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2.0.12)
                                    Requirement already satisfied: certifi>=2017.4.17 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2022.5.18.1)
                                    saeko@raspberrypi:~/blinkpy $ sudo -H -u iobroker pip3 install blinkpy
                                    Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                    Requirement already satisfied: blinkpy in /usr/local/lib/python3.9/dist-packages (0.20.0.dev0)
                                    Requirement already satisfied: requests>=2.24.0 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.27.1)
                                    Requirement already satisfied: python-slugify>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (4.0.1)
                                    Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.8.2)
                                    Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.1->blinkpy) (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) (1.3)
                                    Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2.10)
                                    Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/dist-packages (from requests>=2.24.0->blinkpy) (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) (1.25.11)
                                    Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2020.6.20)
                                    saeko@raspberrypi:~/blinkpy $
                                    
                                    

                                    Normaler aufruf per Konsole:

                                    saeko@raspberrypi:/opt/iobroker $ python 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
                                    
                                    

                                    Per iobroker aufruf sudo -u iobroker python3 ./bild.py kommt nun folgendes:

                                    saeko@raspberrypi:/opt/iobroker $ sudo -u iobroker python3 ./bild.py
                                    Traceback (most recent call last):
                                      File "/opt/iobroker/./bild.py", line 4, in <module>
                                        from blinkpy.blinkpy import Blink
                                    ModuleNotFoundError: No module named 'blinkpy'
                                    
                                    
                                    P Online
                                    P Online
                                    Pischleuder
                                    wrote on last edited by Pischleuder
                                    #265

                                    @soukai

                                    Jep, du rufst das script mit dem json parameter auf und das wird nicht akzeptiert

                                    Warum?
                                    Was steht da drin ? --> Username und Passwort ?

                                    S 1 Reply Last reply
                                    0
                                    • P Pischleuder

                                      @soukai

                                      Jep, du rufst das script mit dem json parameter auf und das wird nicht akzeptiert

                                      Warum?
                                      Was steht da drin ? --> Username und Passwort ?

                                      S Offline
                                      S Offline
                                      Soukai
                                      wrote on last edited by Soukai
                                      #266

                                      @pischleuder
                                      meinst du

                                      auth = Auth(json_load("/home/saeko/blink/cred.json"))
                                      

                                      da stehen die Kontodaten drin. Ich probiers mal ohne. sollte sich aber eigentlich nichts ändern

                                      Was steht da drin ? --> Username und Passwort ?

                                      japp

                                      1 Reply Last reply
                                      0
                                      • S Soukai

                                        @pischleuder said in Blink Camera System:

                                        @soukai

                                        der Aufruf mit python vorab ist falsch, da das im script bereits definiert ist. Das script muss lokal (in /opt/iobroker) so ausgeführt werden:

                                        ./bild.py
                                        

                                        Habe folgendes probiert (mit python und ohne) und es hat sich leider nichts geändert:
                                        39c3f20e-6c38-481d-84da-2aac98d8483c-grafik.png

                                        Ausserdem fehlt in Deinem script etwas:

                                        from blinkpy.camera import BlinkCamera
                                        

                                        Zeile wurde jetzt eingefügt.

                                        mein script 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(json_load("/home/saeko/blink/cred.json"))
                                        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 >
                                        
                                        bild = './haustuer.jpg'
                                        #bild2 = '/home/saeko/blinkpy/Tuerklingel.jpg'
                                        #for name, camera in blink.cameras.items(): print(name), print(camera.attribute>
                                        
                                        #### hier Eure Kamera 1 eintragen und weitere Einträge für mehr Kameras vornehm>
                                        
                                        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", pa>
                                        
                                        #### hier Eure Kamera 2 eintragen und weitere Einträge für mehr Kameras vornehm>
                                        
                                        #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", pa>
                                        

                                        Ansonsten muss es sich um ein Rechteproblem des scriptes handeln, oder Du hast blink nicht für den user iobroker richtig installiert, da es mit sudo ja funktioniert. Dieses Problem hatte ich ja auch, wie in Deinem oben genannten Link erwähnt.
                                        Also vergewissere Dich bitte, ob Du das bereits gemacht hast (aus dem blink git Ordner):

                                        als normaler user saeko
                                        pip3 install blinkpy

                                        mit sudo
                                        sudo -H -u iobroker pip3 install blinkpy

                                        Hatte dies schon installiert, leider auch keine Änderung :/

                                        saeko@raspberrypi:~/blinkpy $ pip3 install blinkpy
                                        Defaulting to user installation because normal site-packages is not writeable
                                        Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                        Requirement already satisfied: blinkpy in /home/saeko/.local/lib/python3.8/site-packages (0.20.0.dev0)
                                        Requirement already satisfied: requests>=2.24.0 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.27.1)
                                        Requirement already satisfied: python-dateutil>=2.8.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.8.2)
                                        Requirement already satisfied: python-slugify>=4.0.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (6.1.2)
                                        Requirement already satisfied: six>=1.5 in /home/saeko/.local/lib/python3.8/site-packages (from python-dateutil>=2.8.1->blinkpy) (1.16.0)
                                        Requirement already satisfied: text-unidecode>=1.3 in /home/saeko/.local/lib/python3.8/site-packages (from python-slugify>=4.0.1->blinkpy) (1.3)
                                        Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (1.26.9)
                                        Requirement already satisfied: idna<4,>=2.5 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (3.3)
                                        Requirement already satisfied: charset-normalizer~=2.0.0 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2.0.12)
                                        Requirement already satisfied: certifi>=2017.4.17 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2022.5.18.1)
                                        saeko@raspberrypi:~/blinkpy $ sudo -H -u iobroker pip3 install blinkpy
                                        Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                        Requirement already satisfied: blinkpy in /usr/local/lib/python3.9/dist-packages (0.20.0.dev0)
                                        Requirement already satisfied: requests>=2.24.0 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.27.1)
                                        Requirement already satisfied: python-slugify>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (4.0.1)
                                        Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.8.2)
                                        Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.1->blinkpy) (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) (1.3)
                                        Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2.10)
                                        Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/dist-packages (from requests>=2.24.0->blinkpy) (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) (1.25.11)
                                        Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2020.6.20)
                                        saeko@raspberrypi:~/blinkpy $
                                        
                                        

                                        Normaler aufruf per Konsole:

                                        saeko@raspberrypi:/opt/iobroker $ python 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
                                        
                                        

                                        Per iobroker aufruf sudo -u iobroker python3 ./bild.py kommt nun folgendes:

                                        saeko@raspberrypi:/opt/iobroker $ sudo -u iobroker python3 ./bild.py
                                        Traceback (most recent call last):
                                          File "/opt/iobroker/./bild.py", line 4, in <module>
                                            from blinkpy.blinkpy import Blink
                                        ModuleNotFoundError: No module named 'blinkpy'
                                        
                                        
                                        P Online
                                        P Online
                                        Pischleuder
                                        wrote on last edited by
                                        #267

                                        @soukai sagte in Blink Camera System:

                                        Per iobroker aufruf sudo -u iobroker python3 ./bild.py kommt nun folgendes:

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

                                        Wie gesagt, das ist komplett falsch und Du solltest das aus Deinen Gedanken streichen :-)

                                        1 Reply Last reply
                                        0
                                        • S Soukai

                                          @pischleuder said in Blink Camera System:

                                          @soukai

                                          der Aufruf mit python vorab ist falsch, da das im script bereits definiert ist. Das script muss lokal (in /opt/iobroker) so ausgeführt werden:

                                          ./bild.py
                                          

                                          Habe folgendes probiert (mit python und ohne) und es hat sich leider nichts geändert:
                                          39c3f20e-6c38-481d-84da-2aac98d8483c-grafik.png

                                          Ausserdem fehlt in Deinem script etwas:

                                          from blinkpy.camera import BlinkCamera
                                          

                                          Zeile wurde jetzt eingefügt.

                                          mein script 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(json_load("/home/saeko/blink/cred.json"))
                                          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 >
                                          
                                          bild = './haustuer.jpg'
                                          #bild2 = '/home/saeko/blinkpy/Tuerklingel.jpg'
                                          #for name, camera in blink.cameras.items(): print(name), print(camera.attribute>
                                          
                                          #### hier Eure Kamera 1 eintragen und weitere Einträge für mehr Kameras vornehm>
                                          
                                          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", pa>
                                          
                                          #### hier Eure Kamera 2 eintragen und weitere Einträge für mehr Kameras vornehm>
                                          
                                          #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", pa>
                                          

                                          Ansonsten muss es sich um ein Rechteproblem des scriptes handeln, oder Du hast blink nicht für den user iobroker richtig installiert, da es mit sudo ja funktioniert. Dieses Problem hatte ich ja auch, wie in Deinem oben genannten Link erwähnt.
                                          Also vergewissere Dich bitte, ob Du das bereits gemacht hast (aus dem blink git Ordner):

                                          als normaler user saeko
                                          pip3 install blinkpy

                                          mit sudo
                                          sudo -H -u iobroker pip3 install blinkpy

                                          Hatte dies schon installiert, leider auch keine Änderung :/

                                          saeko@raspberrypi:~/blinkpy $ pip3 install blinkpy
                                          Defaulting to user installation because normal site-packages is not writeable
                                          Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                          Requirement already satisfied: blinkpy in /home/saeko/.local/lib/python3.8/site-packages (0.20.0.dev0)
                                          Requirement already satisfied: requests>=2.24.0 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.27.1)
                                          Requirement already satisfied: python-dateutil>=2.8.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (2.8.2)
                                          Requirement already satisfied: python-slugify>=4.0.1 in /home/saeko/.local/lib/python3.8/site-packages (from blinkpy) (6.1.2)
                                          Requirement already satisfied: six>=1.5 in /home/saeko/.local/lib/python3.8/site-packages (from python-dateutil>=2.8.1->blinkpy) (1.16.0)
                                          Requirement already satisfied: text-unidecode>=1.3 in /home/saeko/.local/lib/python3.8/site-packages (from python-slugify>=4.0.1->blinkpy) (1.3)
                                          Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (1.26.9)
                                          Requirement already satisfied: idna<4,>=2.5 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (3.3)
                                          Requirement already satisfied: charset-normalizer~=2.0.0 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2.0.12)
                                          Requirement already satisfied: certifi>=2017.4.17 in /home/saeko/.local/lib/python3.8/site-packages (from requests>=2.24.0->blinkpy) (2022.5.18.1)
                                          saeko@raspberrypi:~/blinkpy $ sudo -H -u iobroker pip3 install blinkpy
                                          Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                          Requirement already satisfied: blinkpy in /usr/local/lib/python3.9/dist-packages (0.20.0.dev0)
                                          Requirement already satisfied: requests>=2.24.0 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.27.1)
                                          Requirement already satisfied: python-slugify>=4.0.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (4.0.1)
                                          Requirement already satisfied: python-dateutil>=2.8.1 in /usr/local/lib/python3.9/dist-packages (from blinkpy) (2.8.2)
                                          Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.1->blinkpy) (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) (1.3)
                                          Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2.10)
                                          Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/dist-packages (from requests>=2.24.0->blinkpy) (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) (1.25.11)
                                          Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.24.0->blinkpy) (2020.6.20)
                                          saeko@raspberrypi:~/blinkpy $
                                          
                                          

                                          Normaler aufruf per Konsole:

                                          saeko@raspberrypi:/opt/iobroker $ python 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
                                          
                                          

                                          Per iobroker aufruf sudo -u iobroker python3 ./bild.py kommt nun folgendes:

                                          saeko@raspberrypi:/opt/iobroker $ sudo -u iobroker python3 ./bild.py
                                          Traceback (most recent call last):
                                            File "/opt/iobroker/./bild.py", line 4, in <module>
                                              from blinkpy.blinkpy import Blink
                                          ModuleNotFoundError: No module named 'blinkpy'
                                          
                                          
                                          P Online
                                          P Online
                                          Pischleuder
                                          wrote on last edited by
                                          #268

                                          Normaler aufruf per Konsole:

                                          saeko@raspberrypi:/opt/iobroker $ python 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
                                          
                                          

                                          Dieser Aufruf wird nur mit ./bild.py gemacht, weil die Definition bereits für python im script ist und zwar mit

                                          #!/usr/bin/python3
                                          
                                          P 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          739

                                          Online

                                          32.6k

                                          Users

                                          82.1k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe