pi-antigravity-rotator 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ import { isTelemetryEnabled } from "./telemetry.js";
13
13
  const notifLogger = logger.child("notifications");
14
14
 
15
15
  // Same base URL as telemetry endpoint (just different path)
16
- const DEFAULT_TELEMETRY_BASE = "https://telemetry.dragont.ec:3800";
16
+ const DEFAULT_TELEMETRY_BASE = "http://telemetry.dragont.ec:3800";
17
17
  const TELEMETRY_BASE = process.env.PI_ROTATOR_TELEMETRY_URL?.trim()
18
18
  ? new URL(process.env.PI_ROTATOR_TELEMETRY_URL).origin
19
19
  : DEFAULT_TELEMETRY_BASE;
package/src/telemetry.ts CHANGED
@@ -27,7 +27,7 @@ const telemetryLogger = logger.child("telemetry");
27
27
  // Update this URL to your VPS before publishing to npm.
28
28
  // Can be overridden via PI_ROTATOR_TELEMETRY_URL.
29
29
  // HTTPS is preferred to avoid leaking the operator's IP in plaintext.
30
- const DEFAULT_TELEMETRY_ENDPOINT = "https://telemetry.dragont.ec:3800/v1/events";
30
+ const DEFAULT_TELEMETRY_ENDPOINT = "http://telemetry.dragont.ec:3800/v1/events";
31
31
  const TELEMETRY_ENDPOINT = process.env.PI_ROTATOR_TELEMETRY_URL?.trim() || DEFAULT_TELEMETRY_ENDPOINT;
32
32
 
33
33
  const HEARTBEAT_INTERVAL_MS = 1 * 60 * 60 * 1000; // 1 hour