glynhudson / leaf-python-mqtt

Extract data from Nissan Leaf API and post to mqtt
Apache License 2.0
24 stars 7 forks source link

It doesn't seem to work - DEBUG:pycarwings2.pycarwings2:Response HTTP Status Code: 404 #13

Open gr0mit1 opened 4 years ago

gr0mit1 commented 4 years ago

Hi Folks I'm getting a URL error when I try running this script on my emonpi. I've pasted the debug output below, having removed my Leaf user/pass, which we know works on the 'My Leaf' android app.

What am I doing wrong, please?!

Cheers Tim root@emonpi:/opt/leaf-mqtt# ./leaf-python-mqtt.py INFO:root:Startup leaf-python-MQTT: 2020-07-11 18:43:33 INFO:root:Loaded config file /opt/leaf-mqtt/config.ini INFO:root:updating data from API every 15min DEBUG:root:login = user , password = pass INFO:root:Prepare Session INFO:root:Login... INFO:root:Start update time: 2020-07-11 18:43:33 DEBUG:pycarwings2.pycarwings2:invoking carwings API: https://gdcportalgw.its-mo.com/api_v181217_NE/gdc/InitialApp.php INFO:root:Connected to MQTT host localhost with result code 0 DEBUG:pycarwings2.pycarwings2:params: { "RegionCode": "NE", "custom_sessionid": "", "initial_app_strings": "geORNtsZe5I4lRGjG9GZiA", "lg": "en-US" } INFO:root:Suscribing to leaf control topic: emon/leaf/control DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): gdcportalgw.its-mo.com:443 INFO:root:Publishing to leaf status topic: emon/leaf/status DEBUG:urllib3.connectionpool:https://gdcportalgw.its-mo.com:443 "POST /api_v181217_NE/gdc/InitialApp.php HTTP/1.1" 404 231 DEBUG:pycarwings2.pycarwings2:Response HTTP Status Code: 404 DEBUG:pycarwings2.pycarwings2:Response HTTP Response Body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

404 Not Found

Not Found

The requested URL /api_v181217_NE/gdc/InitialApp.php was not found on this server.

ERROR:root:CarWings API error INFO:root:Schedule API update every 15min