NEWS
Blink Camera System
-
@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.
-
@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....?
-
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
-
@thomas-braun Das habe ich doof geschrieben, das ist keine Mindestanforderung, sondern meine aktuell installierte Version. Ich schreibe das mal um. Danke
-
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 perapt install python3-blinkpy
installierbar sein. -
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
-
/opt/iobroker/iobroker-data
da kommst du nicht dran
leg dir ein Ordner für die Bilder an da hin
/opt/iobroker/pics
-
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
-
@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.... -
@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.