Ankündigung

Einklappen
Keine Ankündigung bisher.

SmarthomeNG v1.10.0 Image für Raspberry Pi

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    SmarthomeNG v1.10.0 Image für Raspberry Pi

    Doku: https://github.com/smarthomeNG/raspberrypi-image/wiki
    Release: https://github.com/smarthomeNG/raspberrypi-image/releases

    Sämtliche Setup Schritte, die ins Image eingeflossen sind, können hier nachvollzogen und bei Bedarf auch zum Erstellen eines eigenen Images genutzt werden: https://github.com/smarthomeNG/ansible​​

    Was es diesmal besonders zu beachten gibt:
    - Das Image ZIP ist auf 2 Dateien aufgeteilt, da es deutlich größer ausgefallen ist (ist wohl bookworm geschuldet). Min. 16GB SD Karte ist Pflicht
    - Es sind Python 3.10 und 3.11 in virtual environments installiert - beides kann u.U. bei manchen Plugins zu Problemen führen.

    Rückmeldungen gerne hier.
    Zuletzt geändert von Onkelandy; 05.02.2024, 09:31.

    #2
    Servus Andi,

    vieeeelen Dank für Deine / Eure tolle Arbeit !!!!!!
    Gruß, JG

    Kommentar


      #3
      Hallo Andi,
      auch von mir ein herzliches Dankeschön für deine und die Arbeit der anderen Kollegen die ihr dieses Projekt mit so viel Hingabe und Liebe vorantreibt!

      Dann eine kurze Verständnisfrage, da ich meine, mittlerweile in die Jahre gekommene Installation, grad auf das neustes Release bringen möchte.
      Im Changelog 12.10.0 auf Github steht das darin wieder
      • SmarthomeNG 1.9.5
      • SmartVISU 3.3.1
      • Debian bullseye 64bit lite from February 2023
      ​eingesetzt würde, ist das so, macht ihr hier einen Rückschritt, hab ich was falsch verstanden oder ist das vielleicht ein copy&paste fehler ?

      Danke und viele Grüße
      Dirk

      Kommentar


        #4
        Danke für den Hinweis, ist bei den Release Notes bisschen was durcheinander gekommen, nun gefixt

        Kommentar


          #5
          Im Übrigen startet homebridge im Dauerloop neu, wenn man das Service starten will. Konnte soweit keine Lösung finden Vielleicht weiß wer Bescheid?!

          Kommentar


            #6
            Hi, auch von mir erstmal vielen Dank!!

            Ich habe das Image auf die SD Karte geladen und der Ethernet der RPi (5) verbunden. Der erste Start lief gut, konnte über :8383 auf die Startseite. Nach eine "Restart Core" nach die Webseite aber nicht mehr erreichbar.

            Ich habe mich per SSH eingeloggt um an das LogFile zu kommen. Ich glaube die Stelle ist spannend:
            Code:
            2024-03-03  19:22:37 NOTICE   lib.shpypi          Using auto-determined PIP: '/u
            sr/local/smarthome/venvs/py_310/bin/pip3'
            2024-03-03  19:22:38 NOTICE   lib.shpypi          Running in a virtualenv enviro
            nment - installing plugin requirements only to current virtual environment, plea
            se wait...
            2024-03-03  19:22:39 ERROR    lib.shpypi          
            [notice] A new release of pip is available: 23.0.1 -> 24.0
            [notice] To update, run: pip3 install --upgrade pip
            
            2024-03-03  19:22:39 CRITICAL lib.smarthome       Python package requirements fo
            r configured plugins are not met and unable to install those requirements
            2024-03-03  19:22:39 CRITICAL lib.smarthome       Do you have multiple Python3 V
            ersions installed? Maybe PIP3 looks into a wrong Python environment. Try to conf
            igure pip_command in etc/smarthome.yaml
            Ich versuche mich mal an o.g. config...

            Kommentar


              #7
              Update: Ich hatte homematic aktiviert, pyhomematic war nicht installiert. Ich habe in der etc/smarthome.yaml den pip command für 3.10 einkommentiert, pyhomematic installiert, und es geht jetzt.

              Kommentar


                #8
                Hatte teils auch Probleme beim ersten Start nach Aktivieren eines neuen Plugins. Fehlerquelle nicht wirklich gefunden, da auch laut Log das virtuelle Env durchaus aktiv ist und eigentlich gefunden werden sollte. Werde es mal in die Doku aufnehmen, dass evtl. der pip command einkommentiert werden muss.

                Kommentar


                  #9
                  Raspi_SmarthomeNG_public_12.1.10.img
                  Hab heute für den Raspy eine neue SD-Karte aufgesetzt... leider werden die packages nicht installiert:

                  Code:
                  A new release of pip is available: 23.0.1 -> 24.0
                  To update, run: pip3 install --upgrade pip
                  hab das versucht: pip wird nun als aktuell anerkannt:
                  Code:
                  pip3 --version
                  pip3 install --upgrade pip
                  
                  #To deactivate the virtual environment simply type the command 'deactivate'
                  deactivate
                  pip3 install --upgrade pip
                  aber neues Problem:

                  Code:
                  ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

                  Kommentar


                    #10
                    Wann genau kommt das "neue" Problem, wenn du manuell ein anderes Paket installieren willst?
                    Das mit --user ist nun Vergangenheit. Es gibt einen venv Unterordner im smarthome Verzeichnis, dort sind Python 3.10 und 3.11 installiert. Aktiv sollte 3.10 sein
                    "deactivate" sollte eigentlich nicht gemacht werden/nötig sein.
                    Schau mal in der Doku https://smarthomeng.github.io/dev_do...ironments.html

                    Kommentar


                      #11
                      Zitat von Onkelandy Beitrag anzeigen
                      Wann genau kommt das "neue" Problem, wenn du manuell ein anderes Paket installieren willst?
                      nein - eben wenn SH auf neu geschriebenen SD-Karte selber versucht die fehlenden Pakete zu installieren, dann bleibt SH jedoch in einen endlos Reboot mit dem Fehler:

                      Code:
                      ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.

                      Kommentar


                        #12
                        Setz das mal ins etc/smarthome.yaml File
                        pip_command: /usr/local/smarthome/venvs/py_310/bin/python3 -m pip

                        So klappt es bei mir

                        Kommentar


                          #13
                          Hab die SD nun nochmal aufgesetzt

                          Code:
                          A new release of pip is available: 23.0.1 -> 24.0
                          To update, run: pip3 install --upgrade pip


                          nach wie vor musste ich um pip zu aktualisieren:

                          Code:
                          deactivate
                          pip3 install --upgrade pip​

                          kann SH immer noch nicht starten..
                          Code:
                          (py_310)  [smarthome@SmartHomeNG ~]$ python --version
                          Python 3.10.13
                          ​
                          cd /usr/local/smarthome
                          python3 -m pip install -r requirements/base.txt
                          
                          
                          ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
                          ​

                          *** UPDATE***
                          wenn ich in smarthome.yaml den pfad von "which pip3" eingebe, dann ist der '--user' Fehler weck und SH startet trotzdem nur im endloss-Loop

                          Code:
                          2024-06-05  15:03:10 NOTICE   lib.smarthome       --------------------   SmartHomeNG restarting, initiated by SmartHomeNG (Python package installation)   --------------------
                          2024-06-05  15:03:14 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
                          2024-06-05  15:03:14 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
                          2024-06-05  15:03:14 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=2724)
                          2024-06-05  15:03:14 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
                          2024-06-05  15:03:18 WARNING  lib.shpypi          test_requirements: 'pyotp' not installed. Minimum v2.6.0 needed
                          2024-06-05  15:03:18 WARNING  lib.shpypi          test_requirements: 'python-telegram-bot' not installed. Minimum v20.2 needed
                          2024-06-05  15:03:18 NOTICE   lib.shpypi          Installing plugin requirements for the current user, please wait...
                          2024-06-05  15:03:18 WARNING  lib.shpypi          PIP command read from smarthome.yaml: '/home/smarthome/.local/bin/pip3'
                          2024-06-05  15:03:18 NOTICE   lib.shpypi          Using auto-determined PIP: '/home/smarthome/.local/bin/pip3'
                          2024-06-05  15:03:26 NOTICE   lib.shpypi          plugin requirements installed
                          2024-06-05  15:03:26 NOTICE   lib.smarthome       --------------------   SmartHomeNG restarting, initiated by SmartHomeNG (Python package installation)   --------------------
                          2024-06-05  15:03:30 NOTICE   lib.smarthome       --------------------   Init SmartHomeNG v1.10.0-master (4b25822a0)   --------------------
                          2024-06-05  15:03:30 NOTICE   lib.smarthome       Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
                          2024-06-05  15:03:30 NOTICE   lib.smarthome        - operating system 'Debian GNU/Linux 12 (bookworm)' (pid=2785)
                          2024-06-05  15:03:30 NOTICE   lib.smarthome        - on 'Raspberry Pi 3 Model B+ v1.3, 1GB (Sony, UK)'
                          2024-06-05  15:03:34 WARNING  lib.shpypi          test_requirements: 'pyotp' not installed. Minimum v2.6.0 needed
                          2024-06-05  15:03:34 WARNING  lib.shpypi          test_requirements: 'python-telegram-bot' not installed. Minimum v20.2 needed
                          2024-06-05  15:03:34 NOTICE   lib.shpypi          Installing plugin requirements for the current user, please wait...
                          2024-06-05  15:03:34 WARNING  lib.shpypi          PIP command read from smarthome.yaml: '/home/smarthome/.local/bin/pip3'
                          2024-06-05  15:03:34 NOTICE   lib.shpypi          Using auto-determined PIP: '/home/smarthome/.local/bin/pip3'
                          ​
                          Code:
                          Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
                          Ignoring cherrypy: markers 'python_version >= "3.11"' don't match your environment
                          Ignoring ruamel.yaml: markers 'python_version < "3.7"' don't match your environment
                          Ignoring ruamel.yaml: markers 'python_version == "3.7"' don't match your environment
                          Requirement already satisfied: cheroot<=9.0.0,>=8.6.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (9.0.0)
                          Requirement already satisfied: cherrypy>=8.1.2 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (18.9.0)
                          Requirement already satisfied: ephem<=4.1.0,>=3.7 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 23)) (4.1)
                          Requirement already satisfied: holidays>=0.9.11 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 26)) (0.50)
                          Requirement already satisfied: iowait in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 29)) (0.2)
                          Requirement already satisfied: janus>=0.5.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 32)) (1.0.0)
                          Requirement already satisfied: jinja2>=2.9 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 35)) (3.1.4)
                          Requirement already satisfied: paho-mqtt>=1.2.2 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 38)) (2.1.0)
                          Requirement already satisfied: portalocker in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 41)) (2.8.2)
                          Requirement already satisfied: psutil in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 44)) (5.9.8)
                          Requirement already satisfied: pyjwt>=1.6.4 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 48)) (2.8.0)
                          Requirement already satisfied: pyotp>=2.6.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 51)) (2.9.0)
                          Requirement already satisfied: python-dateutil>=2.5.3 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 54)) (2.9.0.post0)
                          Requirement already satisfied: python-telegram-bot>=20.2 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (21.2)
                          Requirement already satisfied: requests>=2.20.0 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (2.32.3)
                          Requirement already satisfied: ruamel.yaml<=0.16.8,>=0.15.78 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 71)) (0.16.7)
                          Requirement already satisfied: websockets>=8.1 in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 74)) (12.0)
                          Requirement already satisfied: xmltodict in /home/smarthome/.local/lib/python3.10/site-packages (from -r /usr/local/smarthome/requirements/conf_all.txt (line 78)) (0.13.0)
                          Requirement already satisfied: six>=1.11.0 in /home/smarthome/.local/lib/python3.10/site-packages (from cheroot<=9.0.0,>=8.6.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (1.16.0)
                          Requirement already satisfied: jaraco.functools in /home/smarthome/.local/lib/python3.10/site-packages (from cheroot<=9.0.0,>=8.6.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (4.0.1)
                          Requirement already satisfied: more-itertools>=2.6 in /home/smarthome/.local/lib/python3.10/site-packages (from cheroot<=9.0.0,>=8.6.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 14)) (10.2.0)
                          Requirement already satisfied: portend>=2.1.1 in /home/smarthome/.local/lib/python3.10/site-packages (from cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (3.2.0)
                          Requirement already satisfied: zc.lockfile in /home/smarthome/.local/lib/python3.10/site-packages (from cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (3.0.post1)
                          Requirement already satisfied: jaraco.collections in /home/smarthome/.local/lib/python3.10/site-packages (from cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (5.0.1)
                          Requirement already satisfied: typing-extensions>=3.7.4.3 in /home/smarthome/.local/lib/python3.10/site-packages (from janus>=0.5.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 32)) (4.12.1)
                          Requirement already satisfied: MarkupSafe>=2.0 in /home/smarthome/.local/lib/python3.10/site-packages (from jinja2>=2.9->-r /usr/local/smarthome/requirements/conf_all.txt (line 35)) (2.1.5)
                          Requirement already satisfied: httpx~=0.27 in /home/smarthome/.local/lib/python3.10/site-packages (from python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (0.27.0)
                          Requirement already satisfied: charset-normalizer<4,>=2 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (3.3.2)
                          Requirement already satisfied: idna<4,>=2.5 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (3.7)
                          Requirement already satisfied: urllib3<3,>=1.21.1 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (2.2.1)
                          Requirement already satisfied: certifi>=2017.4.17 in /home/smarthome/.local/lib/python3.10/site-packages (from requests>=2.20.0->-r /usr/local/smarthome/requirements/conf_all.txt (line 62)) (2024.6.2)
                          Requirement already satisfied: anyio in /home/smarthome/.local/lib/python3.10/site-packages (from httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (4.4.0)
                          Requirement already satisfied: httpcore==1.* in /home/smarthome/.local/lib/python3.10/site-packages (from httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (1.0.5)
                          Requirement already satisfied: sniffio in /home/smarthome/.local/lib/python3.10/site-packages (from httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (1.3.1)
                          Requirement already satisfied: h11<0.15,>=0.13 in /home/smarthome/.local/lib/python3.10/site-packages (from httpcore==1.*->httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (0.14.0)
                          Requirement already satisfied: tempora>=1.8 in /home/smarthome/.local/lib/python3.10/site-packages (from portend>=2.1.1->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (5.5.1)
                          Requirement already satisfied: jaraco.text in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (3.12.0)
                          Requirement already satisfied: setuptools in /usr/local/lib/python3.10/site-packages (from zc.lockfile->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (65.5.0)
                          Requirement already satisfied: pytz in /home/smarthome/.local/lib/python3.10/site-packages (from tempora>=1.8->portend>=2.1.1->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (2024.1)
                          Requirement already satisfied: exceptiongroup>=1.0.2 in /home/smarthome/.local/lib/python3.10/site-packages (from anyio->httpx~=0.27->python-telegram-bot>=20.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 57)) (1.2.1)
                          Requirement already satisfied: jaraco.context>=4.1 in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (5.3.0)
                          Requirement already satisfied: autocommand in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (2.2.2)
                          Requirement already satisfied: inflect in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (7.2.1)
                          Requirement already satisfied: backports.tarfile in /home/smarthome/.local/lib/python3.10/site-packages (from jaraco.context>=4.1->jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (1.2.0)
                          Requirement already satisfied: typeguard>=4.0.1 in /home/smarthome/.local/lib/python3.10/site-packages (from inflect->jaraco.text->jaraco.collections->cherrypy>=8.1.2->-r /usr/local/smarthome/requirements/conf_all.txt (line 17)) (4.3.0)
                          ​
                          Zuletzt geändert von ivande; 05.06.2024, 14:51.

                          Kommentar


                            #14
                            Das kann do nichts werden. Du hast SmartHomeNG in einem virtuellen Environment laufen:
                            Code:
                            024-06-05 15:03:14 NOTICE lib.smarthome Running in Python interpreter 'v3.10.13 final' in virtual environment, from directory /usr/local/smarthome
                            ​
                            hast aber in der smarthome,yaml konfiguriert, dass Du ein PIP verwenden willte, das nicht in dem virtuellen Environment liegt:
                            Code:
                            2024-06-05 15:03:34 WARNING lib.shpypi PIP command read from smarthome.yaml: '/home/smarthome/.local/bin/pip3'
                            ​
                            Damit installiert PIP die Packages nicht in das virtuelle Environment und SmartHomeNG kann sie nicht finden/verwenden.

                            Wenn virtuelle Environments verwendet werden, sollte kein pip_command in der smarthome.yaml konfiguriert sein.

                            Falls Packages händisch installiert werden sollen, muss das virtuelle Environment aktiv sein und dann mit PIP bzw. PIP3 das Package installiert werden.

                            Weiterführende Infos zur Verwendung von virtuellen Environments mit SmartHomeNG findest Du in der SmartHomeNG Doku
                            Viele Grüße
                            Martin

                            There is no cloud. It's only someone else's computer.

                            Kommentar


                              #15
                              Was hindert dich daran, das hier einzutragen..?? https://knx-user-forum.de/forum/supp...06#post1959706

                              Msinn In der Theorie braucht es keinen pip_command, weil "korrekt" python -m pip3 als gültiger Befehl erkannt wird. Führt man diesen manuell im aktivierten venv aus, klappt auch alles. Aber aus irgendeinem Grund klappt es zumindest auf dem Raspi beim Neustart von shng nicht. Hab jetzt viel rum probiert, neue Installation, etc., Dauerloop wie bei ivande, außer ich setze den pip_command wie angegeben im smarthome.yaml

                              Kommentar

                              Lädt...
                              X