fix: remove hardcoded timezone and region names for portability

- Timezone now configurable (default America/Boise)
- Router prompt generates region name instructions from config
- Any operator can run MeshAI for their region without code changes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
zvx-echo6 2026-05-12 15:39:54 -06:00
commit c5f4dac8b6
4 changed files with 25 additions and 6 deletions

View file

@ -330,6 +330,7 @@ class MeshAI:
subscription_manager=self.subscription_manager,
config=mi,
db_path="/data/mesh_history.db",
timezone=self.config.timezone,
)
logger.info(f"Alert engine initialized (critical: {mi.critical_nodes}, channel: {mi.alert_channel})")
@ -574,7 +575,7 @@ class MeshAI:
from datetime import datetime
from zoneinfo import ZoneInfo
tz = ZoneInfo("America/Boise")
tz = ZoneInfo(self.config.timezone)
now = datetime.now(tz)
current_hhmm = now.strftime("%H%M")
current_day = now.strftime("%a").lower()