Angular directive

sra-car-number source template

This widget simply displays the car number using the colors returned by the SIM.

You can provide an image of your car number that is based on the league id returned by the SIM. It requires your league be run using iRacing's leagues. It will not work if it is a hosted session because iRacing does not return a league number. The image path should be as follows:


The leagueId can be found in iRacing's League Directory listing by clicking on the league you are in and looking at the URL for that page. If you want to make numbers for your official races, use the league id of 0. Then create numbers for 1-60 to cover them all. These will be used by all cars.

Example: Documents/SIMRacingApps/CarNumbers/LeagueID-1489/61.png

All images should have an aspect ratio of 1.666 (i.e. 800 wide, 480 high) to cover the original number. Note: Taking a screen shot of your number while in iRacing creates a dull image.


<sra-car-number data-sra-args-car="ME"></sra-car-number>
<div data-sra-car="ME"></div>

data-sra-args-car carIdentifier The Car Identifier to get the number from.
data-sra-args-interval integer The interval, in milliseconds, that this widget will update from the server. Default is 2000.