Repository navigation
Windows Agent
Use the Node agent when MSFS/FSX and the msfslogger server run on different machines. It connects to SimConnect locally on the Windows simulator PC and pushes telemetry to the server. Remote SimConnect over TCP is not supported.
Copy or clone the repository on the simulator PC, then open PowerShell:
cd agent
npm install
$env:SERVER_URL = "https://<server-address>:3000"
$env:INGEST_TOKEN = "<same value as the server>"
npm start -- --sim 2024The simulator must already be running. Use the server machine's LAN address,
not localhost.
| Simulator |
--sim value |
SimConnect protocol |
|---|---|---|
| MSFS 2020 |
2020 (default) |
KittyHawk |
| MSFS 2024 | 2024 |
SunRise |
| FSX | fsx |
FSX SP2 |
A mismatched protocol causes the SimConnect handshake to fail.
| Variable | Purpose |
|---|---|
SERVER_URL |
Base URL of the msfslogger server |
INGEST_TOKEN |
Must match the server token |
NODE_EXTRA_CA_CERTS |
Custom CA or self-signed server certificate to trust |
TRAFFIC_ENABLED |
Disable traffic collection with 0, false, off, or no
|
TRAFFIC_RADIUS_M |
Override the default 40 km radius (clamped to 1–200 km) |
The complete variable list is maintained in the agent README.
For a certificate signed by a public or machine-trusted CA, use the HTTPS URL normally. For a private or self-signed certificate:
$env:SERVER_URL = "https://<server-address>:3000"
$env:NODE_EXTRA_CA_CERTS = "C:\path\to\msfslogger-cert.pem"
npm start -- --sim 2024Do not disable TLS verification.
The agent reports simulator pause state, but recorded duration is ultimately derived from track samples rather than wall-clock time. Active Pause, ordinary pause, menus, slew mode, frozen simulation, and agent interruptions are therefore excluded from logged flight time.
Every two seconds, the agent requests nearby AI/multiplayer aircraft within 40 km (about 21.6 NM). Parked aircraft are filtered; taxiing and airborne traffic are sent. The server keeps at most the 100 closest objects.
Traffic is memory-only. It is never written to flights.db, flight tracks,
or exports, and it expires after ten seconds without a fresh batch.
Use Task Scheduler to start PowerShell or a wrapper script at login, with the working directory set to the agent folder and the required variables defined. Test the exact command interactively first. See the agent README for an example.
The FMC-styled Tauri client is an in-development replacement for this CLI agent. Until it is proven out, the Node agent is the supported connection. Build and migration notes are in the desktop client README.