flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
403 stars 210 forks source link

Update the car_models.yml locally #456

Closed zamzon closed 1 year ago

zamzon commented 1 year ago

Hi Is it possible to add new car models locally? I'm running the software in a docker in Home assistant, can I change the file with SAMBA share of file editor in HA?

stevoh6 commented 1 year ago

It shouldnt be a problem, just edit/add your model, restart and it should works. Also please share you "model" with others, so it can be added into config.

zamzon commented 1 year ago

I thought so, but can you tell me where the file is placed in the docker container ? And can the file be edited in Home assistant ?

stevoh6 commented 1 year ago

/usr/local/lib/python3.9/dist_pactages/psa_car_controller/psacc/resources/car_models.yml

I have separat container for this, so hard to tell if it can be done in HA.

Just past here config,I can create pull request for update.

zamzon commented 1 year ago

Thanks Is there a text editor in the container, I did try with sudo nano car_models.yml but that didn't work

stevoh6 commented 1 year ago

No, in container isnt vi or nano :D You need to add it there manually.

zamzon commented 1 year ago

Okay I am not an expert to docker, how do I do this t manually. Can I access the container from elsewhere?

stevoh6 commented 1 year ago

Okay I am not an expert to docker, how do I do this t manually. Can I access the container from elsewhere?

Its tricky, if you are running hassio os and psa is as addon. Last time when I was trying to do in friends hassioos it was pain and I didnt success. If you run separate containers (managed by you) you can exec into dontainer, search in google "docker exec container" ;)

zamzon commented 1 year ago

It installed nano with the command apt-get install nano, then I changed the car_models.yml file, but every time I restart, the container erases my changed.

Is there a way to restart your software without rebooting the container ?


Fra: stevoh6 @.> Sendt: Tuesday, January 10, 2023 8:00:12 PM Til: flobz/psa_car_controller @.> Cc: zamzon @.>; Author @.> Emne: Re: [flobz/psa_car_controller] Update the car_models.yml locally (Issue #456)

Okay I am not an expert to docker, how do I do this t manually. Can I access the container from elsewhere?

Its tricky, if you are running hassio os and psa is as addon. Last time when I was trying to do in friends hassioos it was pain and I didnt success. If you run separate containers (managed by you) you can exec into dontainer, search in google "docker exec container" ;)

— Reply to this email directly, view it on GitHubhttps://github.com/flobz/psa_car_controller/issues/456#issuecomment-1377712955, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC52OSFZAV7G377Y6GUQQG3WRWWTZANCNFSM6AAAAAATSO7ZCU. You are receiving this because you authored the thread.Message ID: @.***>

stevoh6 commented 1 year ago

Is there a way to restart your software without rebooting the container ?

I have separate container, Restart doesn't rewrite code, rebuild does.