pyracedash is an application for Project CARS and Project CARS 2 which displays in-game informations like RPM and speed. This application is intended to run on a Raspberry Pi with an LCD display and act as traditional car dashboard. Although it is intended to run on a Raspberry Pi, it is not restricted to use this application on a standard PC/laptop running Windows, Mac OSX or Linux. pyracedash is completely written in Python.
Note: Click image to see the video!
TODO: Add complete tutorial how to build video!
Project CARS REST API or CREST for short (ver. 1.0.2) should be running on host computer (the computer that runs the game) before the game is started, so that pyracedash can get informations from the host computer. To do this, you can simply download the REST API here, unzip it, then run CREST-1.0.2.exe before starting the game.
The host computer and the computer that runs pyracedash should be connected via network (LAN cable, or WiFi, direct connection or through router).
TODO
- Install Python. You can download it here. Check "Add Python to PATH" on installation. Reboot after install.
- Download pyracedash, unzip it.
- Open Terminal/Command Prompt, change directory to the unzipped pyracedash folder.
- Run this command:
pip install -r requirements.txt
- Configure pyracedash (see Configuration section).
- Run it (double-click pyracedash.py)!
To configure pyracedash, you can open and edit conf.ini located along with pyracedash.py. This is the sample of conf.ini:
[global]
X_RES = 800
Y_RES = 480
TITLE = "Kuat Hadianto's pyracedash"
FPS = 60
FULLSCREEN = 0
THEME = Fallback
[host]
IP_ADDRESS = 127.0.0.1
PORT = 8080
- X_RES: Length screen resolution.
- Y_RES: Width screen resolution.
- TITLE: Application Title.
- FPS: Frames Per Second. More FPS make it more responsive, but also make CPU works harder.
- FULLSCREEN: 1 to enable it, 0 to disable.
- THEME: Theme name that want to use. Default is Fallback. If theme is not found, it will choose Fallback. More themes comes later.
- IP_ADDRESS: IP address of host computer (computer that runs the game).
- PORT: Port which CREST use. DO NOT CHANGE IT!
For more info, questions, suggestions or feature requests, please contact me via twitter at: @kuathadianto
Enjoy! 😄