Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Web API for Assetto Corsa server

Notifications You must be signed in to change notification settings

rickselby/ac-server-interface

Repository files navigation

Assetto Corsa Server Client

PHP 7.0+ Build Status SensioLabs Insight Code Coverage

This is the client app that goes with... a master app to control a number of clients. To be created.

It's a web interface to control an assetto corsa server.

Requirements

  • PHP, apache/nginx/whatever takes your fancy
  • A cron job set up
    • * * * * * /path/to/artisan schedule:run >> /dev/null 2>&1

.env

  • AC_SERVER_SCRIPT= Path to a copy of this script
    • The web user must be able to execute this script
      • Personally I set up a line in sudoers:
      • www-data ALL=(steam) NOPASSWD: /path/to/assetto-server.sh
  • AC_SERVER_ROOT= Path to AC server root
    • The web user must be able to write to the config files
  • MASTER_SERVER_URL= URL to an API willing to accept POSTed results
  • MASTER_IP= IP of the machine that is allowed to make requests to this API

API

All end points expect JSON and return JSON

  • GET ping
    • returns ['success' => true]
  • PUT config/server
    • expects ['content' => '']
    • returns ['updated' => bool]
  • PUT config/entry-list
    • expects ['content' => '']
    • returns ['updated' => bool]
  • PUT start
    • returns ['success' => bool]
  • PUT stop
    • returns ['success' => bool]
  • GET running
    • returns ['running' => bool]
  • GET results/latest
    • returns ['results' => string]
  • GET results/all
    • returns ['filename' => string, 'filename' => string...]
  • GET log/server
    • returns ['log' => string]
  • GET log/system
    • returns ['filename' => string, 'filename' => string...]

About

Web API for Assetto Corsa server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages