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

New Carwings API #3

Closed
joeshaw opened this issue May 30, 2018 · 15 comments
Closed

New Carwings API #3

joeshaw opened this issue May 30, 2018 · 15 comments

Comments

@joeshaw
Copy link
Owner

joeshaw commented May 30, 2018

There is a new Carwings API available for North American (and possibly Japanese) vehicles. It is not yet available in Europe.

More info:

Issue #2
jdhorne/pycarwings2#35 (comment)
gboudreau/nissan-connect-php#18
https://gist.github.com/BenWoodford/141ca350445e994e69a70aabfb6db942

@NickWallbridge

This comment has been minimized.

@NickWallbridge

This comment has been minimized.

@joeshaw
Copy link
Owner Author

joeshaw commented May 31, 2018

@BenWoodford on Twitter thinks that the new API may never come to EU Leafs: https://twitter.com/IrregularExpr/status/1001902994110271490

@Tobiaswk
Copy link

@joeshaw Do you know if US users still can use the old API that is used in Europe?

@joeshaw
Copy link
Owner Author

joeshaw commented Feb 14, 2019

@Tobiaswk yes. it works for me, and that’s all this library implements at the moment.

@Tobiaswk
Copy link

Tobiaswk commented Jun 3, 2019

It looks like a new app for european users has been released on Google Play; https://play.google.com/store/apps/details?id=eu.nissan.nissanconnect.services

I'm not sure if this app is only for Nissan Leaf E+ but I am not able to use it with a Nissan Leaf 2018 second generation vehicle. Maybe we have to go though the initial vehicle registration phase a second time?

I have looked at the app binary using apktool. It is using OAuth with this URL; https://prod.eu.auth.kamereon.org/kauth/
I haven't been able to find any others URL of significance within the apk. My guess is that the real API URL is returned by the OAuth upon successful sign in.

Maybe we should make a new issue regarding this?

@joeshaw
Copy link
Owner Author

joeshaw commented Jun 4, 2019

A new issue might be good, as the login stuff makes it seem like a pretty different API at first glance.

I'm going to need someone else to do the heavy lifting on reverse engineering the API, as I am in the US, don't have Android, and don't have a Leaf E+. I'll look around for some other resources for it, however.

@Tobiaswk
Copy link

Tobiaswk commented Jun 4, 2019

No worries! I just wanted to post it here in this discussion to shed some light on it.

fyi I'm the developer of the app My Leaf and the dartcarwings library ;)

@joeshaw
Copy link
Owner Author

joeshaw commented Jun 4, 2019

Oh, of course! I recognize your name now. Thanks again for letting me know about the new app and (maybe) API

@Tobiaswk
Copy link

I've created a Dart client library for North American API tracked here. It supports most of the features the API offers but not all yet; https://github.com/Tobiaswk/dartnissanconnectna
I suppose someone can use it as a reference and make a python implementation.

Just wanted to put that out for anyone interested! ;)

@howartp84
Copy link

Following.

I'm trying to make use of / update / enhance pycarwings2 to support UK 2019 Leafs (including mine!).

I'm taking over the www.indigodomo.com Home Automation plugin for Leaf, originally written by @jdhorne but abandoned at the same time abandoned the pycarwings2 project.

@joeshaw
Copy link
Owner Author

joeshaw commented Dec 26, 2020

I've implemented part of the new API in my new https://github.com/joeshaw/leaf repository. I decided to make a clean break from the current repo.

@joeshaw joeshaw closed this as completed Apr 30, 2021
@andig
Copy link
Contributor

andig commented May 1, 2021

@joeshaw I have a Nissan implementation in Go at https://github.com/andig/evcc/blob/master/internal/vehicle/nissan.go. If there's anything you need to pick for https://github.com/joeshaw/leaf I'd be happy to switch over to your new module again.

@joeshaw
Copy link
Owner Author

joeshaw commented May 4, 2021

@andig This is the Europe API, correct? Any idea if it works in other regions? (USA, Japan)

@andig
Copy link
Contributor

andig commented May 5, 2021

It's Europe. If you have credentials for outside I could give it a quick try (pm me at cpuidle@gmx.de).

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

No branches or pull requests

5 participants