flobz / psa_car_controller

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

Docker image - how to integrate OpenWeather API and Map Vizualization #553

Closed bs0001 closed 1 year ago

bs0001 commented 1 year ago

Hi,

thanks for your cool project here! I already read the instructions but does not understand how to activate the map and use OpenWeather API. I run your project in a docker container in my NAS.

In your instruction you wrote this: You can add the -r argument to record the position of the vehicle and retrieve this information in a dashboard. python3 psa-car-controller -f config.json -c charge_config.json -r Do I have to put this line into my configuration file for creating the docker container? If not, where have I to run this argument?

OpenWeather API I have already an API key. Can I put the key also into the docker configuration file for creating the container? How is the syntax for that? If not, where and how can I put my API key?

It would be helpful if you can give me further advice how to do that!

BR Bernd

DavideFioravanti commented 1 year ago

In theory it should already enabled. It should be set in the PSACC_OPTIONS variable of the docker. PSACC_OPTIONS: -c -r --web-conf

However I also have the same problem: the map is empty and I don't see the altitude difference. I think that there is a problem obtaining the position from the server. Moreover I also don't get the temperature: image

flobz commented 1 year ago

I update the doc to help you : https://github.com/flobz/psa_car_controller/blob/master/docs/Docker.md