First page Back Continue Last page Graphics
Data Paths to Subscribe To
- There are only a few top level paths to retrieve the data. These paths represent an API that all implemented SIMs will conform to. Therefore, your App will work with any SIM that is implemented.
- If you find the API doesn’t have what you need, you can retrieve data directly from the SIM by prefixing the path with the SIM’s name followed by the path to the data in the SIM. Please be aware that doing this makes your App SIM specific. Consider asking to have the API enhanced to include the data you need. Please note that SIM specific paths will be case sensitive, while the API is not.
- /iRacing/WeekendInfo/TrackDisplayName
- As stated before, these paths should be put in the “data-sra-args-data” attribute of any “sra” directive. But, sometimes you just need get or set a value only once. To do that, use the Angular $http service and prefix these paths with the following URL.
- http://localhost/SIMRacingApps/Data/…
- Example: http://localhost/SIMRacingApps/Data/iRacing/WeekendInfo/TrackDisplayName