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.3k

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

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

Blink Camera System

Geplant Angeheftet Gesperrt Verschoben Hardware
blink xtcamera
406 Beiträge 63 Kommentatoren 118.6k 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.
  • Dr. BakteriusD Dr. Bakterius

    @flowski Nein, du installierst auf der Linux-Konsole erst Python und dann mittels pip install blinkpy die eigentliche Software. Ich glaube, dass der Austausch der beiden Dateien inzwischen nicht mehr notwendig sein wird.

    Danach erstellst du (z.B. mit nano) die beiden Skripte die du natürlich auf deine Gegebenheiten anpasst. Das erste Skript musst du nur einmal aufrufen um die Anmeldedaten zu speichern. Das zweite kannst du dann per cron, händisch oder mit dem linux-control Adapter aufrufen wenn du eine Aufnahme speichern möchtest. Dieses Bild kannst du dann wie gewünscht versenden oder archivieren.

    Also mit der Konsole solltest du nicht auf Kriegsfuß stehen... :blush:

    V Online
    V Online
    varg
    schrieb am zuletzt editiert von varg
    #389

    Frickel schon bei der Installation seit ner Stunde rum :ok_hand:

    pi@iobroker:~ $ pip install blinkpy
    error: externally-managed-environment
    
    × This environment is externally managed
    ╰─> To install Python packages system-wide, try apt install
        python3-xyz, where xyz is the package you are trying to
        install.
    
        If you wish to install a non-Debian-packaged Python package,
        create a virtual environment using python3 -m venv path/to/venv.
        Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
        sure you have python3-full installed.
    
        For more information visit http://rptl.io/venv
    
    note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
    hint: See PEP 668 for the detailed specification.
    pi@iobroker:~ $ ^C
    
    

    Egal was ich mache ich kann das ding nicht installieren. Evtl. hat mir jemand einen Tip ?

    Dr. BakteriusD V 2 Antworten Letzte Antwort
    0
    • V varg

      Frickel schon bei der Installation seit ner Stunde rum :ok_hand:

      pi@iobroker:~ $ pip install blinkpy
      error: externally-managed-environment
      
      × This environment is externally managed
      ╰─> To install Python packages system-wide, try apt install
          python3-xyz, where xyz is the package you are trying to
          install.
      
          If you wish to install a non-Debian-packaged Python package,
          create a virtual environment using python3 -m venv path/to/venv.
          Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
          sure you have python3-full installed.
      
          For more information visit http://rptl.io/venv
      
      note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
      hint: See PEP 668 for the detailed specification.
      pi@iobroker:~ $ ^C
      
      

      Egal was ich mache ich kann das ding nicht installieren. Evtl. hat mir jemand einen Tip ?

      Dr. BakteriusD Online
      Dr. BakteriusD Online
      Dr. Bakterius
      Most Active
      schrieb am zuletzt editiert von
      #390

      @varg Steht doch in der Meldung. Du benötigst python. Hast du das installiert?

      V 1 Antwort Letzte Antwort
      0
      • Dr. BakteriusD Dr. Bakterius

        @varg Steht doch in der Meldung. Du benötigst python. Hast du das installiert?

        V Online
        V Online
        varg
        schrieb am zuletzt editiert von varg
        #391

        @dr-bakterius klar auch die build essentials sind drauf. Kann aber in dem Ordner nix installieren. Konnte auch keinen Alternativbefehl finden.

        Dr. BakteriusD 1 Antwort Letzte Antwort
        0
        • V varg

          @dr-bakterius klar auch die build essentials sind drauf. Kann aber in dem Ordner nix installieren. Konnte auch keinen Alternativbefehl finden.

          Dr. BakteriusD Online
          Dr. BakteriusD Online
          Dr. Bakterius
          Most Active
          schrieb am zuletzt editiert von
          #392

          @varg Dann vielleicht diesem Hinweis folgen:

          You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.

          Aber vorher ein Backup machen!

          V 1 Antwort Letzte Antwort
          0
          • Dr. BakteriusD Dr. Bakterius

            @varg Dann vielleicht diesem Hinweis folgen:

            You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.

            Aber vorher ein Backup machen!

            V Online
            V Online
            varg
            schrieb am zuletzt editiert von
            #393

            @dr-bakterius ok danke aber das folgende machts auch nicht besser ;(

            pi@iobroker:~ $ pip install blinkpy --break-system-packages
            Defaulting to user installation because normal site-packages is not writeable
            Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
            Collecting blinkpy
              Downloading https://www.piwheels.org/simple/blinkpy/blinkpy-0.23.0-py3-none-an                                                                                                                                                             y.whl (30 kB)
            Collecting python-dateutil>=2.8.1
              Downloading https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.                                                                                                                                                             9.0.post0-py2.py3-none-any.whl (229 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 2.7 MB/s eta 0:00:00
            Requirement already satisfied: requests>=2.24.0 in /usr/lib/python3/dist-package                                                                                                                                                             s (from blinkpy) (2.28.1)
            Collecting python-slugify>=4.0.1
              Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-8.0.                                                                                                                                                             4-py3-none-any.whl (10 kB)
            Collecting sortedcontainers~=2.4.0
              Downloading https://www.piwheels.org/simple/sortedcontainers/sortedcontainers-                                                                                                                                                             2.4.0-py2.py3-none-any.whl (29 kB)
            Collecting aiohttp>=3.8.4
              Downloading aiohttp-3.11.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (1.7 MB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 5.8 MB/s eta 0:00:00
            Collecting aiofiles>=23.1.0
              Downloading https://www.piwheels.org/simple/aiofiles/aiofiles-24.1.0-py3-none-                                                                                                                                                             any.whl (15 kB)
            Collecting aiohappyeyeballs>=2.3.0
              Downloading https://www.piwheels.org/simple/aiohappyeyeballs/aiohappyeyeballs-                                                                                                                                                             2.6.1-py3-none-any.whl (15 kB)
            Collecting aiosignal>=1.1.2
              Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.2-py2.py3-                                                                                                                                                             none-any.whl (7.6 kB)
            Collecting attrs>=17.3.0
              Downloading https://www.piwheels.org/simple/attrs/attrs-25.3.0-py3-none-any.wh                                                                                                                                                             l (63 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 kB 1.4 MB/s eta 0:00:00
            Collecting frozenlist>=1.1.1
              Downloading frozenlist-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_                                                                                                                                                             aarch64.whl (276 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 276.4/276.4 kB 5.0 MB/s eta 0:00:00
            Collecting multidict<7.0,>=4.5
              Downloading multidict-6.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (135 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.7/135.7 kB 4.1 MB/s eta 0:00:00
            Collecting propcache>=0.2.0
              Downloading propcache-0.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (232 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.4/232.4 kB 5.0 MB/s eta 0:00:00
            Collecting yarl<2.0,>=1.17.0
              Downloading yarl-1.18.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch                                                                                                                                                             64.whl (340 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 340.6/340.6 kB 4.6 MB/s eta 0:00:00
            Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from                                                                                                                                                              python-dateutil>=2.8.1->blinkpy) (1.16.0)
            Collecting text-unidecode>=1.3
              Downloading https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-                                                                                                                                                             py2.py3-none-any.whl (78 kB)
                 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 1.1 MB/s eta 0:00:00
            Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from                                                                                                                                                              yarl<2.0,>=1.17.0->aiohttp>=3.8.4->blinkpy) (3.3)
            Installing collected packages: text-unidecode, sortedcontainers, python-slugify,                                                                                                                                                              python-dateutil, propcache, multidict, frozenlist, attrs, aiohappyeyeballs, aio                                                                                                                                                             files, yarl, aiosignal, aiohttp, blinkpy
              WARNING: The script slugify is installed in '/home/pi/.local/bin' which is not                                                                                                                                                              on PATH.
              Consider adding this directory to PATH or, if you prefer to suppress this warn                                                                                                                                                             ing, use --no-warn-script-location.
            Successfully installed aiofiles-24.1.0 aiohappyeyeballs-2.6.1 aiohttp-3.11.14 ai                                                                                                                                                             osignal-1.3.2 attrs-25.3.0 blinkpy-0.23.0 frozenlist-1.5.0 multidict-6.2.0 propc                                                                                                                                                             ache-0.3.0 python-dateutil-2.9.0.post0 python-slugify-8.0.4 sortedcontainers-2.4                                                                                                                                                             .0 text-unidecode-1.3 yarl-1.18.3
            pi@iobroker:~ $ await Blink.start()
            -bash: syntax error near unexpected token `('
            pi@iobroker:~ $ import asyncio
            -bash: import: command not found
            pi@iobroker:~ $ cd blinkpy
            -bash: cd: blinkpy: No such file or directory
            
            
            Dr. BakteriusD 1 Antwort Letzte Antwort
            0
            • V varg

              @dr-bakterius ok danke aber das folgende machts auch nicht besser ;(

              pi@iobroker:~ $ pip install blinkpy --break-system-packages
              Defaulting to user installation because normal site-packages is not writeable
              Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
              Collecting blinkpy
                Downloading https://www.piwheels.org/simple/blinkpy/blinkpy-0.23.0-py3-none-an                                                                                                                                                             y.whl (30 kB)
              Collecting python-dateutil>=2.8.1
                Downloading https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.                                                                                                                                                             9.0.post0-py2.py3-none-any.whl (229 kB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 2.7 MB/s eta 0:00:00
              Requirement already satisfied: requests>=2.24.0 in /usr/lib/python3/dist-package                                                                                                                                                             s (from blinkpy) (2.28.1)
              Collecting python-slugify>=4.0.1
                Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-8.0.                                                                                                                                                             4-py3-none-any.whl (10 kB)
              Collecting sortedcontainers~=2.4.0
                Downloading https://www.piwheels.org/simple/sortedcontainers/sortedcontainers-                                                                                                                                                             2.4.0-py2.py3-none-any.whl (29 kB)
              Collecting aiohttp>=3.8.4
                Downloading aiohttp-3.11.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (1.7 MB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 5.8 MB/s eta 0:00:00
              Collecting aiofiles>=23.1.0
                Downloading https://www.piwheels.org/simple/aiofiles/aiofiles-24.1.0-py3-none-                                                                                                                                                             any.whl (15 kB)
              Collecting aiohappyeyeballs>=2.3.0
                Downloading https://www.piwheels.org/simple/aiohappyeyeballs/aiohappyeyeballs-                                                                                                                                                             2.6.1-py3-none-any.whl (15 kB)
              Collecting aiosignal>=1.1.2
                Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.2-py2.py3-                                                                                                                                                             none-any.whl (7.6 kB)
              Collecting attrs>=17.3.0
                Downloading https://www.piwheels.org/simple/attrs/attrs-25.3.0-py3-none-any.wh                                                                                                                                                             l (63 kB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 kB 1.4 MB/s eta 0:00:00
              Collecting frozenlist>=1.1.1
                Downloading frozenlist-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_                                                                                                                                                             aarch64.whl (276 kB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 276.4/276.4 kB 5.0 MB/s eta 0:00:00
              Collecting multidict<7.0,>=4.5
                Downloading multidict-6.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (135 kB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.7/135.7 kB 4.1 MB/s eta 0:00:00
              Collecting propcache>=0.2.0
                Downloading propcache-0.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (232 kB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.4/232.4 kB 5.0 MB/s eta 0:00:00
              Collecting yarl<2.0,>=1.17.0
                Downloading yarl-1.18.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch                                                                                                                                                             64.whl (340 kB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 340.6/340.6 kB 4.6 MB/s eta 0:00:00
              Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from                                                                                                                                                              python-dateutil>=2.8.1->blinkpy) (1.16.0)
              Collecting text-unidecode>=1.3
                Downloading https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-                                                                                                                                                             py2.py3-none-any.whl (78 kB)
                   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 1.1 MB/s eta 0:00:00
              Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from                                                                                                                                                              yarl<2.0,>=1.17.0->aiohttp>=3.8.4->blinkpy) (3.3)
              Installing collected packages: text-unidecode, sortedcontainers, python-slugify,                                                                                                                                                              python-dateutil, propcache, multidict, frozenlist, attrs, aiohappyeyeballs, aio                                                                                                                                                             files, yarl, aiosignal, aiohttp, blinkpy
                WARNING: The script slugify is installed in '/home/pi/.local/bin' which is not                                                                                                                                                              on PATH.
                Consider adding this directory to PATH or, if you prefer to suppress this warn                                                                                                                                                             ing, use --no-warn-script-location.
              Successfully installed aiofiles-24.1.0 aiohappyeyeballs-2.6.1 aiohttp-3.11.14 ai                                                                                                                                                             osignal-1.3.2 attrs-25.3.0 blinkpy-0.23.0 frozenlist-1.5.0 multidict-6.2.0 propc                                                                                                                                                             ache-0.3.0 python-dateutil-2.9.0.post0 python-slugify-8.0.4 sortedcontainers-2.4                                                                                                                                                             .0 text-unidecode-1.3 yarl-1.18.3
              pi@iobroker:~ $ await Blink.start()
              -bash: syntax error near unexpected token `('
              pi@iobroker:~ $ import asyncio
              -bash: import: command not found
              pi@iobroker:~ $ cd blinkpy
              -bash: cd: blinkpy: No such file or directory
              
              
              Dr. BakteriusD Online
              Dr. BakteriusD Online
              Dr. Bakterius
              Most Active
              schrieb am zuletzt editiert von
              #394

              @varg Die Befehle ruft man nicht in der Konsole auf sondern per Python-Skript. Zum Speichern eines Bildes sieht es bei mir so aus (abgelegt unter /opt/iobroker/bild.py mit den Rechten 674:

              import asyncio
              from aiohttp import ClientSession
              from blinkpy.blinkpy import Blink
              from blinkpy.auth import Auth
              from blinkpy.helpers.util import json_load
              
              async def start():
                  blink = Blink()
                  auth = Auth(await json_load("/opt/iobroker/blink_auth.json"))
                  blink.auth = auth
                  await blink.start()
                  camera = blink.cameras['Eingangstuere']
                  await camera.snap_picture()       # Take a new picture with the camera
                  await blink.refresh()             # Get new information from server
                  await camera.image_to_file('/opt/iobroker/blink.jpg')
                  return blink
              
              blink = asyncio.run(start())
              

              Wie man die blink_auth.json erstellt, habe ich weiter oben schon beschrieben.

              Der Aufruf mit Blockly wird dann mit diesem Befehl ausgeführt:
              Screenshot 2025-03-21 085159.png

              So kannst du auch auf in der Konsole einen Test starten.

              1 Antwort Letzte Antwort
              0
              • Dr. BakteriusD Dr. Bakterius

                Ich grabe diesen Thread aus aktuellem Anlass wieder aus.

                Seit irgendwann im April hat Blinkpy nicht mehr funktioniert, weil Amazon bei der Anmeldung etwas geändert hat und dadurch jedes Mal ein neuer 2FA Code gesendet wurde. Das wurde auch auf GitHub behandelt (https://github.com/fronzbot/blinkpy/issues/917). Inzwischen dürfte es eine Lösung geben die ich hier gerne zusammenfassen möchte. Vielleicht nützt es ja jemandem.

                Aktuell muss man folgende beiden Skripte von GitHub herunterladen und bei sich im Ordner /home/<user>/.local/lib/python3.11/site-packages/blinkpy ersetzen: auth.py und blinkpy.py.

                Man erstellt einmalig ein Skript (z.B. anmelden.py) mit folgendem Inhalt:

                import asyncio
                from aiohttp import ClientSession
                from blinkpy.blinkpy import Blink
                from blinkpy.auth import Auth
                
                async def start():
                    blink = Blink(session=ClientSession())
                    # Can set no_prompt when initializing auth handler
                    auth = Auth({"username": <your username>, "password": <your password>}, no_prompt=True)
                    blink.auth = auth
                    await blink.start()
                    await blink.save("/opt/iobroker/blink_auth.json")
                    return blink
                
                blink = asyncio.run(start())
                

                Wenn man dieses von der Console aufruft

                python3.11 anmelden.py
                

                , wird man nach seinen Anmeldedaten gefragt und erhält dann den 2FA Code welchen man angibt. Anschließend wird in /opt/iobroker die Datei blink_auth.json erstellt. Diese enthält die Anmeldedaten für künftige Abfragen. Danach kann man das Skript wenn man möchte wieder löschen.

                Um jetzt ein Bild abzufragen braucht man folgendes Skript:

                import asyncio
                from aiohttp import ClientSession
                from blinkpy.blinkpy import Blink
                from blinkpy.auth import Auth
                from blinkpy.helpers.util import json_load
                
                async def start():
                    blink = Blink()
                    auth = Auth(await json_load("/opt/iobroker/blink_auth.json"))   # Anmeldeinformationen laden
                    blink.auth = auth   # Anmeldeinformationen senden
                    await blink.start()   # Verbindung starten
                    camera = blink.cameras['<Kameraname>']   # Kameraname angeben
                    await camera.snap_picture()   # Bild aufnehmen
                    await blink.refresh()   # Daten vom Blink-Server abfragen
                    await camera.image_to_file('/opt/iobroker/blink.jpg')   # Bild speichern
                    return blink
                
                blink = asyncio.run(start())
                

                Leider ist es mir nicht gelungen das Skript mit exec (JS oder Blockly) wegen fehlender Berechtigung aufzurufen. Ich habe das dann mit dem Linux-Control Adapter gelöst.

                D Offline
                D Offline
                Dette
                schrieb am zuletzt editiert von
                #395

                Leider ist es mir nicht gelungen das Skript mit exec (JS oder Blockly) wegen fehlender Berechtigung aufzurufen. Ich habe das dann mit dem Linux-Control Adapter gelöst.

                Daran bin ich auch fast gestorben, denn auch mit dem Linux-Control klappt es bei mir nicht.

                Die einfache Lösung:
                Man muss blinkpy mit dem user "iobroker" installieren:

                sudo -H -u iobroker pip install blinkpy
                

                Danach kann man das Python Skript normal via exec aufrufen.

                B 1 Antwort Letzte Antwort
                1
                • D Dette

                  Leider ist es mir nicht gelungen das Skript mit exec (JS oder Blockly) wegen fehlender Berechtigung aufzurufen. Ich habe das dann mit dem Linux-Control Adapter gelöst.

                  Daran bin ich auch fast gestorben, denn auch mit dem Linux-Control klappt es bei mir nicht.

                  Die einfache Lösung:
                  Man muss blinkpy mit dem user "iobroker" installieren:

                  sudo -H -u iobroker pip install blinkpy
                  

                  Danach kann man das Python Skript normal via exec aufrufen.

                  B Offline
                  B Offline
                  Brekkis
                  schrieb am zuletzt editiert von Brekkis
                  #396

                  Howto Blink in IoBroker einbinden

                  WICHTIG: Diese Anleitung ist noch ein Entwurf, ich brauche hier vermutlich noch Input von den Profis hier im Forum, aber Ziel ist es, eine für jeden nachvollziehbare Anleitung als Basis für die Einbindung der Blink-Kameras in IoBroker zu erhalten! edit 2025-03-28: es scheint zu funktionieren.

                  Basis dieses How-To sind die Informationen zusammengefasst aus diesem Thread und dem GitHub-Projekt: https://github.com/fronzbot/blinkpy

                  Ich habe mal hier aus dem Thread die Informationen, Codezeilen und Scripte übernommen, damit ein ordentliches How-To für Neulinge nachvollziehbar dokumentiert ist.... Gerne könnt ihr mir helfen, das How-To zu vervollständigen, zu berichtigen, und lauffähig zu machen, damit alle ihre Blink-Kameras in Iobroker einbinden können)
                  Will vorher noch anmerken, dass ich nicht der Coding-Spezialist bin und mit dem "Try and Error-Prizip" arbeite.


                  Start des HOWTO (Stand 2025-03-28)
                  Ich werde den Stand (nach Korrekturen) dann immer updaten

                  Welche Funktionen erwarten euch nach erfolgreicher Durchführung:

                  • Blink Kameras sind in IoBroker eingebunden
                  • Zugriff auf das letzte gespeicherte Bild der Kameras
                  • Zugriff auf das letzte gespeicherte Video der Kameras
                  • Anzeige des Bilds in der Visu
                  • Anzeige des Videos in der Visu
                  • Scharfschalten und Deaktivieren via Datenpunkt

                  Grundlagen:
                  (bei mir läuft das ganze in einer Proxmox Installation auf Debian 11.3.0 in einem Container, sollte aber auch auf einem PI funktionieren)

                  • funktionierende IoBroker-Installation
                  • funktionierende Homebridge-Installation (läuft bei mir in der V.1.85, ebenfalls in einer VM auf Proxmox)
                  • mindestens eine in der Blink-App funktionierende Kamera
                  • NodeJS und NPM (über Konsolenbefehl
                  nodejs -v
                  

                  und

                  npm -v
                  

                  abrufbar)
                  edit: (ich habe aktuell die Versionen NodeJS 22.14.0 und NPM10.9.2 installiert)

                  zusätzlich installierte Adapter Ioboker:

                  • HAM (Homebridge Zubehör-Manager V5.3.1)
                    Im Homebridge-Adapter muss ersten Tab unter "zusätzliche NPM Module installieren" noch "homebridge-blink-for-home@3.7.6" eingetragen werden und der Haken "beim nächsten Start die Homebridge Plugins von NPM installieren" gesetzt sein! Im Tab Konfigurationsdatei muss folgender Code eingetragen werden:
                  "platforms" : [
                    {
                      "name"     : "Blink",
                      "username" : "<your blink email address>",
                      "password" : "<your blink password>",
                      "pin"      : "<pin>",
                      "platform" : "Blink"
                    }
                  ]
                  
                  

                  Die Daten in den <> Klammern durch die eigenen Anmeldedaten ersetzen.

                  • Javascript Adapter und Grundverständnis für die Anwendung des scripens

                  Über die Konsole installiert: (via Putty oder wie bei mir über die Proxmox-eigene Konsole)

                  • Python, Ich habe V 3.11.2 installiert. Installation kann man überprüfen mit
                  python --version
                  Python 3.11.2
                  

                  Falls Python und Pip nicht installiert sind, geht man wie folgt vor:
                  Konsolenbefehle:
                  Version abfragen

                  python3 --version
                  pip3 --version
                  sudo apt update
                  sudo apt install python3
                  sudo apt install python3-pip
                  
                  
                  • Blinkpy:
                    Installation als User "iobroker" siehe Beitrag von @Dr-Bakterius
                    sudo -H -u iobroker pip install blinkpy
                  sudo -H -u iobroker pipx install blinkpy
                  

                  (edit: 27.03.2025, Hinweis @Thomas-Braun)
                  ich habe pip3 installiert und mit folgendem Befehl blinkpy installiert:

                  sudo -H -u iobroker pip3 install blinkpy
                  

                  Danach werden 2 Scripte angelegt
                  Script 1: "anmelden.py" (erstellen im Ordner: /home/iobroker)
                  erstellt wird das Script mit

                  cd /home/iobroker
                  
                  nano anmelden.py
                  

                  Inhalt des Scripts:

                  import asyncio
                  from aiohttp import ClientSession
                  from blinkpy.blinkpy import Blink
                  from blinkpy.auth import Auth
                   
                  async def start():
                      blink = Blink(session=ClientSession())
                      # Can set no_prompt when initializing auth handler
                      auth = Auth({"username": <your username>, "password": <your password>}, no_prompt=True)
                      blink.auth = auth
                      await blink.start()
                      await blink.save("/opt/iobroker/blink_auth.json")
                      return blink
                   
                  blink = asyncio.run(start())
                  
                  

                  <your username>
                  <your password>

                  müssen mit den Anmeldedaten aus der Blink-Anmeldung (in der App) ersetzt werden.

                  mit Strg + x beenden, speichern, Name bestätigen
                  mit

                  python3.11 anmelden.py
                  

                  das Script ausführen

                  (Bei mir kam eine Fehlermeldung bzgl fehlendem aiohttp-Addon, das habe ich dann nochmal nachinstalliert)

                  pip3 install aiohttp
                  

                  Danach sollte man/wird man nach seinen Anmeldedaten gefragt und erhält dann den 2FA Code welchen man angibt. Anschließend wird in /opt/iobroker die Datei blink_auth.json erstellt. Diese enthält die Anmeldedaten für künftige Abfragen. Den Pin auch in der Instanz des Homebridge Zubehör Adapter unter Konfigurationsdatei "PIN" eintragen.
                  Danach kann man das Skript wenn man möchte wieder löschen. (ich habe es nicht gelöscht)

                  Um jetzt ein Bild abzufragen braucht man folgendes Skript:
                  erstellt wird das Script mit

                  cd /opt/iobroker/bild.py
                  
                  nano bild.py
                  

                  Name kann frei gewählt werden.

                  Zugriffsrechte anpassen /opt/iobroker/bild.py
                  mit den Rechten 674 (ich habe die Rechte auf 655 gesetzt)

                  cd /opt/ibroker
                  chmod 755 bild.py
                  
                  import asyncio
                  from aiohttp import ClientSession
                  from blinkpy.blinkpy import Blink
                  from blinkpy.auth import Auth
                  from blinkpy.helpers.util import json_load
                   
                  async def start():
                      blink = Blink()
                      auth = Auth(await json_load("/opt/iobroker/blink_auth.json"))   # Anmeldeinformationen laden
                      blink.auth = auth   # Anmeldeinformationen senden
                      await blink.start()   # Verbindung starten
                      camera = blink.cameras['<Kameraname>']   # Kameraname angeben
                      await camera.snap_picture()   # Bild aufnehmen
                      await blink.refresh()   # Daten vom Blink-Server abfragen
                      await camera.image_to_file('/opt/iobroker/blink.jpg')   # Bild speichern
                      return blink
                   
                  blink = asyncio.run(start())
                  
                  

                  <Kameraname>
                  muss mit dem Namen der Blink-Kamera in der App übereinstimmen!

                  mit Strg + x beenden, speichern, Name bestätigen
                  mit

                  python3.11 bild.py
                  

                  das Script ausführen

                  Der Aufruf des Bildes wird dann über den Javascript-Adapter gemacht:
                  Hierzu ein Blockly erstellen und u.a. diese Zeile (von @Dr-Bakterius ) eingeben:
                  (Trigger z.b. Cronjob, Tastendruck eines Button-Widgets fehlt hier noch, oder ggf. Datenpunkt "Bewegung" als Trigger)
                  Werde dann hier später noch ein komplettes Blockly-Script einfügen

                  1742543677513-screenshot-2025-03-21-085159.png

                  Das Bild liegt dann hier ab:
                  /opt/iobroker/blink.jpg

                  Über ein "Image-Widget" kann dann das Bild in die Visu eingebunden werden:
                  Ein Beispiel ergänze ich dann, wenn es bei mir funktioniert! :-)

                  Ergänzung für Abfrage des Videos und Kamera "ARM" und "DISARM" wird später noch ergänzt.


                  Ende des HowTos.
                  Ich hoffe hier um aktive Hilfestellung, damit wir eine verständliche Anleitung für jedermann hinbekommen.

                  Bis demnächst, Gruß Brekkis

                  Thomas BraunT 1 Antwort Letzte Antwort
                  0
                  • B Brekkis

                    Howto Blink in IoBroker einbinden

                    WICHTIG: Diese Anleitung ist noch ein Entwurf, ich brauche hier vermutlich noch Input von den Profis hier im Forum, aber Ziel ist es, eine für jeden nachvollziehbare Anleitung als Basis für die Einbindung der Blink-Kameras in IoBroker zu erhalten! edit 2025-03-28: es scheint zu funktionieren.

                    Basis dieses How-To sind die Informationen zusammengefasst aus diesem Thread und dem GitHub-Projekt: https://github.com/fronzbot/blinkpy

                    Ich habe mal hier aus dem Thread die Informationen, Codezeilen und Scripte übernommen, damit ein ordentliches How-To für Neulinge nachvollziehbar dokumentiert ist.... Gerne könnt ihr mir helfen, das How-To zu vervollständigen, zu berichtigen, und lauffähig zu machen, damit alle ihre Blink-Kameras in Iobroker einbinden können)
                    Will vorher noch anmerken, dass ich nicht der Coding-Spezialist bin und mit dem "Try and Error-Prizip" arbeite.


                    Start des HOWTO (Stand 2025-03-28)
                    Ich werde den Stand (nach Korrekturen) dann immer updaten

                    Welche Funktionen erwarten euch nach erfolgreicher Durchführung:

                    • Blink Kameras sind in IoBroker eingebunden
                    • Zugriff auf das letzte gespeicherte Bild der Kameras
                    • Zugriff auf das letzte gespeicherte Video der Kameras
                    • Anzeige des Bilds in der Visu
                    • Anzeige des Videos in der Visu
                    • Scharfschalten und Deaktivieren via Datenpunkt

                    Grundlagen:
                    (bei mir läuft das ganze in einer Proxmox Installation auf Debian 11.3.0 in einem Container, sollte aber auch auf einem PI funktionieren)

                    • funktionierende IoBroker-Installation
                    • funktionierende Homebridge-Installation (läuft bei mir in der V.1.85, ebenfalls in einer VM auf Proxmox)
                    • mindestens eine in der Blink-App funktionierende Kamera
                    • NodeJS und NPM (über Konsolenbefehl
                    nodejs -v
                    

                    und

                    npm -v
                    

                    abrufbar)
                    edit: (ich habe aktuell die Versionen NodeJS 22.14.0 und NPM10.9.2 installiert)

                    zusätzlich installierte Adapter Ioboker:

                    • HAM (Homebridge Zubehör-Manager V5.3.1)
                      Im Homebridge-Adapter muss ersten Tab unter "zusätzliche NPM Module installieren" noch "homebridge-blink-for-home@3.7.6" eingetragen werden und der Haken "beim nächsten Start die Homebridge Plugins von NPM installieren" gesetzt sein! Im Tab Konfigurationsdatei muss folgender Code eingetragen werden:
                    "platforms" : [
                      {
                        "name"     : "Blink",
                        "username" : "<your blink email address>",
                        "password" : "<your blink password>",
                        "pin"      : "<pin>",
                        "platform" : "Blink"
                      }
                    ]
                    
                    

                    Die Daten in den <> Klammern durch die eigenen Anmeldedaten ersetzen.

                    • Javascript Adapter und Grundverständnis für die Anwendung des scripens

                    Über die Konsole installiert: (via Putty oder wie bei mir über die Proxmox-eigene Konsole)

                    • Python, Ich habe V 3.11.2 installiert. Installation kann man überprüfen mit
                    python --version
                    Python 3.11.2
                    

                    Falls Python und Pip nicht installiert sind, geht man wie folgt vor:
                    Konsolenbefehle:
                    Version abfragen

                    python3 --version
                    pip3 --version
                    sudo apt update
                    sudo apt install python3
                    sudo apt install python3-pip
                    
                    
                    • Blinkpy:
                      Installation als User "iobroker" siehe Beitrag von @Dr-Bakterius
                      sudo -H -u iobroker pip install blinkpy
                    sudo -H -u iobroker pipx install blinkpy
                    

                    (edit: 27.03.2025, Hinweis @Thomas-Braun)
                    ich habe pip3 installiert und mit folgendem Befehl blinkpy installiert:

                    sudo -H -u iobroker pip3 install blinkpy
                    

                    Danach werden 2 Scripte angelegt
                    Script 1: "anmelden.py" (erstellen im Ordner: /home/iobroker)
                    erstellt wird das Script mit

                    cd /home/iobroker
                    
                    nano anmelden.py
                    

                    Inhalt des Scripts:

                    import asyncio
                    from aiohttp import ClientSession
                    from blinkpy.blinkpy import Blink
                    from blinkpy.auth import Auth
                     
                    async def start():
                        blink = Blink(session=ClientSession())
                        # Can set no_prompt when initializing auth handler
                        auth = Auth({"username": <your username>, "password": <your password>}, no_prompt=True)
                        blink.auth = auth
                        await blink.start()
                        await blink.save("/opt/iobroker/blink_auth.json")
                        return blink
                     
                    blink = asyncio.run(start())
                    
                    

                    <your username>
                    <your password>

                    müssen mit den Anmeldedaten aus der Blink-Anmeldung (in der App) ersetzt werden.

                    mit Strg + x beenden, speichern, Name bestätigen
                    mit

                    python3.11 anmelden.py
                    

                    das Script ausführen

                    (Bei mir kam eine Fehlermeldung bzgl fehlendem aiohttp-Addon, das habe ich dann nochmal nachinstalliert)

                    pip3 install aiohttp
                    

                    Danach sollte man/wird man nach seinen Anmeldedaten gefragt und erhält dann den 2FA Code welchen man angibt. Anschließend wird in /opt/iobroker die Datei blink_auth.json erstellt. Diese enthält die Anmeldedaten für künftige Abfragen. Den Pin auch in der Instanz des Homebridge Zubehör Adapter unter Konfigurationsdatei "PIN" eintragen.
                    Danach kann man das Skript wenn man möchte wieder löschen. (ich habe es nicht gelöscht)

                    Um jetzt ein Bild abzufragen braucht man folgendes Skript:
                    erstellt wird das Script mit

                    cd /opt/iobroker/bild.py
                    
                    nano bild.py
                    

                    Name kann frei gewählt werden.

                    Zugriffsrechte anpassen /opt/iobroker/bild.py
                    mit den Rechten 674 (ich habe die Rechte auf 655 gesetzt)

                    cd /opt/ibroker
                    chmod 755 bild.py
                    
                    import asyncio
                    from aiohttp import ClientSession
                    from blinkpy.blinkpy import Blink
                    from blinkpy.auth import Auth
                    from blinkpy.helpers.util import json_load
                     
                    async def start():
                        blink = Blink()
                        auth = Auth(await json_load("/opt/iobroker/blink_auth.json"))   # Anmeldeinformationen laden
                        blink.auth = auth   # Anmeldeinformationen senden
                        await blink.start()   # Verbindung starten
                        camera = blink.cameras['<Kameraname>']   # Kameraname angeben
                        await camera.snap_picture()   # Bild aufnehmen
                        await blink.refresh()   # Daten vom Blink-Server abfragen
                        await camera.image_to_file('/opt/iobroker/blink.jpg')   # Bild speichern
                        return blink
                     
                    blink = asyncio.run(start())
                    
                    

                    <Kameraname>
                    muss mit dem Namen der Blink-Kamera in der App übereinstimmen!

                    mit Strg + x beenden, speichern, Name bestätigen
                    mit

                    python3.11 bild.py
                    

                    das Script ausführen

                    Der Aufruf des Bildes wird dann über den Javascript-Adapter gemacht:
                    Hierzu ein Blockly erstellen und u.a. diese Zeile (von @Dr-Bakterius ) eingeben:
                    (Trigger z.b. Cronjob, Tastendruck eines Button-Widgets fehlt hier noch, oder ggf. Datenpunkt "Bewegung" als Trigger)
                    Werde dann hier später noch ein komplettes Blockly-Script einfügen

                    1742543677513-screenshot-2025-03-21-085159.png

                    Das Bild liegt dann hier ab:
                    /opt/iobroker/blink.jpg

                    Über ein "Image-Widget" kann dann das Bild in die Visu eingebunden werden:
                    Ein Beispiel ergänze ich dann, wenn es bei mir funktioniert! :-)

                    Ergänzung für Abfrage des Videos und Kamera "ARM" und "DISARM" wird später noch ergänzt.


                    Ende des HowTos.
                    Ich hoffe hier um aktive Hilfestellung, damit wir eine verständliche Anleitung für jedermann hinbekommen.

                    Bis demnächst, Gruß Brekkis

                    Thomas BraunT Online
                    Thomas BraunT Online
                    Thomas Braun
                    Most Active
                    schrieb am zuletzt editiert von
                    #397

                    @brekkis sagte in Blink Camera System:

                    sudo -H -u iobroker pip install blinkpy

                    Besser:

                    sudo -H -u iobroker pipx install blinkpy
                    

                    pip sollte auf modernen Python-Installationen nicht mehr verwendet werden.

                    Linux-Werkzeugkasten:
                    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                    NodeJS Fixer Skript:
                    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                    B 1 Antwort Letzte Antwort
                    0
                    • Thomas BraunT Thomas Braun

                      @brekkis sagte in Blink Camera System:

                      sudo -H -u iobroker pip install blinkpy

                      Besser:

                      sudo -H -u iobroker pipx install blinkpy
                      

                      pip sollte auf modernen Python-Installationen nicht mehr verwendet werden.

                      B Offline
                      B Offline
                      Brekkis
                      schrieb am zuletzt editiert von
                      #398

                      @thomas-braun Ok, habe deinen Hinweis im HowTo eingearbeitet. Danke dir. Ist dir sonst noch was aufgefallen, was falsch oder nicht so schön ist....?

                      Thomas BraunT 1 Antwort Letzte Antwort
                      0
                      • B Brekkis

                        @thomas-braun Ok, habe deinen Hinweis im HowTo eingearbeitet. Danke dir. Ist dir sonst noch was aufgefallen, was falsch oder nicht so schön ist....?

                        Thomas BraunT Online
                        Thomas BraunT Online
                        Thomas Braun
                        Most Active
                        schrieb am zuletzt editiert von Thomas Braun
                        #399

                        @brekkis

                        Da ich die Hardware nicht habe kann ich auch nichts aus eigener Erfahrung beitragen.
                        Nur bist du sicher, das z. B. mindestens nodejs@22 benötigt wird? Widerspricht der derzeitigen Empfehlung von nodejs@20 für den ioBroker.

                        Die python Version wird so geprüft:

                        python --version
                        Python 3.13.2
                        

                        Linux-Werkzeugkasten:
                        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                        NodeJS Fixer Skript:
                        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                        B 1 Antwort Letzte Antwort
                        0
                        • Thomas BraunT Thomas Braun

                          @brekkis

                          Da ich die Hardware nicht habe kann ich auch nichts aus eigener Erfahrung beitragen.
                          Nur bist du sicher, das z. B. mindestens nodejs@22 benötigt wird? Widerspricht der derzeitigen Empfehlung von nodejs@20 für den ioBroker.

                          Die python Version wird so geprüft:

                          python --version
                          Python 3.13.2
                          
                          B Offline
                          B Offline
                          Brekkis
                          schrieb am zuletzt editiert von
                          #400

                          @thomas-braun Das habe ich doof geschrieben, das ist keine Mindestanforderung, sondern meine aktuell installierte Version. Ich schreibe das mal um. Danke

                          Thomas BraunT 1 Antwort Letzte Antwort
                          0
                          • B Brekkis

                            @thomas-braun Das habe ich doof geschrieben, das ist keine Mindestanforderung, sondern meine aktuell installierte Version. Ich schreibe das mal um. Danke

                            Thomas BraunT Online
                            Thomas BraunT Online
                            Thomas Braun
                            Most Active
                            schrieb am zuletzt editiert von Thomas Braun
                            #401

                            @brekkis

                            Und so als Vorausblick:
                            Da wird es wohl 'irgendwann' mal ein Debian-Paket zu geben.
                            Liegt momentan im Testing-Zweig und dürfte dann im Sommer zum Release von Debian 13 'Trixie' direkt aus dem Paket-Manager per apt install python3-blinkpy installierbar sein.

                            https://packages.debian.org/trixie/python3-blinkpy

                            Linux-Werkzeugkasten:
                            https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                            NodeJS Fixer Skript:
                            https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                            iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                            1 Antwort Letzte Antwort
                            1
                            • B Offline
                              B Offline
                              Brekkis
                              schrieb am zuletzt editiert von
                              #402

                              So, jetzt ist schon wieder ein Punkt, wo ich nicht weiterkomme.

                              Ich habe das Script und die Einstellungen soweit, dass ein Bild "Blink.jpg" im Ordner /opt/iobroker/iobroker-data abgelegt wird. Wie kann ich von der Vis auf das Bild zugreifen, bzw. es mir anzeigen lassen? Habe das Bild schon in den Imageordner auf den die Vis zugreift gelegt, aber da erscheint kein Blink.jpg!
                              was mache ich noch falsch?

                              Gruß Brekkis

                              arteckA 1 Antwort Letzte Antwort
                              0
                              • B Brekkis

                                So, jetzt ist schon wieder ein Punkt, wo ich nicht weiterkomme.

                                Ich habe das Script und die Einstellungen soweit, dass ein Bild "Blink.jpg" im Ordner /opt/iobroker/iobroker-data abgelegt wird. Wie kann ich von der Vis auf das Bild zugreifen, bzw. es mir anzeigen lassen? Habe das Bild schon in den Imageordner auf den die Vis zugreift gelegt, aber da erscheint kein Blink.jpg!
                                was mache ich noch falsch?

                                Gruß Brekkis

                                arteckA Offline
                                arteckA Offline
                                arteck
                                Developer Most Active
                                schrieb am zuletzt editiert von arteck
                                #403

                                @brekkis

                                /opt/iobroker/iobroker-data

                                da kommst du nicht dran

                                leg dir ein Ordner für die Bilder an da hin

                                /opt/iobroker/pics
                                

                                zigbee hab ich, zwave auch, nuc's genauso und HA auch

                                B 1 Antwort Letzte Antwort
                                0
                                • V varg

                                  Frickel schon bei der Installation seit ner Stunde rum :ok_hand:

                                  pi@iobroker:~ $ pip install blinkpy
                                  error: externally-managed-environment
                                  
                                  × This environment is externally managed
                                  ╰─> To install Python packages system-wide, try apt install
                                      python3-xyz, where xyz is the package you are trying to
                                      install.
                                  
                                      If you wish to install a non-Debian-packaged Python package,
                                      create a virtual environment using python3 -m venv path/to/venv.
                                      Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
                                      sure you have python3-full installed.
                                  
                                      For more information visit http://rptl.io/venv
                                  
                                  note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
                                  hint: See PEP 668 for the detailed specification.
                                  pi@iobroker:~ $ ^C
                                  
                                  

                                  Egal was ich mache ich kann das ding nicht installieren. Evtl. hat mir jemand einen Tip ?

                                  V Online
                                  V Online
                                  varg
                                  schrieb am zuletzt editiert von varg
                                  #404

                                  @Thomas-Braun

                                  moin, vielleicht weisst Du wie ich das gerade biege. Dieses Problem verfolgt mich schon seit dem ersten Versuch (s.o).

                                  pi@iobroker:~ $ sudo -H -u iobroker pip3 install blinkpy
                                  error: externally-managed-environment
                                  
                                  × This environment is externally managed
                                  ╰─> To install Python packages system-wide, try apt install
                                      python3-xyz, where xyz is the package you are trying to
                                      install.
                                  
                                      If you wish to install a non-Debian-packaged Python package,
                                      create a virtual environment using python3 -m venv path/to/venv.
                                      Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
                                      sure you have python3-full installed.
                                  
                                      For more information visit http://rptl.io/venv
                                  
                                  note: If you believe this is a mistake, please contact your Python installation                                                                                                                                                              or OS distribution provider. You can override this, at the risk of breaking your                                                                                                                                                              Python installation or OS, by passing --break-system-packages.
                                  hint: See PEP 668 for the detailed specification.
                                  
                                  
                                  pi@iobroker:/home/iobroker $ python3 --version
                                  Python 3.11.2
                                  pi@iobroker:/home/iobroker $ pip3 --version
                                  pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)
                                  pi@iobroker:/home/iobroker $
                                  
                                  
                                  pi@iobroker:/home/iobroker $ nodejs -v
                                  v20.19.0
                                  pi@iobroker:/home/iobroker $ npm -v
                                  10.8.2
                                  pi@iobroker:/home/iobroker $
                                  
                                  

                                  Beim letzten mal habe ich dann den "override" Befehl genutzt.

                                  pi@iobroker:~ $ pip install blinkpy --break-system-packages
                                  Defaulting to user installation because normal site-packages is not writeable
                                  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                  Collecting blinkpy
                                    Downloading https://www.piwheels.org/simple/blinkpy/blinkpy-0.23.0-py3-none-an                                                                                                                                                             y.whl (30 kB)
                                  Collecting python-dateutil>=2.8.1
                                    Downloading https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.                                                                                                                                                             9.0.post0-py2.py3-none-any.whl (229 kB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 2.7 MB/s eta 0:00:00
                                  Requirement already satisfied: requests>=2.24.0 in /usr/lib/python3/dist-package                                                                                                                                                             s (from blinkpy) (2.28.1)
                                  Collecting python-slugify>=4.0.1
                                    Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-8.0.                                                                                                                                                             4-py3-none-any.whl (10 kB)
                                  Collecting sortedcontainers~=2.4.0
                                    Downloading https://www.piwheels.org/simple/sortedcontainers/sortedcontainers-                                                                                                                                                             2.4.0-py2.py3-none-any.whl (29 kB)
                                  Collecting aiohttp>=3.8.4
                                    Downloading aiohttp-3.11.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (1.7 MB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 5.8 MB/s eta 0:00:00
                                  Collecting aiofiles>=23.1.0
                                    Downloading https://www.piwheels.org/simple/aiofiles/aiofiles-24.1.0-py3-none-                                                                                                                                                             any.whl (15 kB)
                                  Collecting aiohappyeyeballs>=2.3.0
                                    Downloading https://www.piwheels.org/simple/aiohappyeyeballs/aiohappyeyeballs-                                                                                                                                                             2.6.1-py3-none-any.whl (15 kB)
                                  Collecting aiosignal>=1.1.2
                                    Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.2-py2.py3-                                                                                                                                                             none-any.whl (7.6 kB)
                                  Collecting attrs>=17.3.0
                                    Downloading https://www.piwheels.org/simple/attrs/attrs-25.3.0-py3-none-any.wh                                                                                                                                                             l (63 kB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 kB 1.4 MB/s eta 0:00:00
                                  Collecting frozenlist>=1.1.1
                                    Downloading frozenlist-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_                                                                                                                                                             aarch64.whl (276 kB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 276.4/276.4 kB 5.0 MB/s eta 0:00:00
                                  Collecting multidict<7.0,>=4.5
                                    Downloading multidict-6.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (135 kB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.7/135.7 kB 4.1 MB/s eta 0:00:00
                                  Collecting propcache>=0.2.0
                                    Downloading propcache-0.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (232 kB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.4/232.4 kB 5.0 MB/s eta 0:00:00
                                  Collecting yarl<2.0,>=1.17.0
                                    Downloading yarl-1.18.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch                                                                                                                                                             64.whl (340 kB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 340.6/340.6 kB 4.6 MB/s eta 0:00:00
                                  Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from                                                                                                                                                              python-dateutil>=2.8.1->blinkpy) (1.16.0)
                                  Collecting text-unidecode>=1.3
                                    Downloading https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-                                                                                                                                                             py2.py3-none-any.whl (78 kB)
                                       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 1.1 MB/s eta 0:00:00
                                  Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from                                                                                                                                                              yarl<2.0,>=1.17.0->aiohttp>=3.8.4->blinkpy) (3.3)
                                  Installing collected packages: text-unidecode, sortedcontainers, python-slugify,                                                                                                                                                              python-dateutil, propcache, multidict, frozenlist, attrs, aiohappyeyeballs, aio                                                                                                                                                             files, yarl, aiosignal, aiohttp, blinkpy
                                    WARNING: The script slugify is installed in '/home/pi/.local/bin' which is not                                                                                                                                                              on PATH.
                                    Consider adding this directory to PATH or, if you prefer to suppress this warn                                                                                                                                                             ing, use --no-warn-script-location.
                                  Successfully installed aiofiles-24.1.0 aiohappyeyeballs-2.6.1 aiohttp-3.11.14 ai  
                                  

                                  Das haut dann aber mit den Berechtigungen bestimmt alles nicht hin. Ja evtl. hast Du ja kurz Zeit für nen "kleinen" workarround ;)

                                  Thomas BraunT 1 Antwort Letzte Antwort
                                  0
                                  • arteckA arteck

                                    @brekkis

                                    /opt/iobroker/iobroker-data

                                    da kommst du nicht dran

                                    leg dir ein Ordner für die Bilder an da hin

                                    /opt/iobroker/pics
                                    
                                    B Offline
                                    B Offline
                                    Brekkis
                                    schrieb am zuletzt editiert von Brekkis
                                    #405

                                    @arteck Danke für den Tipp, geht leider immer noch nicht.
                                    Das Bild liegt im Ordner /opt/iobroker/pics. Von der Visu aus (Image oder HTML Widget, Ordnername und Bildname eingetragen) zeigt es aber nichts an.

                                    Wenn ich über WINSCP auf das Dateisystem zugreife und auf den Ordner /opt/iobroker/pics navigiere und das Bild ins Windowssystem herunterlade und öffne sehe ich das Bild von der Kamera.

                                    Ich kann es einfach nicht in der Vis anzeigen. Verflucht.
                                    Bild-Widget bei Quelle: ../opt/iobroker/pics/blink.jpg
                                    Es wird nur ein Frame mit Fragezeichen dargestellt. Oh mann, ich bin auf der Zielgeraden und dann sowas....

                                    1 Antwort Letzte Antwort
                                    0
                                    • V varg

                                      @Thomas-Braun

                                      moin, vielleicht weisst Du wie ich das gerade biege. Dieses Problem verfolgt mich schon seit dem ersten Versuch (s.o).

                                      pi@iobroker:~ $ sudo -H -u iobroker pip3 install blinkpy
                                      error: externally-managed-environment
                                      
                                      × This environment is externally managed
                                      ╰─> To install Python packages system-wide, try apt install
                                          python3-xyz, where xyz is the package you are trying to
                                          install.
                                      
                                          If you wish to install a non-Debian-packaged Python package,
                                          create a virtual environment using python3 -m venv path/to/venv.
                                          Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
                                          sure you have python3-full installed.
                                      
                                          For more information visit http://rptl.io/venv
                                      
                                      note: If you believe this is a mistake, please contact your Python installation                                                                                                                                                              or OS distribution provider. You can override this, at the risk of breaking your                                                                                                                                                              Python installation or OS, by passing --break-system-packages.
                                      hint: See PEP 668 for the detailed specification.
                                      
                                      
                                      pi@iobroker:/home/iobroker $ python3 --version
                                      Python 3.11.2
                                      pi@iobroker:/home/iobroker $ pip3 --version
                                      pip 23.0.1 from /usr/lib/python3/dist-packages/pip (python 3.11)
                                      pi@iobroker:/home/iobroker $
                                      
                                      
                                      pi@iobroker:/home/iobroker $ nodejs -v
                                      v20.19.0
                                      pi@iobroker:/home/iobroker $ npm -v
                                      10.8.2
                                      pi@iobroker:/home/iobroker $
                                      
                                      

                                      Beim letzten mal habe ich dann den "override" Befehl genutzt.

                                      pi@iobroker:~ $ pip install blinkpy --break-system-packages
                                      Defaulting to user installation because normal site-packages is not writeable
                                      Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                                      Collecting blinkpy
                                        Downloading https://www.piwheels.org/simple/blinkpy/blinkpy-0.23.0-py3-none-an                                                                                                                                                             y.whl (30 kB)
                                      Collecting python-dateutil>=2.8.1
                                        Downloading https://www.piwheels.org/simple/python-dateutil/python_dateutil-2.                                                                                                                                                             9.0.post0-py2.py3-none-any.whl (229 kB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 2.7 MB/s eta 0:00:00
                                      Requirement already satisfied: requests>=2.24.0 in /usr/lib/python3/dist-package                                                                                                                                                             s (from blinkpy) (2.28.1)
                                      Collecting python-slugify>=4.0.1
                                        Downloading https://www.piwheels.org/simple/python-slugify/python_slugify-8.0.                                                                                                                                                             4-py3-none-any.whl (10 kB)
                                      Collecting sortedcontainers~=2.4.0
                                        Downloading https://www.piwheels.org/simple/sortedcontainers/sortedcontainers-                                                                                                                                                             2.4.0-py2.py3-none-any.whl (29 kB)
                                      Collecting aiohttp>=3.8.4
                                        Downloading aiohttp-3.11.14-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (1.7 MB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 5.8 MB/s eta 0:00:00
                                      Collecting aiofiles>=23.1.0
                                        Downloading https://www.piwheels.org/simple/aiofiles/aiofiles-24.1.0-py3-none-                                                                                                                                                             any.whl (15 kB)
                                      Collecting aiohappyeyeballs>=2.3.0
                                        Downloading https://www.piwheels.org/simple/aiohappyeyeballs/aiohappyeyeballs-                                                                                                                                                             2.6.1-py3-none-any.whl (15 kB)
                                      Collecting aiosignal>=1.1.2
                                        Downloading https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.2-py2.py3-                                                                                                                                                             none-any.whl (7.6 kB)
                                      Collecting attrs>=17.3.0
                                        Downloading https://www.piwheels.org/simple/attrs/attrs-25.3.0-py3-none-any.wh                                                                                                                                                             l (63 kB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.8/63.8 kB 1.4 MB/s eta 0:00:00
                                      Collecting frozenlist>=1.1.1
                                        Downloading frozenlist-1.5.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_                                                                                                                                                             aarch64.whl (276 kB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 276.4/276.4 kB 5.0 MB/s eta 0:00:00
                                      Collecting multidict<7.0,>=4.5
                                        Downloading multidict-6.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (135 kB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 135.7/135.7 kB 4.1 MB/s eta 0:00:00
                                      Collecting propcache>=0.2.0
                                        Downloading propcache-0.3.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_a                                                                                                                                                             arch64.whl (232 kB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 232.4/232.4 kB 5.0 MB/s eta 0:00:00
                                      Collecting yarl<2.0,>=1.17.0
                                        Downloading yarl-1.18.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch                                                                                                                                                             64.whl (340 kB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 340.6/340.6 kB 4.6 MB/s eta 0:00:00
                                      Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from                                                                                                                                                              python-dateutil>=2.8.1->blinkpy) (1.16.0)
                                      Collecting text-unidecode>=1.3
                                        Downloading https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-                                                                                                                                                             py2.py3-none-any.whl (78 kB)
                                           ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 kB 1.1 MB/s eta 0:00:00
                                      Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from                                                                                                                                                              yarl<2.0,>=1.17.0->aiohttp>=3.8.4->blinkpy) (3.3)
                                      Installing collected packages: text-unidecode, sortedcontainers, python-slugify,                                                                                                                                                              python-dateutil, propcache, multidict, frozenlist, attrs, aiohappyeyeballs, aio                                                                                                                                                             files, yarl, aiosignal, aiohttp, blinkpy
                                        WARNING: The script slugify is installed in '/home/pi/.local/bin' which is not                                                                                                                                                              on PATH.
                                        Consider adding this directory to PATH or, if you prefer to suppress this warn                                                                                                                                                             ing, use --no-warn-script-location.
                                      Successfully installed aiofiles-24.1.0 aiohappyeyeballs-2.6.1 aiohttp-3.11.14 ai  
                                      

                                      Das haut dann aber mit den Berechtigungen bestimmt alles nicht hin. Ja evtl. hast Du ja kurz Zeit für nen "kleinen" workarround ;)

                                      Thomas BraunT Online
                                      Thomas BraunT Online
                                      Thomas Braun
                                      Most Active
                                      schrieb am zuletzt editiert von
                                      #406

                                      @varg sagte in Blink Camera System:

                                      Ja evtl. hast Du ja kurz Zeit für nen "kleinen" workarround

                                      pipx verwenden. Ist auch kein Workaround sondern der vorgesehene Weg.

                                      Linux-Werkzeugkasten:
                                      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                      NodeJS Fixer Skript:
                                      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                      1 Antwort Letzte Antwort
                                      0
                                      Antworten
                                      • In einem neuen Thema antworten
                                      Anmelden zum Antworten
                                      • Älteste zuerst
                                      • Neuste zuerst
                                      • Meiste Stimmen


                                      Support us

                                      ioBroker
                                      Community Adapters
                                      Donate

                                      678

                                      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