Skip to content

racemap/chronotrack-to-racemap-forwarder

Repository files navigation

chronotrack-to-racemap-forwarder

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

How to use

  1. Request the API token for your RACEMAP account, contact [email protected].
  2. Download the service to the computer on which the chronotrack timing software is running.
  3. Run the service with the API token as an environment variable.
  4. Configure your timing system to send data to the service.
  5. The service will forward your data to racemap.com.

How to run the service

I just want to use the service

You can download the latest binary for your platform from the here and run it with the following commands.

Windows

set RACEMAP_API_TOKEN=your-api-token
.\chronotrack-to-racemap-forwarder.exe

image

Linux

export RACEMAP_API_TOKEN=your-api-token
./chronotrack-to-racemap-forwarder

I know what I am doing

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

Possible settings

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published