From bfb3309bc2793d99790e6eac380cb3017ade52f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Thu, 9 Jul 2026 11:13:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20~/.hermes=E8=B7=AF=E5=BE=84=E5=88=86?= =?UTF-8?q?=E8=A3=82=E5=AF=BC=E8=87=B4price=5Fmonitor=E5=86=B7=E5=8D=B4?= =?UTF-8?q?=E5=A4=B1=E6=95=88+=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/monitor_300308.py | 2 +- scripts/price_monitor.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/monitor_300308.py b/scripts/monitor_300308.py index 7971eda0..61aef242 100644 --- a/scripts/monitor_300308.py +++ b/scripts/monitor_300308.py @@ -22,7 +22,7 @@ BUY_QTY = 100 # 1手 STOP_LOSS = 1293.88 TAKE_PROFIT = 1456.53 -STATE_FILE = os.path.expanduser("~/.hermes/monitor_300308_state.json") +STATE_FILE = "/home/hmo/.hermes/monitor_300308_state.json" HERMES_SEND = ["hermes", "send", "--to", "xmpp:hmo@yoin.fun"] diff --git a/scripts/price_monitor.py b/scripts/price_monitor.py index f74363c8..a872e757 100644 --- a/scripts/price_monitor.py +++ b/scripts/price_monitor.py @@ -11,7 +11,7 @@ from datetime import datetime from mo_data import read_decisions BREACH_PATH = "/home/hmo/.hermes/zone_breach.json" -STATE_PATH = os.path.expanduser("~/.hermes/price_trigger_state.json") +STATE_PATH = "/home/hmo/.hermes/price_trigger_state.json" EVENTS_PATH = "/home/hmo/web-dashboard/data/price_events.json" # DB 模块(同步实时价到 mofin.db)