Git Product home page Git Product logo

Comments (15)

Raiden38 avatar Raiden38 commented on June 12, 2024

Use the New API, I have a 2018 and it works fine!

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 12, 2024

https://github.com/gboudreau/nissan-connect-php/tree/new-api

from nissan-connect-php.

cedric222 avatar cedric222 commented on June 12, 2024

I will try. @Raiden38 do your cars works with "Nissan Connect Services" ? ( and not "Nissan Connect EV" ) Since April 2019, and the new 8 inch screen, seems there is some change.

from nissan-connect-php.

Raiden38 avatar Raiden38 commented on June 12, 2024

It written Nissan Connect EV & Services lol. Should be the latest version. I have the 8 inch screen also. Try the new API and let us know

from nissan-connect-php.

howartp84 avatar howartp84 commented on June 12, 2024

2019 uses a new API from May onwards ("Nissan Connect Services"), which nobody has yet decoded and implemented yet to my knowledge. Tobias at MyLeaf is on with it, with my credentials for testing.

from nissan-connect-php.

cedric222 avatar cedric222 commented on June 12, 2024

Sorry for the delay ! I don't have many time recently

Thanks @howartp84 for the info, let us know.

I test with the branch "new-api", and the result here is
[2019-09-29 00:09:39][DEBUG] : [NissanConnect] Request: POST https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/InitialApp_v2.php {"custom_sessionid":"","initial_app_str":"9s5rfKVuMrT03RtzajWNcA","RegionCode":"NE","lg":"en-US","DCMID":"","VIN":"","tz":"Europe/Paris"}
[2019-09-29 00:09:49][DEBUG] : [NissanConnect] Response: {"status":200,"message":"success","baseprm":"88dSp7wWnV3xxxxxxxxxxx"}
[2019-09-29 00:09:49][DEBUG] : [NissanConnect] Request: POST https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/UserLoginRequest.php {"UserId":"[email protected]","Password":"toto","custom_sessionid":"","initial_app_str":"9s5rfKVuMrT03RtzajWNcA","RegionCode":"NE","lg":"en-US","DCMID":"","VIN":"","tz":"Europe/Paris"}
[2019-09-29 00:09:53][DEBUG] : [NissanConnect] Found resultKey in response:
[2019-09-29 00:09:53][DEBUG] : [NissanConnect] Request for 'UserLoginRequest.php' failed. Response received: {"status":"-2010","message":"INVALID PARAMS","resultKey":""} Will retry.
[20

The good new is the 2019 official apps is now usable, you can start heater in less then 20 seconds.. ( was more than 2 minutes with the 2016 Leaf apps )

from nissan-connect-php.

pirracas77 avatar pirracas77 commented on June 12, 2024

I have this error

Request for 'UserLoginRequest.php' failed. Response received: {"status":"-2010","message":"INVALID PARAMS","resultKey":""}

Is it fixed in any realese?

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 12, 2024

I am myself using the new-api branch, which stopped working a while ago (see #32).
The master branch, I can't use for quite a while. Not sure if it is working for anyone.

from nissan-connect-php.

pirracas77 avatar pirracas77 commented on June 12, 2024

Thanks for the quick answer.
With the new-api I get
Login failed, or failed to find car VIN, authToken or accountID in response of login request: {"errorMessage":"Authentication Failure","errorCode":910,"status":200}

from nissan-connect-php.

andig avatar andig commented on June 12, 2024

I'm developing a PV-controlled EV charger at https://github.com/andig/evcc and would like to support the newer Nissans. If I understand correctly the protocol has not been decoded yet? Are you aware of gboudreau/LEAF_Carwings_EasyAccess#8 (comment) and does that work? Also here is an explicit reference to Nissan Connect which seems to be the "new" api: https://github.com/Tobiaswk/dartnissanconnectna

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 12, 2024

@andig The correct code to use to connect to the API might depend on region (EU, North America, Japan), and MY of the LEAF. I'm in Canada, have a 2011 MY, and was using the new-api branch until it stopped working a while ago. I didn't take the time to reverse engineer the Android app, to see what was wrong with my code.
I was recently told that the code available at https://gitlab.com/tobiaswkjeldsen/carwingsflutter is working. You might look there to get a working code example; I didn't yet take the time to look myself.

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 12, 2024

Follow up: so the new-api branch is working now; that branch should fix it for North America (it is working for my 2011 MY in Canada).
For 2019+, I think a completely different API is required, but I'm not sure if it applies worldwide, or only in specific regions.
Anyone has a 2019+ LEAF, and could test the new-api branch, and report if it works, and in which region they are?

from nissan-connect-php.

pirracas77 avatar pirracas77 commented on June 12, 2024

Follow up: so the new-api branch is working now; that branch should fix it for North America (it is working for my 2011 MY in Canada).
For 2019+, I think a completely different API is required, but I'm not sure if it applies worldwide, or only in specific regions.
Anyone has a 2019+ LEAF, and could test the new-api branch, and report if it works, and in which region they are?

For me is still not working (2019+ , Europe)

ร—Login failed, or failed to find car VIN, authToken or accountID in response of login request: {"errorMessage":"Authentication Failure","errorCode":910,"status":200}

from nissan-connect-php.

gboudreau avatar gboudreau commented on June 12, 2024

OK, so I guess you'd need completely new code, something like this: https://github.com/Tobiaswk/dartnissanconnect/tree/master/lib/src
That code connects to Kamereon platform in EU.
If anyone wants to modify the code to replicate Tobiaswk's code, I'd be happy to review any PR.

from nissan-connect-php.

pirracas77 avatar pirracas77 commented on June 12, 2024

Here there is a TypeScript port if anyone is interested.

https://github.com/sebjsmith/kamereon

from nissan-connect-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.