Sponsored

Rivian API

agame32

Well-Known Member
First Name
Aaron
Joined
Oct 19, 2021
Threads
9
Messages
325
Reaction score
324
Location
CA
Vehicles
R1T, Model Y
Anyone else notice that Rivian improved the accuracy of the reported power during charging?

I used to see just integer values returned but I am getting tenths of kilowatts, not a big deal when using a DCFC charger, it is nice when on a level 2 charger.
I remember something about improved charging info in one of the vehicle software release notes. It’s probably powered by this api improvement.
Sponsored

 

BCondrey

Well-Known Member
First Name
Barry
Joined
Dec 12, 2021
Threads
0
Messages
694
Reaction score
694
Location
Richmond, VA
Vehicles
R1T
Occupation
IT
I asked about an API back in August 2023, and here was the response via email:

Hi Barry,

I appreciate that you took the time to reach out to us here at the Customer Engagement Center, and I’m happy to assist you here!

I understand where you're coming from there, but unfortunately we don't have that kind of access available for customers or such a program available even in a read-only format. I will file this away as feedback/a feature request for you though! Those records do get looked at by our R&D teams and software teams as they continue to look for more ways to improve and add functionality to our vehicles and software.

Thank you for contacting Rivian! Stay safe out there and please don’t hesitate to reach back out with any further questions, comments, or concerns.

Your fellow adventurer,
Tyler
 

sub

Well-Known Member
Joined
Jul 23, 2021
Threads
33
Messages
1,872
Reaction score
3,304
Location
USA
Vehicles
Rivian R1S, Tesla Model 3
I found another new field.

"gnssBearing": {
"__typename": "TimeStampedFloat",
"timeStamp": "2023-12-02T04:27:33.083Z",
"value": 124.2602
},
 

the_mace

Well-Known Member
First Name
Rob
Joined
Apr 8, 2022
Threads
11
Messages
414
Reaction score
343
Location
Boston, MA
Vehicles
Tesla Model S75D, Ford F350 Diesel, Mercedes GLC30
Occupation
CTO
I found another new field.

"gnssBearing": {
"__typename": "TimeStampedFloat",
"timeStamp": "2023-12-02T04:27:33.083Z",
"value": 124.2602
},
Nice, added to the python and ruby APIs
 

pc500

Well-Known Member
Joined
Jun 22, 2021
Threads
20
Messages
1,045
Reaction score
562
Location
US
Vehicles
dodge ram
I remember something about improved charging info in one of the vehicle software release notes. It’s probably powered by this api improvement.
Can you show the sample before/after output?
 

Sponsored

sub

Well-Known Member
Joined
Jul 23, 2021
Threads
33
Messages
1,872
Reaction score
3,304
Location
USA
Vehicles
Rivian R1S, Tesla Model 3
I seem to have gotten my "driver" account banned from the API by polling for data while the vehicle was in for service. Both my software and electrafi stopped working at roughly the same time, and both work if I switch to a different account so I know it isn't a bug in my code.

Does anyone know how to get it unbanned?

I tried removing the account's access to the vehicle and then re-adding it. That didn't help.

Interestingly the banned account still works in the official Rivian app, and my software still works if I use a different account. So the ban seems to be tied to the specific combination of account and IP. So perhaps if I just wait a while I will eventually get a new IP address and be back up and running.
 

usofrob

Well-Known Member
First Name
Robert
Joined
Apr 9, 2022
Threads
5
Messages
671
Reaction score
583
Location
Michigan
Vehicles
Tesla 3, lotus Elise
Occupation
MBSE
You could try using a VPN to get a new public IP address.

Or using a hotspot on your phone.
 

Jiji

Well-Known Member
First Name
Rick
Joined
Jun 21, 2023
Threads
17
Messages
296
Reaction score
430
Location
Finger Lakes, NY
Website
github.com
Vehicles
Rivian Blue R1S
Does anyone know how to get it unbanned?
I haven't been locked out forever but I think others have and you have to call customer service for the account to unlocked. Not 100% sure as it has been a while but perhaps it was a comment the @the_mace Python code.

I have had one of my testing accounts locked out when writing the 2FA code in my app due to too many login failures but it always comes back after a few hours.
 
  • Like
Reactions: sub

the_mace

Well-Known Member
First Name
Rob
Joined
Apr 8, 2022
Threads
11
Messages
414
Reaction score
343
Location
Boston, MA
Vehicles
Tesla Model S75D, Ford F350 Diesel, Mercedes GLC30
Occupation
CTO
I haven't been locked out forever but I think others have and you have to call customer service for the account to unlocked. Not 100% sure as it has been a while but perhaps it was a comment the @the_mace Python code.

I have had one of my testing accounts locked out when writing the 2FA code in my app due to too many login failures but it always comes back after a few hours.
Mine took almost a week to come back. Best to always do api stuff on a non primary account
 

sub

Well-Known Member
Joined
Jul 23, 2021
Threads
33
Messages
1,872
Reaction score
3,304
Location
USA
Vehicles
Rivian R1S, Tesla Model 3
Thanks. I'll just leave it polling on my other account for a while and check back in a few weeks.

And next time I go in for service I will disable my API polling.
 

Sponsored

Jiji

Well-Known Member
First Name
Rick
Joined
Jun 21, 2023
Threads
17
Messages
296
Reaction score
430
Location
Finger Lakes, NY
Website
github.com
Vehicles
Rivian Blue R1S
Some observations on the Rivian API, specifically the Rivian charging history.

I wanted see what the true lifetime efficiency was as the trip odometer reported value doesn't seem to include all the energy used and certainly doesn't include the energy inefficiency of AC charging. Should be simple but it turns out the charging history is tied to the account and since I use an account dedicated to my iPhone app it initially came up empty.

So I switch to use my original Rivian account and sure enough it has a record of every charging session since I picked it up Normal. Or at least it looks that way, I haven't confirmed it beyond a reasonable doubt but they mostly seem to be there.

The API has a field for the charger type but Rivian doesn't seem to populate it for non-Rivian chargers but I fake it by assuming that if you charge at a rate higher than 13 kWh/hr then it must have been a DCFC charging session. With this I can breakdown the charging by AC and DCFC and calculate the true efficiency by pulling the current odometer reading from the vehicle:

Rivian R1T R1S Rivian API 1704066379938


The only quirk is the true duration of a charging session is not always known with the Rivian data since it includes the time your are plugged in but not charging. In the red session, the vehicle was plugged in overnight but was first a charge to 85% SoC and then a charge to 95% SoC and cabin preconditioning before departing on a trip.

Anyhow, the data is a nice resource to backfill missing charges and see the some details of your charging sessions.

Happy New Year to all!
 

the_mace

Well-Known Member
First Name
Rob
Joined
Apr 8, 2022
Threads
11
Messages
414
Reaction score
343
Location
Boston, MA
Vehicles
Tesla Model S75D, Ford F350 Diesel, Mercedes GLC30
Occupation
CTO
New one i'm hitting now. Started seeing this after upgrading my R1T to 2023.50.01 on Jan 11:
Code:
{'errors': [{'message': 'UNAUTHENTICATED', 'extensions': {'code': 'UNAUTHENTICATED', 'serviceName': None, 'exception': {'message': 'UNAUTHENTICATED', 'locations': [{'line': 1, 'column': 2}], 'path': ['user']}}}], 'data': None}
Login works fine but then every api access it tells me unauthenticated.

Anyone know of changes in this area?
 

sub

Well-Known Member
Joined
Jul 23, 2021
Threads
33
Messages
1,872
Reaction score
3,304
Location
USA
Vehicles
Rivian R1S, Tesla Model 3
New one i'm hitting now. Started seeing this after upgrading my R1T to 2023.50.01 on Jan 11:
Code:
{'errors': [{'message': 'UNAUTHENTICATED', 'extensions': {'code': 'UNAUTHENTICATED', 'serviceName': None, 'exception': {'message': 'UNAUTHENTICATED', 'locations': [{'line': 1, 'column': 2}], 'path': ['user']}}}], 'data': None}
Login works fine but then every api access it tells me unauthenticated.

Anyone know of changes in this area?
Both electrafi and my own code are still working for me on 50.1.

Perhaps this is what you get when you have been banned? I didn't look too closely at exactly what the API was returning when I was banned, but I was not getting a login error. It was on the data stage that it failed.
 

the_mace

Well-Known Member
First Name
Rob
Joined
Apr 8, 2022
Threads
11
Messages
414
Reaction score
343
Location
Boston, MA
Vehicles
Tesla Model S75D, Ford F350 Diesel, Mercedes GLC30
Occupation
CTO
Both electrafi and my own code are still working for me on 50.1.

Perhaps this is what you get when you have been banned? I didn't look too closely at exactly what the API was returning when I was banned, but I was not getting a login error. It was on the data stage that it failed.
Hmm, I thought that may be the case but I get the same thing on both my account and my wife's
 
 








Top