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

Initial fixes #6

Merged
merged 9 commits into from
Dec 18, 2016
Merged

Initial fixes #6

merged 9 commits into from
Dec 18, 2016

Conversation

filcole
Copy link
Contributor

@filcole filcole commented Dec 18, 2016

Onlye one I'm not sure about is the additional VehicleInfoList in leaf.js. Need to compare the json returned for a few Nissan leafs to fully understand... Can we compare?

@ScottHelme
Copy link
Owner

Happy to compare, I haven't seen that on mine, what vehicle do you have?

@filcole
Copy link
Contributor Author

filcole commented Dec 18, 2016 via email

@ScottHelme
Copy link
Owner

Mine is the 24kWh Gen 2, here is my JSON:

array(6) {
  ["status"]=>
  int(200)
  ["vehicleInfo"]=>
  array(1) {
    [0]=>
    array(5) {
      ["vin"]=>
      string(17) "*snip*"
      ["nickname"]=>
      string(4) "Leaf"
      ["charger20066"]=>
      string(5) "false"
      ["telematicsEnabled"]=>
      string(4) "true"
      ["custom_sessionid"]=>
      string(110) "*snip*"
    }
  }
  ["vehicle"]=>
  array(1) {
    ["profile"]=>
    array(8) {
      ["vin"]=>
      string(17) "*snip*"
      ["gdcUserId"]=>
      string(0) ""
      ["gdcPassword"]=>
      string(0) ""
      ["encAuthToken"]=>
      string(64) "*snip*"
      ["dcmId"]=>
      string(12) "*snip*"
      ["status"]=>
      string(4) "true"
      ["statusDate"]=>
      string(17) "*snip*"
      ["nickname"]=>
      string(4) "Leaf"
    }
  }
  ["EncAuthToken"]=>
  string(80) "*snip*"
  ["CustomerInfo"]=>
  array(11) {
    ["UserId"]=>
    string(10) "*snip*"
    ["Language"]=>
    string(5) "en_GB"
    ["Timezone"]=>
    string(12) "Europe/Paris"
    ["RegionCode"]=>
    string(2) "NE"
    ["OwnerId"]=>
    string(10) "*snip*"
    ["EMailAddress"]=>
    string(21) "*snip*"
    ["Nickname"]=>
    string(4) "Leaf"
    ["Country"]=>
    string(2) "GB"
    ["VehicleImage"]=>
    string(47) "/content/language/default/images/img/ph_car.jpg"
    ["UserVehicleBoundDurationSec"]=>
    string(9) "*snip*"
    ["VehicleInfo"]=>
    array(9) {
      ["VIN"]=>
      string(17) "*snip*"
      ["DCMID"]=>
      string(12) "*snip*"
      ["SIMID"]=>
      string(20) "*snip*"
      ["NAVIID"]=>
      string(12) "*snip*"
      ["EncryptedNAVIID"]=>
      string(32) "*snip*"
      ["MSN"]=>
      string(15) "*snip*"
      ["LastVehicleLoginTime"]=>
      string(0) ""
      ["UserVehicleBoundTime"]=>
      string(20) "*snip*"
      ["LastDCMUseTime"]=>
      string(17) "*snip*"
    }
  }
  ["UserInfoRevisionNo"]=>
  string(1) "1"
}

@filcole
Copy link
Contributor Author

filcole commented Dec 18, 2016 via email

@filcole
Copy link
Contributor Author

filcole commented Dec 18, 2016 via email

@ScottHelme
Copy link
Owner

This change would not be compatible with both vehicles though would it?

@ScottHelme
Copy link
Owner

Oh wait, yes it would, ignore me :)

@ScottHelme ScottHelme merged commit b34eeef into ScottHelme:master Dec 18, 2016
@filcole filcole deleted the Initial-Fixes branch December 19, 2016 00:11
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

Successfully merging this pull request may close these issues.

None yet

3 participants