Battery alerts → testowy channel (ch2) — v0.13.1 #34

Merged
kamilkrzywda merged 1 commits from fix/battery-alert-channel into main 2026-09-25 15:04:12 +02:00
Owner

Owner request: battery-low alert messages go to "testowy" (channel index 2), not the pinned send channel (index 3).

  • New env BATTERY_ALERT_CHANNEL, default 2; read at construction like other service config
  • MeshService.sendText gains optional trailing channel arg, defaulting to MESH_SEND_CHANNEL — API/MCP/weather sends untouched
  • Threshold, cooldown, merged one-message-per-cycle format and @mentions unchanged

Tests: 80 passed / 0 failed (+1 env-override case; existing assertions now expect channel 2). Build + oxlint clean. Changelog v0.13.1 entry, package.json bumped (lockfile untouched per repo convention).

Owner request: battery-low alert messages go to "testowy" (channel index 2), not the pinned send channel (index 3). - New env `BATTERY_ALERT_CHANNEL`, default **2**; read at construction like other service config - `MeshService.sendText` gains optional trailing `channel` arg, defaulting to `MESH_SEND_CHANNEL` — API/MCP/weather sends untouched - Threshold, cooldown, merged one-message-per-cycle format and @mentions unchanged Tests: 80 passed / 0 failed (+1 env-override case; existing assertions now expect channel 2). Build + oxlint clean. Changelog v0.13.1 entry, package.json bumped (lockfile untouched per repo convention).
kamilkrzywda added 1 commit 2026-09-25 15:04:06 +02:00
Owner request. BatteryAlertService reads new env BATTERY_ALERT_CHANNEL
(default 2) at construction and passes it through MeshService.sendText,
which gains an optional trailing channel argument defaulting to the
pinned MESH_SEND_CHANNEL — every other sender is untouched. Threshold,
cooldown, merged one-message-per-cycle format and @mentions unchanged.
kamilkrzywda merged commit c0c069ef08 into main 2026-09-25 15:04:12 +02:00
kamilkrzywda deleted branch fix/battery-alert-channel 2026-09-25 15:04:12 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OpenCode/MeshBot#34