Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • 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

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

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

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.4k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.0k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.5k

Blink Camera System

Geplant Angeheftet Gesperrt Verschoben Hardware
blink xtcamera
406 Beiträge 63 Kommentatoren 118.7k Aufrufe 66 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • 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
    schrieb am zuletzt editiert von 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 Antwort Letzte Antwort
    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 Offline
      P Offline
      Pischleuder
      schrieb am zuletzt editiert von
      #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 Antwort Letzte Antwort
      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 Offline
        P Offline
        Pischleuder
        schrieb am zuletzt editiert von
        #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 Antwort Letzte Antwort
        0
        • P Pischleuder

          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 Offline
          P Offline
          Pischleuder
          schrieb am zuletzt editiert von
          #269

          @pischleuder

          ggf. einmal dieses script erstellen und laufen lassen:

          #!/usr/bin/python3
          
          ###### zuerst ein pip3 install request ausführen, wenn nicht bereits installiert #####
          import requests
          import time
          #from pushover import init, Client
          from blinkpy.blinkpy import Blink
          from blinkpy.auth import Auth
          from blinkpy.camera import BlinkCamera
          blink = Blink()
          auth = Auth({"username": "E-Mail", "password": "Passwort"}, no_prompt=True)
          blink.auth = auth
          blink.start()
          auth.send_auth_key(blink, "hier blink key")
          blink.setup_post_verify()
          for name, camera in blink.cameras.items(): print(name), print(camera.attributes)
          

          Nicht das bei den / der Kamera was nicht stimmt.

          S 1 Antwort Letzte Antwort
          1
          • P Pischleuder

            @pischleuder

            ggf. einmal dieses script erstellen und laufen lassen:

            #!/usr/bin/python3
            
            ###### zuerst ein pip3 install request ausführen, wenn nicht bereits installiert #####
            import requests
            import time
            #from pushover import init, Client
            from blinkpy.blinkpy import Blink
            from blinkpy.auth import Auth
            from blinkpy.camera import BlinkCamera
            blink = Blink()
            auth = Auth({"username": "E-Mail", "password": "Passwort"}, no_prompt=True)
            blink.auth = auth
            blink.start()
            auth.send_auth_key(blink, "hier blink key")
            blink.setup_post_verify()
            for name, camera in blink.cameras.items(): print(name), print(camera.attributes)
            

            Nicht das bei den / der Kamera was nicht stimmt.

            S Offline
            S Offline
            Soukai
            schrieb am zuletzt editiert von Soukai
            #270

            @pischleuder said in Blink Camera System:

            @pischleuder

            ggf. einmal dieses script erstellen und laufen lassen:

            #!/usr/bin/python3
            
            ###### zuerst ein pip3 install request ausführen, wenn nicht bereits installiert #####
            import requests
            import time
            #from pushover import init, Client
            from blinkpy.blinkpy import Blink
            from blinkpy.auth import Auth
            from blinkpy.camera import BlinkCamera
            blink = Blink()
            auth = Auth({"username": "E-Mail", "password": "Passwort"}, no_prompt=True)
            blink.auth = auth
            blink.start()
            auth.send_auth_key(blink, "hier blink key")
            blink.setup_post_verify()
            for name, camera in blink.cameras.items(): print(name), print(camera.attributes)
            

            Nicht das bei den / der Kamera was nicht stimmt.

            Das kam dabei raus:

            saeko@raspberrypi:/opt/iobroker $ python bildneu.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': 102, 'temperature_c': 38.9, 'temperature_calibrated': 102, '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=1655982587&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}
            
            

            Das json zu streichen hat auch nichts neues gebracht.
            Das kommt von der Konsole wenn ichs streich. Wahrscheinlich nicht wichtig aber ich schicks mal.

            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
            
            

            @pischleuder said in Blink Camera System:

            @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 :-)

            Nagut :no_mouth:

            @pischleuder said in Blink Camera System:

            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
            

            Meinst du in der Konsole oder in Iobroker dann? habe das mal versuchshalber ausprobiert in der Konsole und in iobroker:
            ./bild.py
            aber konnte nicht aufgerufen werden. Habe auch das "#" entfernt probeweise im Script. Keine Änderung.

            kommt folgendes in Konsole:

            saeko@raspberrypi:/opt/iobroker $ sudo ./bild.py
            sudo: ./bild.py: command not found
            saeko@raspberrypi:/opt/iobroker $ ./bild.py
            -bash: ./bild.py: Permission denied
            
            
            P 1 Antwort Letzte Antwort
            0
            • S Soukai

              @pischleuder said in Blink Camera System:

              @pischleuder

              ggf. einmal dieses script erstellen und laufen lassen:

              #!/usr/bin/python3
              
              ###### zuerst ein pip3 install request ausführen, wenn nicht bereits installiert #####
              import requests
              import time
              #from pushover import init, Client
              from blinkpy.blinkpy import Blink
              from blinkpy.auth import Auth
              from blinkpy.camera import BlinkCamera
              blink = Blink()
              auth = Auth({"username": "E-Mail", "password": "Passwort"}, no_prompt=True)
              blink.auth = auth
              blink.start()
              auth.send_auth_key(blink, "hier blink key")
              blink.setup_post_verify()
              for name, camera in blink.cameras.items(): print(name), print(camera.attributes)
              

              Nicht das bei den / der Kamera was nicht stimmt.

              Das kam dabei raus:

              saeko@raspberrypi:/opt/iobroker $ python bildneu.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': 102, 'temperature_c': 38.9, 'temperature_calibrated': 102, '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=1655982587&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}
              
              

              Das json zu streichen hat auch nichts neues gebracht.
              Das kommt von der Konsole wenn ichs streich. Wahrscheinlich nicht wichtig aber ich schicks mal.

              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
              
              

              @pischleuder said in Blink Camera System:

              @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 :-)

              Nagut :no_mouth:

              @pischleuder said in Blink Camera System:

              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
              

              Meinst du in der Konsole oder in Iobroker dann? habe das mal versuchshalber ausprobiert in der Konsole und in iobroker:
              ./bild.py
              aber konnte nicht aufgerufen werden. Habe auch das "#" entfernt probeweise im Script. Keine Änderung.

              kommt folgendes in Konsole:

              saeko@raspberrypi:/opt/iobroker $ sudo ./bild.py
              sudo: ./bild.py: command not found
              saeko@raspberrypi:/opt/iobroker $ ./bild.py
              -bash: ./bild.py: Permission denied
              
              
              P Offline
              P Offline
              Pischleuder
              schrieb am zuletzt editiert von Pischleuder
              #271

              @soukai

              Servus,

              also nochmal : lass alles ! mit sudo und python davorgestellt weg, sowohl in der Konsole (Terminal) als auch im iobroker blockly

              Ist das script ausführbar gemacht mit chmod 755 scriptname ?
              Im script lässt du die Zeile mit python bitte genau so stehen, wie ich es gepostet hatte.
              mach mal bitte ein ls -ldh bild.py und poste das Ergebnis.

              S 1 Antwort Letzte Antwort
              1
              • P Pischleuder

                @soukai

                Servus,

                also nochmal : lass alles ! mit sudo und python davorgestellt weg, sowohl in der Konsole (Terminal) als auch im iobroker blockly

                Ist das script ausführbar gemacht mit chmod 755 scriptname ?
                Im script lässt du die Zeile mit python bitte genau so stehen, wie ich es gepostet hatte.
                mach mal bitte ein ls -ldh bild.py und poste das Ergebnis.

                S Offline
                S Offline
                Soukai
                schrieb am zuletzt editiert von Soukai
                #272

                @pischleuder

                also nochmal : lass alles ! mit sudo und python davorgestellt weg, sowohl in der Konsole (Terminal) als auch im iobroker blockly

                Danke für deine Geduld! Habs jetzt wie du sagtest geändert. Rechte sind geändert und script läuft. Jedoch streikt er aber bei deinem Script, warum auch immer :/

                saeko@raspberrypi:/opt/iobroker $ chmod 755 bildneu.py
                saeko@raspberrypi:/opt/iobroker $ ./bildneu.py
                -bash: ./bildneu.py: /usr/bin/python3^M: bad interpreter: No such file or directory
                saeko@raspberrypi:/opt/iobroker $ chmod 755 bild.py
                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
                

                Hier ein das Ergebnis von ls -ldh bild.py und bildneu.py (dein script):

                saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                -rwxr-xr-x+ 1 saeko saeko 1.3K Jun 23 13:21 bild.py
                saeko@raspberrypi:/opt/iobroker $ ls -ldh bildneu.py
                -rwxr-xr-x+ 1 saeko saeko 612 Jun 24 14:48 bildneu.py
                
                P 1 Antwort Letzte Antwort
                0
                • S Soukai

                  @pischleuder

                  also nochmal : lass alles ! mit sudo und python davorgestellt weg, sowohl in der Konsole (Terminal) als auch im iobroker blockly

                  Danke für deine Geduld! Habs jetzt wie du sagtest geändert. Rechte sind geändert und script läuft. Jedoch streikt er aber bei deinem Script, warum auch immer :/

                  saeko@raspberrypi:/opt/iobroker $ chmod 755 bildneu.py
                  saeko@raspberrypi:/opt/iobroker $ ./bildneu.py
                  -bash: ./bildneu.py: /usr/bin/python3^M: bad interpreter: No such file or directory
                  saeko@raspberrypi:/opt/iobroker $ chmod 755 bild.py
                  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
                  

                  Hier ein das Ergebnis von ls -ldh bild.py und bildneu.py (dein script):

                  saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                  -rwxr-xr-x+ 1 saeko saeko 1.3K Jun 23 13:21 bild.py
                  saeko@raspberrypi:/opt/iobroker $ ls -ldh bildneu.py
                  -rwxr-xr-x+ 1 saeko saeko 612 Jun 24 14:48 bildneu.py
                  
                  P Offline
                  P Offline
                  Pischleuder
                  schrieb am zuletzt editiert von
                  #273

                  @soukai sagte in Blink Camera System:

                  @pischleuder

                  also nochmal : lass alles ! mit sudo und python davorgestellt weg, sowohl in der Konsole (Terminal) als auch im iobroker blockly

                  Danke für deine Geduld! Habs jetzt wie du sagtest geändert. Rechte sind geändert und script läuft. Jedoch streikt er aber bei deinem Script, warum auch immer :/

                  Weil Du offensichtlich python3 nicht installiert hast , sondern nur python :-)

                  Hier ein das Ergebnis von ls -ldh bild.py und bildneu.py (dein script):

                  saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                  -rwxr-xr-x+ 1 saeko saeko 1.3K Jun 23 13:21 bild.py
                  saeko@raspberrypi:/opt/iobroker $ ls -ldh bildneu.py
                  -rwxr-xr-x+ 1 saeko saeko 612 Jun 24 14:48 bildneu.py
                  

                  Jep, jetzt sieht man auch, warum das script aus blockly nicht ausgeführt wird. Die Rechte müssen auf iobroker sein. Bei mir sieht das so aus:

                  -rwxrwxrwx+ 1 iobroker iobroker 1,7K Apr  6 15:41 blink-cameras.py
                  pi@raspberrypi2:/opt/iobroker $ 
                  
                  S 1 Antwort Letzte Antwort
                  1
                  • P Pischleuder

                    @soukai sagte in Blink Camera System:

                    @pischleuder

                    also nochmal : lass alles ! mit sudo und python davorgestellt weg, sowohl in der Konsole (Terminal) als auch im iobroker blockly

                    Danke für deine Geduld! Habs jetzt wie du sagtest geändert. Rechte sind geändert und script läuft. Jedoch streikt er aber bei deinem Script, warum auch immer :/

                    Weil Du offensichtlich python3 nicht installiert hast , sondern nur python :-)

                    Hier ein das Ergebnis von ls -ldh bild.py und bildneu.py (dein script):

                    saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                    -rwxr-xr-x+ 1 saeko saeko 1.3K Jun 23 13:21 bild.py
                    saeko@raspberrypi:/opt/iobroker $ ls -ldh bildneu.py
                    -rwxr-xr-x+ 1 saeko saeko 612 Jun 24 14:48 bildneu.py
                    

                    Jep, jetzt sieht man auch, warum das script aus blockly nicht ausgeführt wird. Die Rechte müssen auf iobroker sein. Bei mir sieht das so aus:

                    -rwxrwxrwx+ 1 iobroker iobroker 1,7K Apr  6 15:41 blink-cameras.py
                    pi@raspberrypi2:/opt/iobroker $ 
                    
                    S Offline
                    S Offline
                    Soukai
                    schrieb am zuletzt editiert von Soukai
                    #274

                    @pischleuder
                    ist das nicht python 3?

                    saeko@raspberrypi:/opt/iobroker $ python --version
                    Python 3.8.4
                    
                    

                    hoffentlich ist es das D: kannst mir vielleicht eben sagen wie ich die Rechte auf iobroker änder?

                    P 1 Antwort Letzte Antwort
                    0
                    • S Soukai

                      @pischleuder
                      ist das nicht python 3?

                      saeko@raspberrypi:/opt/iobroker $ python --version
                      Python 3.8.4
                      
                      

                      hoffentlich ist es das D: kannst mir vielleicht eben sagen wie ich die Rechte auf iobroker änder?

                      P Offline
                      P Offline
                      Pischleuder
                      schrieb am zuletzt editiert von
                      #275

                      @soukai

                      ja, mach mal ein

                      chown iobroker deinscript.py
                      

                      danach nochmal ls -ldh

                      S 1 Antwort Letzte Antwort
                      1
                      • P Pischleuder

                        @soukai

                        ja, mach mal ein

                        chown iobroker deinscript.py
                        

                        danach nochmal ls -ldh

                        S Offline
                        S Offline
                        Soukai
                        schrieb am zuletzt editiert von
                        #276

                        @pischleuder

                        saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                        -rwxr-xr-x+ 1 iobroker saeko 1.3K Jun 23 13:21 bild.py
                        
                        
                        P 1 Antwort Letzte Antwort
                        0
                        • S Soukai

                          @pischleuder

                          saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                          -rwxr-xr-x+ 1 iobroker saeko 1.3K Jun 23 13:21 bild.py
                          
                          
                          P Offline
                          P Offline
                          Pischleuder
                          schrieb am zuletzt editiert von
                          #277

                          @soukai

                          ok, mach folgendes:

                          chown iobroker:iobroker deinscript.py
                          
                          S 1 Antwort Letzte Antwort
                          1
                          • P Pischleuder

                            @soukai

                            ok, mach folgendes:

                            chown iobroker:iobroker deinscript.py
                            
                            S Offline
                            S Offline
                            Soukai
                            schrieb am zuletzt editiert von
                            #278

                            @pischleuder

                            saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                            -rwxr-xr-x+ 1 iobroker iobroker 1.3K Jun 23 13:21 bild.py
                            
                            P 1 Antwort Letzte Antwort
                            0
                            • S Soukai

                              @pischleuder

                              saeko@raspberrypi:/opt/iobroker $ ls -ldh bild.py
                              -rwxr-xr-x+ 1 iobroker iobroker 1.3K Jun 23 13:21 bild.py
                              
                              P Offline
                              P Offline
                              Pischleuder
                              schrieb am zuletzt editiert von
                              #279

                              @soukai

                              nun sollte es hoffentlich laufen...

                              S 1 Antwort Letzte Antwort
                              1
                              • P Pischleuder

                                @soukai

                                nun sollte es hoffentlich laufen...

                                S Offline
                                S Offline
                                Soukai
                                schrieb am zuletzt editiert von Soukai
                                #280

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

                                leider immer noch nichts. Egal wie

                                P 1 Antwort Letzte Antwort
                                0
                                • S Soukai

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

                                  leider immer noch nichts. Egal wie

                                  P Offline
                                  P Offline
                                  Pischleuder
                                  schrieb am zuletzt editiert von Pischleuder
                                  #281

                                  @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 Antwort Letzte Antwort
                                  1
                                  • P 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 Offline
                                    S Offline
                                    Soukai
                                    schrieb am zuletzt editiert von Soukai
                                    #282

                                    @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 Antworten Letzte Antwort
                                    0
                                    • S 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 Offline
                                      P Offline
                                      Pischleuder
                                      schrieb am zuletzt editiert von
                                      #283

                                      @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 Antwort Letzte Antwort
                                      1
                                      • P Pischleuder

                                        @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 Offline
                                        S Offline
                                        Soukai
                                        schrieb am zuletzt editiert von
                                        #284

                                        @pischleuder

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

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

                                        P 1 Antwort Letzte Antwort
                                        0
                                        • S 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 Offline
                                          P Offline
                                          Pischleuder
                                          schrieb am zuletzt editiert von Pischleuder
                                          #285

                                          @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 Antwort Letzte Antwort
                                          1
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          860

                                          Online

                                          32.4k

                                          Benutzer

                                          81.4k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe