Friss / iracing-sdk-js

iracing sdk implementation in javascript. Inspired and forked from node-irsdk
Other
5 stars 0 forks source link

Outdated version of iRacing #6

Open LapsTimeOFF opened 3 months ago

LapsTimeOFF commented 3 months ago

Hey!

Any plans on updating the module to iRacing 2024 Season 3 Patch 2?

Friss commented 3 months ago

Is there anything in particular that isn't working with the latest version? I just checked and the current version worked just fine but I regenerated the sample data https://github.com/Friss/iracing-sdk-js/pull/7

LapsTimeOFF commented 3 months ago

Thanks for the regenerated sample data, but I can't get the Lat/Long data though it's mentioned in iRacing docs as available live

Friss commented 3 months ago

Ah from some searches of the forums it seems that the Lat/Long data is only available in the ibt telemetry files that are generated on delay and not in the live API data. Unless you could point me to something saying otherwise.

I can look into supporting reading ibt files if that would be of interest.

LapsTimeOFF commented 3 months ago

I have this post though, in the PDF we can see that Lat and Long are available Live. If they are actually not, do you know how the track map overlays from 3rd party apps are made? Also the .ibt files parsing would be nice!

Friss commented 3 months ago

Yeah seems like that PDF is wrong based on real data and some of the discussion around the posts I linked.

As for track maps I assume they do a process similar to this https://members.iracing.com/jforum/posts/list/3776411.page where they drive the track and take the gps data from the .ibt files. And then use the percent complete lap metric to draw the car along the map.

I'll look into adding .ibt file support sometime soon.