PyGauge is a Python service (also available as a pre-built exe, see releases) and accompanying Arduino sketch to display DiRT Rally telemetry data (currently gear, speed, and rev lights) on the TM1638 LED module.
Additional information is available here: https://www.billiam.org/2015/07/02/dirt-rally-shift-light-tm1648-arduino/
Instructions assume that you have an Arduino connected via USB serial that you can upload sketches to, and that is hooked up to the TM1638 LED module.
- Download the latest gauge.zip file release
- Download the TM1638 library and place in your Arduino libraries directory.
- Download the arduino sketch, update the pin values for strobe, clock and data pins, and upload your sketch.
- Update your DiRT Rally hardware_settings_config (located in
<user>\Documents\My Games\DiRT Rally\hardwaresettings
, setting motion_platform > udfenabled
to true, andextradata
to 3.
<motion_platform>
...
<udp enabled="true" extradata="3" ip="127.0.0.1" port="20777" delay="1" />
</motion_platform>
- Update the
config.yml
file in the gauge.zip, setting the port and ip address to match your DiRT Rally information above, and the COM port your arduino is connected to. - Run
gauge.exe
and launch DiRT Rally. If everything's set up correctly, you should begin to see telemetry information when your stage begins.
Assuming you're running in a git bash / cygwin / etc environment:
- Install python dependencies with
pip install -r requirements.txt
- Run
build.sh
This will build an exe and copy the config file in the dist
directory, and create a zip containing these files.