Resource icon

ferito-serverPlugin 0.5.7.0

Login or Register an account to download this content
0.5.7.0
fixes incorrect results from abandoned/joined drivers during race
0.5.4.0
Compatibility with 1.2.5 acServer protocol.
Added numberOfDrivers to the generated JSON at root object level.
0.5.2.0
Added sessionServerName on the xml settings. This value will be included on the JSON object on the serverName property. This is intended to allow identify multiple AC servers that sends data to the same jsonDestinationURL server.

JSON includes now a drivers list of driver objects. The driver object contains the list of laps of the driver. This may replace the existing laps list and result list on the root object. Still undecided what would be the best JSON structure. The driver object includes
ballastKG, bestLap, totalTime and totalCuts (independent of number of wheels out)

JSON qual
Code:
{
  "type": "Qualify",
  "trackName": "silverstone-national",
  "trackConfig": "",
  "serverName": "FeritoServer",
  "numberOfLaps": 0,
  "timestamp": "2015-08-04-18-13-00",
  "time": 5,
  "waitTime": 0,
  "weatherGraphics": "3_clear",
  "ambientTemp": 18,
  "roadTemp": 26,
  "laps": [
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 71131,
  "cuts": 0,
  "number": 1,
  "gripLevel": 0.912555337,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 63353,
  "cuts": 1,
  "number": 1,
  "gripLevel": 0.9225553,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 62172,
  "cuts": 0,
  "number": 2,
  "gripLevel": 0.9325553,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 73770,
  "cuts": 1,
  "number": 2,
  "gripLevel": 0.942555368,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 61976,
  "cuts": 0,
  "number": 3,
  "gripLevel": 0.952555358,
  "carPosition": 1
  }
  ],
  "contactEvents": [],
  "results": [
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "laps": 3,
  "position": 1
  }
  ],
  "drivers": [
  {
  "guid": "76561197991799861",
  "name": "Fernando Deutsch",
  "bestTime": 61976,
  "totalTime": 332402,
  "totalCuts": 2,
  "position": 1,
  "numberOfLaps": 5,
  "ballastKG": 0,
  "carModel": "lotus_evora_gtc",
  "laps": [
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 71131,
  "cuts": 0,
  "number": 1,
  "gripLevel": 0.912555337,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 63353,
  "cuts": 1,
  "number": 1,
  "gripLevel": 0.9225553,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 62172,
  "cuts": 0,
  "number": 2,
  "gripLevel": 0.9325553,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 73770,
  "cuts": 1,
  "number": 2,
  "gripLevel": 0.942555368,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 61976,
  "cuts": 0,
  "number": 3,
  "gripLevel": 0.952555358,
  "carPosition": 1
  }
  ]
  }
  ]
}

JSON race
Code:
{
  "type": "Race",
  "trackName": "silverstone-national",
  "trackConfig": "",
  "serverName": "FeritoServer",
  "numberOfLaps": 3,
  "timestamp": "2015-08-04-18-17-21",
  "time": 0,
  "waitTime": 60000,
  "weatherGraphics": "3_clear",
  "ambientTemp": 20,
  "roadTemp": 29,
  "laps": [
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 68916,
  "cuts": 0,
  "number": 1,
  "gripLevel": 0.9300197,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 61872,
  "cuts": 0,
  "number": 2,
  "gripLevel": 0.940019667,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 61232,
  "cuts": 0,
  "number": 3,
  "gripLevel": 0.950019658,
  "carPosition": 1
  }
  ],
  "contactEvents": [],
  "results": [
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "laps": 3,
  "position": 1
  }
  ],
  "drivers": [
  {
  "guid": "76561197991799861",
  "name": "Fernando Deutsch",
  "bestTime": 61232,
  "totalTime": 192020,
  "totalCuts": 0,
  "position": 1,
  "numberOfLaps": 3,
  "ballastKG": 0,
  "carModel": "lotus_evora_gtc",
  "laps": [
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 68916,
  "cuts": 0,
  "number": 1,
  "gripLevel": 0.9300197,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 61872,
  "cuts": 0,
  "number": 2,
  "gripLevel": 0.940019667,
  "carPosition": 1
  },
  {
  "carId": 0,
  "driverGUID": "76561197991799861",
  "driverName": "Fernando Deutsch",
  "time": 61232,
  "cuts": 0,
  "number": 3,
  "gripLevel": 0.950019658,
  "carPosition": 1
  }
  ]
  }
  ]
}
Top