Jump to content
Glyn

Live Data From LEAF Spy not working

Recommended Posts

It's just noticed that ABRP supports live data from Leaf Spy, this is fantastic. However, I'm having trouble getting it to work. 

I've entered the ID and URL into leafspy and selected https. Leafspy is not showing any errors therefore I assume the data is being posted to your server correctly. However when i refresh the live data display in ABRP no data is showing. How can I debug this? Can you check my account to see if any data is being received from leafspy? I can't find any info of other users using this feature, has this feature been tested before? 

 

 

 

Screenshot 2019-04-28 at 14.04.12.png

Edited by Jason (ABRP)
Removed screenshot with mostly-visible token
Link to comment
Share on other sites

I noticed the ID token changes each time I refresh ABRP, is it therefore required to update the ID token in leafspy each time ABRP is to be used? This is a bit cumbersome.

I ticked 'hide' next to the password field after this screenshot was taken, it didn't seem to make a difference. 

Link to comment
Share on other sites

No, you shouldn't have to re-enter your token each time you update, that's only to force it to load a new token if you want one.  As far as why your live data's not showing up, that's a good question.  A few things to check, LeafSpy only sends data in the foreground, so if you swap fully to another app it won't send data (We have a request to the dev to fix this).  If you have ABRP open on another device and have LeafSpy send data does it work?

Link to comment
Share on other sites

18 minutes ago, Jason (ABRP) said:

o, you shouldn't have to re-enter your token each time you update, that's only to force it to load a new token if you want one.

Thanks a lot for the prompt replay. Ok, that's good to know

 

18 minutes ago, Jason (ABRP) said:

LeafSpy only sends data in the foreground, so if you swap fully to another app it won't send data (We have a request to the dev to fix this).  If you have ABRP open on another device and have LeafSpy send data does it work?

I had leafspy open in the foreground on a separate device to ABRP. Is it possible to check on your backed system if you can see any data from my leaf spy arriving successfully? I wish leafspy would show a successful server connection message  

Edited by Glyn
edit
Link to comment
Share on other sites

1 hour ago, Glyn said:

Thanks a lot for the prompt replay. Ok, that's good to know

 

I had leafspy open in the foreground on a separate device to ABRP. Is it possible to check on your backed system if you can see any data from my leaf spy arriving successfully? I wish leafspy would show a successful server connection message  

As it turns out, it wasn't making it.  Found an error in the log that exposed a bug which is now fixed, and you should see data now! 

Link to comment
Share on other sites

Awesome! I can confirm it's working now! Nice work 😃

This is so useful for Nissan LEAF drivers, I intend to test it out on a long trip across Europe soon (see attached). It's totally amazing that ABRP can calcualte this route!

Is there any chance you could add the options to enter economy in miles/kWh (UK) and km/100kWh (Europe).

Also in the UK we use miles for distance and degrees Celsius for temperature...we're strange like this 🙃. Currently, there is no way in ABRP to have both miles and deg C. 

 

 

Screenshot 2019-04-27 at 23.51.21.png

Link to comment
Share on other sites

1 hour ago, Glyn said:

Awesome! I can confirm it's working now! Nice work 😃

This is so useful for Nissan LEAF drivers, I intend to test it out on a long trip across Europe soon (see attached). It's totally amazing that ABRP can calcualte this route!

Is there any chance you could add the options to enter economy in miles/kWh (UK) and km/100kWh (Europe).

Also in the UK we use miles for distance and degrees Celsius for temperature...we're strange like this 🙃. Currently, there is no way in ABRP to have both miles and deg C. 

You definitely can switch your economy to mi/kWh (we use this in the US as well), just click on the "mi/kWh" button in the settings and it'll swap over.  As far as Wh/km vs kWh/100km, the difference is only multiplying by 10, but we'll likely have to include that as a setting since it seems everyone is going that direction except Tesla (I do think Tesla's choice of units makes a lot of sense, but so do many of their EV design choices and no one seems to be adopting those either).

As far as mixed units, I intend to include that when I overhaul the settings page - giving the option to bulk swap everything to metric/imperial, or set them individually.

1 hour ago, Glyn said:

So impressed with ABRP, I've just send your donation to support your server costs. It's the least I can do. Keep up the good work 👍

Thank you very much!

Link to comment
Share on other sites

28 minutes ago, Jason (ABRP) said:

You definitely can switch your economy to mi/kWh (we use this in the US as well), just click on the "mi/kWh" button in the settings and it'll swap over

Fantastic, you're totally correct. I had missed that...doh! 

  • Haha 1
Link to comment
Share on other sites

On 4/28/2019 at 8:57 PM, Glyn said:

Fantastic, you're totally correct. I had missed that...doh! 

Glad to be of service!

One of the main things I want to do in my upcoming settings overhaul is make the whole thing more user-friendly.  At the moment it's pretty hard for new users to get the hang of the settings because there are so many ways to configure your route.  

Do you have any requests on that front? Things you wish (aside from the UK units thing) we did differently / better?

Link to comment
Share on other sites

19 hours ago, MrThrane said:

Hi. LOVE ABRP, but I got the same problem as @Glyn .

I have punched in everything in Leaf Spy Pro, but nothing appears in ABRP...

Hope you can help me out here. :) 

Conveniently, there was an error in the log to fix! Give it another try and see if it works now.

  • Like 1
Link to comment
Share on other sites

Everything has working nicely until part way through drive home yesterday when data stopped being transferred from leafspy, I can still read leafspy directly but abrp does not seem to be getting info anymore. I didn't (knowingly) change anything ad was driving. Have you had server problem? 

Link to comment
Share on other sites

Yep, caused by a fix to the fix I put in for your lack of SoH data, you know the old Programmer song (to the tune of 99 bottles of beer):

99 little bugs in the code,
99 little bugs
Take one down, patch it around
103 little bugs in the code

In any case, should be all better now!

  • Like 1
Link to comment
Share on other sites

11 hours ago, Jason (ABRP) said:

Yep, caused by a fix to the fix I put in for your lack of SoH data, you know the old Programmer song (to the tune of 99 bottles of beer):


99 little bugs in the code,
99 little bugs
Take one down, patch it around
103 little bugs in the code

In any case, should be all better now!

Cheers all fixed and great again. Let me know when android app as like many above I am very keen

 

Link to comment
Share on other sites

This is so cool! I just found ABRP yesterday and seem to have gotten LeafSpy set up... But it's not reporting SoC and the battery temp seems to have been converted from ºC to ºF, even though LeafSpy is reporting ºF. My batt temp is ~79ºF according to LeafSpy.

Hoping to try this on a more significant drive soon.

Screen Shot 2019-06-19 at 11.21.14 AM.png

Link to comment
Share on other sites

@Goodbar - Thanks for the report! I think most of our Leaf users so far have been using Celsius, so that exposed a little bug, should be fixed now.

SoC is handled two different ways, if you don't mind, could you check on the following in LeafSpy when you get 0% SoC and tell me what you get:

  1. SoC
  2. Ahr
  3. Gids

We use those to approximate the displayed "dashboard" SoC in the car, since that's not provided by LeafSpy.

Link to comment
Share on other sites

17 hours ago, Jason (ABRP) said:

@Goodbar - Thanks for the report! I think most of our Leaf users so far have been using Celsius, so that exposed a little bug, should be fixed now.

SoC is handled two different ways, if you don't mind, could you check on the following in LeafSpy when you get 0% SoC and tell me what you get:

  1. SoC
  2. Ahr
  3. Gids

We use those to approximate the displayed "dashboard" SoC in the car, since that's not provided by LeafSpy.

Thanks, the batt temp is displaying correctly now.

  1. SoC: 97.7
  2. Ahr: 74.91
  3. Gids: 342
Link to comment
Share on other sites

On 6/23/2019 at 11:48 AM, Jason (ABRP) said:

Great! Glad I could help!

Follow-up, how well does the SoC we show generally match your in-dash SoC?  Always good to get some extra data points!

I don't think I can see the live data in ABRP if LeafSpy still needs to be in the foreground if I'm just using my phone. I can set up an old phone to run LeafSpy if needed.

Link to comment
Share on other sites

20 hours ago, Goodbar said:

I don't think I can see the live data in ABRP if LeafSpy still needs to be in the foreground if I'm just using my phone. I can set up an old phone to run LeafSpy if needed.

You can run it in split screen on your phone. I'm doing that and it's working great. 🙂 

Link to comment
Share on other sites

3 hours ago, MrThrane said:

You can run it in split screen on your phone. I'm doing that and it's working great. 🙂 

Cool, thanks for the tip. I'd forgotten about split screen, honestly. Never had a good use for it until now, apparently.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...