UhClem
Posts: 107
Joined: Sun May 23, 2010 8:40 pm

Leaf smartphone API

Fri Jan 14, 2011 11:03 am

I'd like to reverse engineer the protocol between the Leaf iPhone app and Carwings but I need your help :) I just ordered this month so it'll be a while before I can do it myself :(

If you have a Leaf, a WiFi connected iPhone, iPad, or iPod touch with the Leaf app, and are willing to help, please send me a PM. The process should take about 30 minutes.

SnaxMuppet
Posts: 22
Joined: Mon Jan 17, 2011 3:06 am
Delivery Date: 30 Mar 2011
Location: Saltash, Cornwall, UK
Contact: Website

Re: Leaf smartphone API

Sat Apr 28, 2012 12:47 am

Has anyone made any progress with an Leaf API?

I would like to programmatically access the Leaf functions and data. I realise that this might be rather commercially sensitive from Nissan's point of view but surely if there was an accepted API that gave access to the main functions and data that would make sense for Nissan. The more third-party apps available the more attractive the Leaf is to the potential buyer (and owner of course!).

Has anyone programmatically accessed the Leaf such as turning charging on/off, determining state of charge, determining if charging has stopped, determining state of A/C and heating etc?

User avatar
Nekota
Posts: 615
Joined: Sat Dec 11, 2010 11:16 pm
Delivery Date: 12 May 2011
Leaf Number: 2182
Location: Sunnyvale, CA

Re: Leaf smartphone API

Sun Apr 29, 2012 9:18 pm

SnaxMuppet wrote:Has anyone made any progress with an Leaf API?

I would like to programmatically access the Leaf functions and data. I realise that this might be rather commercially sensitive from Nissan's point of view but surely if there was an accepted API that gave access to the main functions and data that would make sense for Nissan. The more third-party apps available the more attractive the Leaf is to the potential buyer (and owner of course!).

Has anyone programmatically accessed the Leaf such as turning charging on/off, determining state of charge, determining if charging has stopped, determining state of A/C and heating etc?


Search "API" -> viewtopic.php?f=27&t=2214&hilit=API

Haykinson has a Python script that works through the carwings interface allowing for status, climate control, and charge start. Also see Haykinson's AutoFlugel .
Res 20Apr2010 / Ordered 27Sep2010 / Delivered 12May2011

PV System

SnaxMuppet
Posts: 22
Joined: Mon Jan 17, 2011 3:06 am
Delivery Date: 30 Mar 2011
Location: Saltash, Cornwall, UK
Contact: Website

Re: Leaf smartphone API

Mon Apr 30, 2012 12:51 am

Thanks.

Yes, I have seen those and they are a good start but that isn't really an API... just individuals who have worked out some of how to use the smartphone interface. There is no explanation or description for other to create their own applications. For example, I don't know Python so it would take a fair bit of decoding for me.

I suppose I was wondering if anyone had a full description rather than just examples. Obviously not :)

It would be in Nissan's interest to publish their API so we can all benefit... including them!

Thanks again.

garsh
Posts: 790
Joined: Sat Feb 12, 2011 5:27 am
Delivery Date: 05 Apr 2012
Location: Pittsburgh PA

Re: Leaf smartphone API

Mon Apr 30, 2012 2:21 am

There's an API for accessing Carwings that the smartphone apps use: Carwings API.

There's no official documentation, and what's shown on that page is a bit limited, but it should help you get started.
2012 Black SV w. G35 wheels

mkjayakumar
Forum Supporter
Posts: 1192
Joined: Thu Mar 08, 2012 9:13 am
Delivery Date: 08 Mar 2012
Location: Plano, TX

Re: Leaf smartphone API

Mon Apr 30, 2012 6:46 am

Uhclem: I am not sure what is wrong with sending PM messages but they seem quite flaky. I have outgoing messages that is still in my Outbox for over a month. sometimes messages go within minutes or I see them hanging there for over a day.

Please send me mail at mkjayakumar@hotmail.com so that we can work together.
2011 Leaf, 30K miles, returned after 24 month lease.
Currently leasing 2014 Leaf SV.

Return to “Engineering”