Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. PSA Connected CAR API Adapter für Peugeot

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    PSA Connected CAR API Adapter für Peugeot

    This topic has been deleted. Only users with topic management privileges can see it.
    • hg6806
      hg6806 Most Active last edited by hg6806

      Hi, nach 6 Monaten "Abstinenz" wollte ich mal wieder PSA CC aufsetzen, weil es wohl bei der OpenWB ein PSACC Modul gibt.

      Allerdings komme ich nun hier nicht weiter:..
      Login ist garantiert richtig.

      b5903a32-bcbd-4972-9863-93e3720130f3-image.png

      Hat jemand eine Ahnung ob da noch ein Kniff fehlt?

      Die Konsole meldet:

      2025-02-19 18:17:17,309 :: ERROR ::
      Traceback (most recent call last):
        File "/home/pi/.venv/lib/python3.11/site-packages/psa_car_controller/web/view/config_views.py", line 137, in connectPSA
          INITIAL_SETUP = InitialSetup(app_name, email, password, countrycode)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/pi/.venv/lib/python3.11/site-packages/psa_car_controller/psa/setup/app_decoder.py", line 35, in __init__
          apk_parser = get_content_from_apk(filename, country_code)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/pi/.venv/lib/python3.11/site-packages/psa_car_controller/psa/setup/app_decoder.py", line 26, in get_content_from_apk
          urlretrieve_from_github(GITHUB_USER, GITHUB_REPO, "", apk_parser.filename)
        File "/home/pi/.venv/lib/python3.11/site-packages/psa_car_controller/psa/setup/github.py", line 39, in urlretrieve_from_github
          if github_file_need_to_be_downloaded(user, repo, directory, filename):
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/pi/.venv/lib/python3.11/site-packages/psa_car_controller/psa/setup/github.py", line 28, in github_file_need_to_be_downloaded
          sha_of_git_file = get_github_sha_from_file(user, repo, directory, filename)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/pi/.venv/lib/python3.11/site-packages/psa_car_controller/psa/setup/github.py", line 14, in get_github_sha_from_file
          file_info = next((file for file in res["tree"] if file['path'] == filename))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      StopIteration
      
      
      D 1 Reply Last reply Reply Quote 0
      • D
        DPO99 @hg6806 last edited by

        @hg6806 Ich hab leider keine Lösung für Dein Problem. Ich konnte das ganze aber heute noch "problemlos" einrichten. Ich nutze allerdings Citroen. Ich weiß nicht, ob es da ggf. nochmal Unterschiede gibt.

        1 Reply Last reply Reply Quote 0
        • hg6806
          hg6806 Most Active last edited by

          Hmmm, läuft noch immer nicht.
          https://github.com/flobz/psa_car_controller/discussions/447
          Hier wird geschrieben, dass man noch ein "psa-car-controller-WorkingDirectory" erstellen muss und vor dem erstmaligen Ausführen hineinwechseln muss.
          Welches Verzeichnis muss wo erstellet werden?

          D mickemup 2 Replies Last reply Reply Quote 0
          • D
            DPO99 @hg6806 last edited by

            @hg6806 nein, dass muss man nicht. Man kann das machen, um die PSACC Dateien nicht einfach direkt auf dem User Verzeichnis liegen zu haben. Gerade so Dateien wie "config.json" werden ja hgf auch von anderen Applikationen verwendet.

            1 Reply Last reply Reply Quote 0
            • mickemup
              mickemup @hg6806 last edited by

              @hg6806
              Bei mir hats letztes Jahr auch irgendwann auch geklemmt. (Peugeot 208-E)
              habe dann ein Probeweise in einem LXC Testcontainer folgendes ausgeführt und funktionierte (bin Linux Laie)

              sudo apt install python3-pip
              sudo apt update
              sudo apt install pipx
              pipx ensurepath
              pipx install psa-car-controller
              psa-car-controller -l 0.0.0.0 --web-conf 					//	für Einrichtung
              psa-car-controller -l 0.0.0.0 -f config.json -c charge_config.json -r -d    	//	für Ops (manual start)
              
              
              

              Vleilleicht hilfts...

              1 Reply Last reply Reply Quote 0
              • hg6806
                hg6806 Most Active last edited by

                Hat geklappt.
                Ich hatte ein neuen System aufgesetzt, und zwar noch ein Bullseye damit man das VENV Gedöns nicht hat. Irgendwie hatte ich da wohl einen Fehler drin.

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @hg6806 last edited by

                  @hg6806 sagte in PSA Connected CAR API Adapter für Peugeot:

                  Ich hatte ein neuen System aufgesetzt, und zwar noch ein Bullseye damit man das VENV Gedöns nicht hat.

                  Nur ist Bullseye abgekündigt. Das jetzt noch frisch aufzusetzen ist wenig bis gar nicht sinnvoll.
                  Du wirst dich wohl über kurz oder lang mit dem VENV-Gedöns beschäftigen müssen.

                  hg6806 1 Reply Last reply Reply Quote 0
                  • hg6806
                    hg6806 Most Active @Thomas Braun last edited by

                    @thomas-braun

                    Ich weiß, wollte aber nur mal ausprobieren ob es mit einer frischen Installation klappt.
                    Die erste Installation auf Bookworm war übrigens auch auf einem OpenMediaVault NAS. Vielleicht hat das irgendwelche Restriktionen erbracht/ Rechte etc.

                    Ich bin leider so gar kein Linuxer.

                    Auf Bookworm hatte ich es mit

                    pip3 install psa-car-controller
                    

                    installiert bei vorherigen

                    source .venv/bin/activate
                    

                    Wäre eine Deinstallation?

                    pip3 uninstall psa-car-controller
                    

                    Könnte auch sein, dass Python 3 nicht sauber installiert ist, aber ich denke dann könnte man PSA-CC gar nicht ausführen können.

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @hg6806 last edited by

                      @hg6806

                      OMV ist halt unter Umständen schon wieder eine ganz andere Nummer als ein 'volles' Debian. Spezieller Einsatz - spezielles Setup.

                      hg6806 1 Reply Last reply Reply Quote 0
                      • hg6806
                        hg6806 Most Active @Thomas Braun last edited by

                        @thomas-braun

                        So war auch meine Vermutung.

                        Ich versuche es jetzt interessehalber mal rückwärts, also auf der Bullseye-PSA-CC Installation OMV zu installieren.

                        Wenn das läuft das Ganze nochmal auf Bookworm.

                        1 Reply Last reply Reply Quote 0
                        • hg6806
                          hg6806 Most Active last edited by hg6806

                          Wollte noch einmal Rückmeldung geben.

                          Auf der Bullseye Installation hatte dann auch OpenMediaVault parallel geklappt.
                          Gleiches dann noch einmal mit einer frischen Bookworm Installation und PSA-CC mit "VENV-Gedöns".

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          730
                          Online

                          31.7k
                          Users

                          79.8k
                          Topics

                          1.3m
                          Posts

                          api adapter e-2008 psa
                          23
                          59
                          7762
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo