Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions content/wardrive.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ const MESHMAPPER_CAPACITY_CHECK_URL = "https://yow.meshmapper.net/capacitycheck.
const MESHMAPPER_API_KEY = "59C7754DABDF5C11CA5F5D8368F89";
const MESHMAPPER_DEFAULT_WHO = "GOME-WarDriver"; // Default identifier

// Static for now; will be made dynamic later.
const WARDIVE_IATA_CODE = "YOW";

// ---- App Version Configuration ----
// This constant is injected by GitHub Actions during build/deploy
// For release builds: Contains the release version (e.g., "v1.3.0")
Expand Down Expand Up @@ -1120,10 +1123,11 @@ async function postToMeshMapperAPI(lat, lon, heardRepeats) {
power: getCurrentPowerSetting() || "N/A",
heard_repeats: heardRepeats,
ver: APP_VERSION,
test: 0
test: 0,
iata: WARDIVE_IATA_CODE
};

debugLog(`Posting to MeshMapper API: lat=${lat.toFixed(5)}, lon=${lon.toFixed(5)}, who=${payload.who}, power=${payload.power}, heard_repeats=${heardRepeats}, ver=${payload.ver}`);
debugLog(`Posting to MeshMapper API: lat=${lat.toFixed(5)}, lon=${lon.toFixed(5)}, who=${payload.who}, power=${payload.power}, heard_repeats=${heardRepeats}, ver=${payload.ver}, iata=${payload.iata}`);

const response = await fetch(MESHMAPPER_API_URL, {
method: "POST",
Expand Down