Skip to content
denimchickensoftPublic

About

Web-based situational awareness map for Falcon BMS campaigns

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

SITREP

SITREP is a web-based situational awareness map for Falcon BMS campaigns. It reads campaign data produced by CamReader and displays it on an interactive theater map, with support for unit-based fog of war, multi-player token access, weather visualization, and campaign event tracking.


Screenshots

Theater Overview

Flights, ground units, naval units, and SAM threat rings (long/medium/short range, filterable by coalition), all on the theater map.

Theater overview with units and threat rings

Flight Selection & Routes

Clicking a flight shows its full waypoint route and details (mission, aircraft type, TOT, current waypoint) as of the last campaign data refresh, in the info panel.

Selected flight with route line and info panel

Ground Units

Ground units render as their own layer, independent of air and naval units. Selecting one shows owner, alliance, supply, morale, and fatigue.

Ground units layer Selected ground unit info panel

Objectives & Auto-Generated METAR

26 filterable objective types (airbases, SAM sites, depots, cities, and more). Selecting an airfield generates a METAR string on the fly, computed from the weather grid at that location, alongside supply/fuel logistics.

Objective type filter panel Selected airbase with METAR

Weather Layers

Six independent overlays generated from BMS .fmap weather data, scrubbable across a 24-hour window: Radar, Satellite, Flight Category, Winds, Turbulence, and Icing.

Radar weather layer Satellite weather layer
Winds weather layer Flight category weather layer

Event Ticker

An INTEL feed cycles through campaign events (kills, engagements, base captures) at the bottom of the screen, with a pulsing star marking each event's location on the map as it comes up.

Event ticker with pulsing map marker

Fog of War

Server-side FOW filtering by token — a restricted token only sees friendly units plus whatever friendly forces have spotted. Same campaign moment, god-mode vs. a restricted token (note the FOW ON/FOW OFF badge, and the fewer visible units near the northern border):

God-mode view, all units visible FOW-restricted token view

Requirements

  • Node.js (v18 or later recommended)
  • CamReader, built and configured (a separate companion project — it produces the campaign_state.json file SITREP reads). Set that up first; see its own README. SITREP's default settings assume CamReader lives in a sibling folder next to SITREP's own folder (../CamReader/bin/Debug/net472/CamReader.exe) — adjust camReaderPath if your layout differs.
  • Falcon BMS 4.38 installation (for weather data and map images)

Setup

First Time

  1. Set up CamReader first (build it, configure camreader_settings.json, and confirm a single manual run produces a valid campaign_state.json — see CamReader's README). SITREP has nothing to display without this.
  2. Extract the SITREP folder to a location of your choice
  3. Open a terminal in that folder
  4. Run npm install to install dependencies
  5. Run npm run build to build the frontend (creates the dist/ folder that server.js serves — this is required, SITREP won't run without it)
  6. Run node server.js once — if sitrep_settings.json doesn't exist yet, it will be created with default values, and the server will start using them
  7. Stop the server (Ctrl+C) and edit sitrep_settings.json — minimally required settings:
    • bmsInstallPath — root of your Falcon BMS install (needed for weather data)
    • camReaderPath — full path to CamReader.exe, or campaignStatePath pointed directly at CamReader's output campaign_state.json if you'd rather manage CamReader runs yourself
    • At least one of staticCampaignFile or periodicSaveFile, if you want SITREP to invoke CamReader automatically on a schedule (see CamReader Integration below) — otherwise you'll need to run CamReader yourself each time you want fresh data
  8. Place theater map images in the maps/ folder (optional — without them the map area is just blank; see Map Images)
  9. Run node server.js to start the server
  10. Open a browser to http://localhost:3000

Every Subsequent Time

  1. Run node server.js in the SITREP folder
  2. Open http://localhost:3000 in a browser

Running in the Background

To keep SITREP running without a terminal window, install pm2:

npm install -g pm2
pm2 start server.js
pm2 save
pm2 startup

pm2 startup will print a command to run that configures SITREP to start automatically on system boot.


Settings Reference (sitrep_settings.json)

BMS Installation

Setting Description
bmsInstallPath Root folder of your Falcon BMS installation. e.g. C:\Falcon BMS 4.38. Used to locate weather data.

CamReader Integration

SITREP can invoke CamReader automatically on a polling schedule to keep campaign data current. Configure one of the two file source options below.

Setting Default Description
camReaderPath "../CamReader/bin/Debug/net472/CamReader.exe" Full path to CamReader.exe. Required to enable automatic polling. The default assumes CamReader lives in a sibling folder next to SITREP — adjust if your layout differs.
staticCampaignFile "" Full path to a specific .cam file. CamReader will always parse this exact file. Takes precedence over periodicSaveFile if both are set.
periodicSaveFile "" Path to any one of the campaign's periodic save files (e.g. ...Campaigns\Korea Day 1 09 00 00.cam). SITREP extracts the prefix and timestamp scheme from this filename, then automatically finds and passes the most recent matching save to CamReader at each polling interval.
verboseMode false When true, CamReader's full console output is forwarded to the SITREP server log. When false, only essential status lines are shown.
collocatedWeather false When true, weather .fmap files are read from the same folder as periodicSaveFile using the same naming convention (e.g. Korea Day 1 09 00 00.fmap), instead of the default WeatherMapsUpdates folder. Requires periodicSaveFile to be set.

Campaign Data Path

Setting Default Description
campaignStatePath "" Path to campaign_state.json produced by CamReader. If left empty, SITREP looks for campaign_state.json in the same folder as CamReader.exe. Only set this if you need to override that default.

Server

Setting Default Description
port 3000 Port the server listens on.
host "127.0.0.1" Host address to bind to. Use "127.0.0.1" for local access only. Use "0.0.0.0" to accept connections from other machines on the network.
rateLimitWindowMinutes 1 Time window for rate limiting, in minutes.
rateLimitMaxRequests 60 Maximum number of API requests allowed per client per rate limit window.
pollingIntervalMinutes 30 How often (in minutes) SITREP invokes CamReader to refresh campaign data. Also controls how often the browser client refreshes its display. Changes take effect after the current polling cycle completes — no restart required.

Token Authentication

Tokens restrict access to the server and optionally tie each user to a specific team's fog of war perspective.

"tokens": {
    "mytoken": { "teamId": 1, "god": false }
}
Field Description
teamId The team ID this token represents. The client sees the campaign from this team's perspective (FOW filtering applied). Obtain the team number from campaign_state.json.
god If true, the token grants full visibility of all units and objectives regardless of FOW.

If tokens is empty or omitted entirely, the server is open — anyone can access it without a token.

Sharing access: append ?token=yourtoken to the URL, e.g. http://yourserver:3000?token=mytoken. Treat token URLs like passwords — share only with intended recipients.

API access: requests to the API directly (rather than through a browser link) can instead pass the token via an x-sitrep-token header.

Fog of War: When a non-god token is used, the server filters the campaign data before sending it to the client. Only units visible to the token's team (friendly units + units spotted by friendly forces) are included in the response.

Fog of War Objective Blacklist

"fowObjectiveTypeBlacklist": ["SAM / AAA Site", "SAM Site (Dedicated)", "Radar Site"]

Objective types in this list are hidden from non-god clients regardless of FOW state. When a type is added to the blacklist, any client that had that layer enabled will automatically deselect it on their next refresh.

Valid objective types: Airbase, Airstrip, Army Base, Headquarters, Bridge, SAM / AAA Site, SAM Site (Dedicated), Radar Site, Depot, Refinery, Factory, Chemical Plant, Nuclear Plant, Port, Power / Dam, City, Town, Village, Intersection, Misc, Special, Nav Beacon, Radio Tower, Range, Border, Fortification, Mountain Pass


Map Images

SITREP serves theater map images from the maps/ folder. The filename must match the theater name in lowercase with a .png extension.

Theater Filename
Korea korea.png
Israel israel.png
Balkans balkans.png

If a map image is not found for the current theater, the map area will be blank.

The filename must match the theater name exactly as it's stored in the campaign's .cam save file (lowercased) — this is what SITREP requests from the server, not a name you choose yourself. This is normally the same as the theater's "Add-On [theater]" folder name under Data\.

Sourcing Map Images

Falcon BMS ships full-theater map images with each install. Copy the one for your theater into maps/ and rename it to match the table above:

  • Korea: Falcon BMS 4.38\Docs\05 Maps for Korea
  • Add-on theaters (Israel, Balkans, etc.): Falcon BMS 4.38\Data\Add-On [theater]\Docs\02 Maps for add-on theaters

Custom Map (per client)

Each browser client can load their own custom map image via the CUSTOM MAP section in the Layers panel (under TOOLS). The image is stored in the browser's IndexedDB and persists across sessions. Custom maps are stored per-theater — switching theaters automatically switches to the server's map for the new theater (or that theater's previously stored custom map). Click Revert to remove the custom map and return to the server-provided image.

There is no practical size limit on custom map images when using IndexedDB.


Error Logging

Server errors are appended to sitrep_errors.txt in the SITREP folder. Each server session is separated by a timestamped header. The file accumulates across sessions — delete it at any time to start fresh.


External Access / HTTPS

By default SITREP binds to 127.0.0.1 (local machine only). To allow access from other machines:

  1. Set "host": "0.0.0.0" in sitrep_settings.json
  2. Open the configured port in your firewall/router

For external internet access over HTTPS, use Caddy as a reverse proxy. Caddy handles TLS certificate provisioning automatically:

  1. Install Caddy
  2. Create a Caddyfile:
    your.domain.com {
        reverse_proxy localhost:3000
    }
    
  3. Run caddy run

Caddy will automatically obtain and renew a certificate for your domain. You will need a domain name pointed at your public IP (or a dynamic DNS service) and ports 80 and 443 open on your router.


Keyboard Shortcuts

Key Action
F Toggle flights layer
G Toggle ground units layer
N Toggle naval units layer
U Toggle all unit layers
A Toggle airbase layer
O Toggle all objective layers
R Toggle SAM threat rings
B Toggle bullseye display
M Switch ruler units (NM / km)
D Switch coordinate format (DDM / DMS)
L Select line drawing tool
C Select circle drawing tool
P Select polygon drawing tool
T Select text annotation tool
X Select eraser tool

Periodic Save File Naming

When using periodicSaveFile, SITREP parses the filename to extract a prefix and timestamp. The format is flexible — any delimiter (space, dash, underscore) between fields is accepted, and fused tokens like Day06 are handled correctly.

Supported formats:

Korea Day 1 09 00 00.cam
Korea-Day-1-09-00-00.cam
Korea_Day_1_09_00_00.cam
v480 Day06 02-08-39.cam
Save Day 2 13 25 15.cam

The last four consecutive numeric fields are always interpreted as day hour minute second. Everything before them is the prefix. At each polling interval, SITREP scans the same folder for files matching [prefix]*.cam and passes the one with the most recent timestamp to CamReader.


Weather

Weather visualization requires .fmap files from BMS. These are located in:

<BmsInstallPath>\Data\Campaign\WeatherMapsUpdates\          (Korea)
<BmsInstallPath>\Data\Add-On <Theater>\Campaign\WeatherMapsUpdates\    (other theaters)

If collocatedWeather is enabled, .fmap files are read from the same folder as periodicSaveFile instead, using the same naming convention as the campaign saves.

Available weather layers:

  • Radar — simulated radar coverage
  • Satellite — cloud coverage
  • Flight Category — VFR/MVFR/IFR/LIFR at objective locations
  • Winds — wind barbs at selectable altitude layers
  • Turbulence — turbulence intensity by cell at selectable altitude layers
  • Icing — icing conditions by cell

The weather timeline bar at the bottom of the screen shows available forecast steps and allows scrubbing through time.

About

Web-based situational awareness map for Falcon BMS campaigns

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages