mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-06-11 01:14:45 +02:00
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:
parent
2255ca5803
commit
c5f4dac8b6
4 changed files with 25 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue