Skip to content
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

Not possible to generate OTP #181

Closed
iamrellah opened this issue Jul 6, 2021 · 3 comments
Closed

Not possible to generate OTP #181

iamrellah opened this issue Jul 6, 2021 · 3 comments

Comments

@iamrellah
Copy link

Describe the bug
After a fresh pull of the latest code and trying to configure everything the config page gives a link to "http://127.0.0.1:5000/config_otp". This page however doesn't load and the config page is shown again.

To Reproduce
Steps to reproduce the behavior:

  1. Run python3 server.py -f test.json -c charge_config1.json --web-conf -d
  2. Open the browser to http://127.0.0.1:5000
  3. Fill in the required fields and submit
  4. Wait for the link to shown to configure the OTP

Config file

{
    "abrp": {
        "abrp_enable_vin": [],
        "token": ""
    },
    "client_id": "id",
    "client_secret": "secret",
    "co2_signal_api": null,
    "country_code": "NL",
    "customer_id": "OP-ACNT200007423544",
    "proxies": {
        "http": "",
        "https": ""
    },
    "realm": "clientsB2COpel",
    "refresh_token": "token",
    "remote_refresh_token": null,
    "weather_api": null
}

Environment (please complete the following information):

  • OS: Ubuntu
  • Android app Version: N/A (automatically added?)
  • Brand and model of car: Opel Corsa-e
  • Application version (commit number, branch): 06f64ce

Additional context

2021-07-06 22:57:23,936 :: INFO :: update_data
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [06/Jul/2021 22:58:09] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:11] "GET /assets/clientside.js?m=1624994902.0120597 HTTP/1.1" 304 -
127.0.0.1 - - [06/Jul/2021 22:58:12] "GET /_dash-layout HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:12] "GET /_dash-dependencies HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:13] "POST /_dash-update-component HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:13] "GET /config HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:14] "GET /assets/clientside.js?m=1624994902.0120597 HTTP/1.1" 304 -
127.0.0.1 - - [06/Jul/2021 22:58:16] "GET /_dash-layout HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:16] "GET /_dash-dependencies HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:16] "POST /_dash-update-component HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:58:17] "POST /_dash-update-component HTTP/1.1" 200 -
Requested API level 29 is larger than maximum we have, returning API level 28 instead.
2021-07-06 22:59:02,721 :: INFO :: save config change
2021-07-06 22:59:04,265 :: INFO :: 
Your vehicles: ["{'vin': '', 'vehicle_id': '1566c684c56556861533168615444517a4d7a6b784f44556a493251304f4749344e544935595455304f445931596a4178595467794e324e695a574d794e544d314d5467785a5467784f574e6a59546c6d4d54426c4e574535597a5a684e7a517a596a6c685a6a41784f44497a5a6a633d', 'label': 'corsa-e', 'brand': 'C', 'abrp_name': 'opel:corsae:20:50', 'battery_power': 46, 'fuel_capacity': 0, 'max_elec_consumption': 70, 'max_fuel_consumption': 0}"]
2021-07-06 22:59:04,272 :: INFO :: save config change
127.0.0.1 - - [06/Jul/2021 22:59:04] "POST /_dash-update-component HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:59:14] "GET /config_otp HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:59:14] "GET /assets/clientside.js?m=1624994902.0120597 HTTP/1.1" 304 -
127.0.0.1 - - [06/Jul/2021 22:59:15] "GET /_dash-layout HTTP/1.1" 200 -
127.0.0.1 - - [06/Jul/2021 22:59:15] "GET /_dash-dependencies HTTP/1.1" 200 -

@Recallza
Copy link

Recallza commented Jul 9, 2021

Any luck with the above? I'm getting the same problem :<

@kurim
Copy link
Contributor

kurim commented Jul 12, 2021

Did you try to open http://127.0.0.1:5000/config_otp manual?
On my first test i need to open it manual, also make sure that charge_config1.json exist, if not use charge_config.json

@iamrellah
Copy link
Author

@kurim thanks! I had to do with my config files being named differently. @Recallza make sure that the command that you run matches the json file names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants