Nibo
Registered
Updated to 2.058.6
- Optimized background refresh when editing results. Should be faster now.
- Added kmh/mph switch button to Live Timing.
- Added "show_tire_data" parameter to live_timing_settings.json. Set it to 0 to hide tire compound data in Live Timing. Default value is 1.
- Added an option to show "Unofficial/Official" prefix for Race Results and Championship Standings. Check "Show "Unofficial/Official" prefix" championship option, then turn "Result is unofficial" checkbox on/off for every race on "Edit race" page as you need (default value for "Result is unofficial" is "On").
- Added "View standings" words from "Hosted competitions" page to languages\default.py file for translations.
- Added "Last race with result" and "Team standings" options for "Default page" in Championship.
- Added "Copy" button to race columns at Championship "Manage Teams" page to copy teams from previous race with one click.
- Added "Points for consistency" to Championships points system. Top N drivers from "Average deviation from drivers fastest lap" table will recieve this bonus.
- Added jsonp call at live/get_server_data_jsonp to get Live Timing server/driver data with cross-domain ajax request from your other server (may be used to create live servers/tracks/drivers widget). Data is updated once in 5 seconds, I do not recommend to request it more frequently.
Code:
$.ajax({ url: 'http://your-r2la-address:port/live/get_server_data_jsonp', type: 'GET', dataType: 'jsonp', crossDomain: true, data: {}, success: function (data, textStatus, xhr) { console.log(data); }, error: function (xhr, textStatus, errorThrown) { console.log(errorThrown); } });
Returned data object structure is:Code:server_names_list: ['Server Name1', 'Server Name2', ...], server_data: { "Server Name1": { session: session code (0=testday 1-4=practice 5-8=qual 9=warmup 10-13=race), track_name: "Track Name", vehicles: [ {best_lap_time: lap time in seconds, driver_name: "Driver Name1", vehicle_class: "Vehicle Class1", vehicle_name: "Vehicle Name1"}, { ... }, ]}, "Server Name2": { ... }, }