I have received several requests from league owners to be able to monitor more things than iRacing provides in their telemetry about all the drivers. To accomplish this, this plugin will be designed to send that data to an external web server. For it to work properly, each driver would need to be running SRA with the web server address configured. The web server would need to write the data to a database and then provide several views to that data to accomplish what you want.
Note: It's important to not publish any data that the SIM Vendor would consider cheating, or that a driver would not want shared.
Each user would have to enter the web server address into their settings file for this plugin to start publishing. Each entry will have to have the League ID appended. The League ID can be found by looking at the URL on the Leagues Page to "View" the league in iRacing. PRL's league id for the AdvoCare league is 1643. (NOTE: Using a league id of zero(0) will publish all other iRacing Sessions). Unless a URL is defined for a league, it will not publish anything.
The plugin will start sending data, for the defined interval in milliseconds, using a HTTP POST with the data as a JSON formatted payload. The web server would have to be able to parse this and store it in a database. Here's a PHP example.
The web server doesn't have to use all the fields, but should also expect new fields to be added at any time. Also, each publisher may not be on the same SRA version, thus each driver may be publishing different fields. Also, timing of each driver could be different, such that, 2 drivers could be the leader in position 1, but that should work itself out within a few seconds.
The web server should return the following in the response packet payload. I will see if I can either display these or actually enforce them. The positions are your real-time points positions based on how your league works. I will write new Widget to display these like the Standings App does.