Our forwarder service connects chronotrack timing systems with RACEMAP backend to forward the reads/ detections from the timing system to racemap.com. The service also manages the communication with the chronotrack software.
- opens a port, by default the running machine is 3000
- listens on localhost IP: 127.0.0.1
- RACEMAP API token is needed to forward data to racemap.com
- API token is set by using the environment var RACEMAP_API_TOKEN
- Request the API token for your RACEMAP account, contact [email protected].
- Download the service to the computer on which the chronotrack timing software is running.
- Run the service with the API token as an environment variable.
- Configure your timing system to send data to the service.
- The service will forward your data to racemap.com.
You can download the latest binary for your platform from the here and run it with the following commands.
- chronotrack-to-racemap-forwarder-win-x64-v1.0.0.exe
- chronotrack-to-racemap-forwarder-linux-x64-v1.0.0
set RACEMAP_API_TOKEN=your-api-token
.\chronotrack-to-racemap-forwarder.exe
export RACEMAP_API_TOKEN=your-api-token
./chronotrack-to-racemap-forwarder
You can checkout the repository and run the service with the following commands. (requires nodejs 18 and yarn 4 to be installed)
git clone [email protected]:racemap/chronotrack-to-racemap-forwarder.git
cd chronotrack-to-racemap-forwarder
yarn install
touch .env
sed -i '/^RACEMAP_API_TOKEN=/d' .env && echo "RACEMAP_API_TOKEN=your-api-token" >> .env
yarn start
You can change the defaults of the service by overriding the following environment variables
Variable | Default | Description |
---|---|---|
RACEMAP_API_TOKEN | '' | The API Token is required to send data to RACEMAP |
LISTEN_MODE | private | The mode the service listens on, can be private or public. private binds to 127.0.0.1 public binds to 0.0.0.0 |
LISTEN_PORT | 3000 | The port the service listens on |
RACEMAP_API_HOST | https://racemap.com | The host to send the requests to |