Comments (15)
Use the New API, I have a 2018 and it works fine!
from nissan-connect-php.
https://github.com/gboudreau/nissan-connect-php/tree/new-api
from nissan-connect-php.
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.
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.
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.
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.
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.
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.
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.
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.
@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.
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.
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.
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.
Here there is a TypeScript port if anyone is interested.
https://github.com/sebjsmith/kamereon
from nissan-connect-php.
Related Issues (20)
- "status":"-2010","message":"INVALID PARAMS" HOT 2
- Find my car function HOT 9
- get-leaf-location example not working HOT 1
- Base URL Changed Again? HOT 3
- Issue with last Commit HOT 6
- Issue with new API -- No battery info? HOT 4
- Intermittent Connexion Issues? HOT 11
- Receiving INVALID PARAMS response HOT 1
- does not work since mid-December 2018 .... HOT 8
- Leaf Gen2 HOT 8
- Nissan changed api again HOT 8
- New Response since Nov 21st? HOT 2
- Response Authentication error HOT 7
- New fix does not work when changing request source. HOT 2
- API error, NoRecordInDatabase HOT 3
- BlahBlah?? HOT 10
- The return of the BlahBlah code :( HOT 4
- Here we go again! :) HOT 4
- Still getting Unauthorized response after last update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nissan-connect-php.