Re: Nissan Leaf Plugin
Posted: Sat Apr 02, 2016 2:57 am
Ah, I've restarted the plugin and I now get loads of the following (with XXXX's in various places to hide what might be confidential):
I do note that the object they return still contains my password in plaintext which is ridiculous!!!
Peter
- Code: Select all
2016-04-02 09:48:58.026 Nissan Leaf Debug request and update status
2016-04-02 09:48:58.026 Nissan Leaf requesting status for
2016-04-02 09:48:58.026 Nissan Leaf not yet logged in; doing that first
2016-04-02 09:48:58.027 Nissan Leaf Debug logging in to carwings
2016-04-02 09:48:58.027 Nissan Leaf Debug invoking carwings API: https://gdcportalgw.its-mo.com/gworchest_0307C/gdc/InitialApp.php
2016-04-02 09:48:58.028 Nissan Leaf Debug params: {
"RegionCode": "NE",
"custom_sessionid": "",
"initial_app_strings": "geORNtsXXXXXXXG9GZiA",
"lg": "en-US"
}
2016-04-02 09:49:00.002 Nissan Leaf Debug Response HTTP Status Code: 200
2016-04-02 09:49:00.002 Nissan Leaf Debug Response HTTP Response Body: {"status":200,"message":"success","baseprm":"uyI5DjXXXXXXRUbr3g"}
2016-04-02 09:49:00.006 Nissan Leaf Debug invoking carwings API: https://gdcportalgw.its-mo.com/gworchest_0307C/gdc/UserLoginRequest.php
2016-04-02 09:49:00.007 Nissan Leaf Debug params: {
"Password": "IFfQXXXXXX2m33Q==",
"RegionCode": "NE",
"UserId": "XXXXXXX",
"custom_sessionid": "",
"initial_app_strings": "geORNtXXXXXXjG9GZiA"
}
2016-04-02 09:49:08.095 Nissan Leaf Debug Response HTTP Status Code: 200
2016-04-02 09:49:08.095 Nissan Leaf Debug Response HTTP Response Body: {"status":200,"message":"success","vehicleInfo":[{"vin":"SJNFAXXXXX","nickname":"Leafy","charger20066":"true","telematicsEnabled":"true","custom_sessionid":"B\/mDV\/7JGwFymXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXQiEb0U8w=="}],"vehicle":{"profile":{"vin":"SJNFAAX","gdcUserId":"XXXXXX","gdcPassword":"XXXXXX","encAuthToken":"60EB9512XXXXXXXXXXXXXXXXXXXXXXF00CC680CB6B06F6247","dcmId":"201XXXXX41","status":"true","statusDate":"2016\/03\/15 23:00","nickname":"Leafy"}},"EncAuthToken":"6EAF081A0517XXXXXXXXXXXXXXXXXXXXXXXxAC06E100B1EB2439","CustomerInfo":{"UserId":"XXXXXXXXX","Language":"en_GB","Timezone":"Europe\/Paris","RegionCode":"NE","OwnerId":"30XXXXX0","EMailAddress":"XXX@XXXXXX.co.uk","Nickname":"Leafy","Country":"GB","VehicleImage":"\/content\/language\/default\/images\/img\/ph_car.jpg","UserVehicleBoundDurationSec":"946771200","VehicleInfo":{"VIN":"SJXXXXXX","DCMID":"201XXXX","SIMID":"89460XXXXX991","NAVIID":"10XXXXX98","EncryptedNAVIID":"479470XXXXXXX5E2","MSN":"46XXXX799","LastVehicleLoginTime":"","UserVehicleBoundTime":"2016-03-16T16:33:27Z","LastDCMUseTime":"2016\/04\/01 17:04"}},"UserInfoRevisionNo":"1"}
2016-04-02 09:49:08.099 Nissan Leaf Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 136, in runConcurrentThread
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Nissan Leaf.indigoPlugin/Contents/Server Plugin/indigo_leaf.py", line 113, in request_and_update_status
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Nissan Leaf.indigoPlugin/Contents/Server Plugin/indigo_leaf.py", line 132, in request_status
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Nissan Leaf.indigoPlugin/Contents/Server Plugin/indigo_leaf.py", line 51, in login
File "/Library/Application Support/Perceptive Automation/Indigo 6/Plugins/Nissan Leaf.indigoPlugin/Contents/Server Plugin/pycarwings2/pycarwings2.py", line 150, in connect
<type 'exceptions.AttributeError'>: CarwingsLoginResponse instance has no attribute 'custom_sessionid'
2016-04-02 09:49:08.100 Nissan Leaf Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
I do note that the object they return still contains my password in plaintext which is ridiculous!!!
Peter