-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong config file #29
Comments
I got the same error but workarounded the problem by replacing the following block in the BASH script
with
|
Thank you I was able to get it working! |
Hi user@linux:~$/mercedes_me_api$ ls -la
total 96
drwxr-xr-x 6 user user 4096 gen 18 09:24 .
drwxr-xr-x 7 user user 4096 gen 9 22:07 ..
-rw-r--r-- 1 user user 2013 gen 9 21:48 config.py
-rw-r--r-- 1 user user 892 gen 9 21:47 const.py
drwxr-xr-x 3 user user 4096 dic 29 14:14 custom_components
drwxr-xr-x 8 user user 4096 gen 9 22:08 .git
drwxr-xr-x 3 user user 4096 dic 28 20:35 .github
-rw-r--r-- 1 user user 76 dic 26 18:51 .gitignore
-rw-r--r-- 1 user user 157 dic 26 17:34 hacs.json
-rw-r--r-- 1 user user 4845 gen 9 21:43 info.md
-rw-r--r-- 1 user user 1071 dic 26 17:34 LICENSE
-rw-r--r-- 1 user user 2723 gen 9 22:02 mercedes_me_api.py
-rwxr-xr-x 1 user user 5919 gen 5 11:08 mercedes_me_api.sh
-rw-r--r-- 1 user user 183 gen 8 19:12 .mercedesme_config
-rw-r--r-- 1 user user 5273 gen 9 22:08 oauth.py
drwxr-xr-x 2 user user 4096 gen 9 22:09 __pycache__
-rw-r--r-- 1 user user 3150 dic 26 17:34 query.py
-rw-r--r-- 1 user user 7135 gen 9 21:42 README.md
-rw-r--r-- 1 user user 8098 gen 9 22:08 resources.py
user@linux:~$/mercedes_me_api$ ./mercedes_me_api.sh -t
mercedes_me_api.sh - 0.6
Open the browser and insert this link:
https://id.mercedes-benz.com/as/authorization.oauth2?response_type=code&client_id=6f89acdf-c79e-4b92-a2c6-7e35fd8827db&redirect_uri=https://localhost&scope=mb:vehicle:mbdata:fuelstatus%20mb:vehicle:mbdata:vehiclestatus%20mb:vehicle:mbdata:vehiclelock%20mb:vehicle:mbdata:evstatus%20mb:vehicle:mbdata:payasyoudrive%20offline_access
Copy the code in the url:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1617 0 1511 100 106 7127 500 --:--:-- --:--:-- --:--:-- 7627
user@linux:~$/mercedes_me_api$ ls -la
totale 100
drwxr-xr-x 6 user user 4096 gen 18 09:25 .
drwxr-xr-x 7 user user 4096 gen 9 22:07 ..
-rw-r--r-- 1 user user 2013 gen 9 21:48 config.py
-rw-r--r-- 1 user user 892 gen 9 21:47 const.py
drwxr-xr-x 3 user user 4096 dic 29 14:14 custom_components
drwxr-xr-x 8 user user 4096 gen 9 22:08 .git
drwxr-xr-x 3 user user 4096 dic 28 20:35 .github
-rw-r--r-- 1 user user 76 dic 26 18:51 .gitignore
-rw-r--r-- 1 user user 157 dic 26 17:34 hacs.json
-rw-r--r-- 1 user user 4845 gen 9 21:43 info.md
-rw-r--r-- 1 user user 1071 dic 26 17:34 LICENSE
-rw-r--r-- 1 user user 2723 gen 9 22:02 mercedes_me_api.py
-rwxr-xr-x 1 user user 5919 gen 5 11:08 mercedes_me_api.sh
-rw-r--r-- 1 user user 183 gen 8 19:12 .mercedesme_config
-rw-r--r-- 1 user user 1512 gen 18 09:25 .mercedesme_token
-rw-r--r-- 1 user user 5273 gen 9 22:08 oauth.py
drwxr-xr-x 2 user user 4096 gen 9 22:09 __pycache__
-rw-r--r-- 1 user user 3150 dic 26 17:34 query.py
-rw-r--r-- 1 user user 7135 gen 9 21:42 README.md
-rw-r--r-- 1 user user 8098 gen 9 22:08 resources.py
user@linux:~$/mercedes_me_api$ cat .mercedesme_config
CLIENT_ID=XXXXXXXXXXXXXXXXXXXXX
CLIENT_SECRET=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
VEHICLE_ID=VVVVVVVVVVVVVVVVV |
403: means Forbidden |
so I tried again, created a new app, verify that all api was registered. I am still getting 403. could be that this is the problem? thank you for the help. |
Hi
I have done the same.
in my environment i have in tha root folder of home assistant (in
docker appears as /config). the same path of where configuration.yaml
is located. check permission also of the file
|
I am trying to get the token and I keep getting the following error:
Wrong .mercedesme_config file found
Error initializing configuration
Thank you for creating this script
The text was updated successfully, but these errors were encountered: