Skip to content

Commit fc6ccd2

Browse files
authored
Update MeshMapper API key in wardrive.js
Replaced placeholder API key with actual key.
1 parent d94dd27 commit fc6ccd2

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

content/wardrive.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,10 @@ const DEFAULT_INTERVAL_S = 30; // fallback if selector unavailab
1313
const PING_PREFIX = "@[MapperBot]";
1414
const GPS_FRESHNESS_BUFFER_MS = 5000; // Buffer time for GPS freshness checks
1515
const GPS_ACCURACY_THRESHOLD_M = 100; // Maximum acceptable GPS accuracy in meters
16-
const WARDROVE_KEY = new Uint8Array([
17-
0x40, 0x76, 0xC3, 0x15, 0xC1, 0xEF, 0x38, 0x5F,
18-
0xA9, 0x3F, 0x06, 0x60, 0x27, 0x32, 0x0F, 0xE5
19-
]);
2016

2117
// MeshMapper API Configuration
2218
const MESHMAPPER_API_URL = "https://yow.meshmapper.net/wardriving-api.php";
23-
// DO NOT EDIT: This placeholder is used to detect if the API key is configured
24-
const MESHMAPPER_API_KEY_PLACEHOLDER = "YOUR_API_KEY_HERE";
25-
// The API key is automatically injected from GitHub Secrets during deployment via config.js
26-
// You do NOT need to edit this file - just set MESHMAPPER_API_KEY in GitHub Secrets
27-
const MESHMAPPER_API_KEY = window.MESHMAPPER_API_KEY || MESHMAPPER_API_KEY_PLACEHOLDER;
19+
const MESHMAPPER_API_KEY = "59C7754DABDF5C11CA5F5D8368F89";
2820
const MESHMAPPER_DEFAULT_WHO = "GOME-WarDriver"; // Default identifier
2921

3022
// ---- DOM refs (from index.html; unchanged except the two new selectors) ----
@@ -357,11 +349,6 @@ function buildPayload(lat, lon) {
357349
// ---- MeshMapper API ----
358350
async function postToMeshMapperAPI(lat, lon) {
359351
try {
360-
// Skip if API key is placeholder (not configured)
361-
if (!MESHMAPPER_API_KEY || MESHMAPPER_API_KEY === MESHMAPPER_API_KEY_PLACEHOLDER) {
362-
console.log("MeshMapper API key not configured, skipping API post");
363-
return;
364-
}
365352

366353
// Get current power setting
367354
const power = getCurrentPowerSetting();

0 commit comments

Comments
 (0)