Spaces:
Sleeping
Sleeping
Update config.py
Browse files
config.py
CHANGED
|
@@ -28,8 +28,9 @@ STATIC_DIR = os.getenv("STATIC_DIR", os.path.join(tempfile.gettempdir(), "static
|
|
| 28 |
os.makedirs(STATIC_DIR, exist_ok=True)
|
| 29 |
|
| 30 |
# --- API 端點與金鑰 ---
|
| 31 |
-
|
| 32 |
CWA_ALARM_API = "https://app-2.cwa.gov.tw/api/v1/earthquake/alarm/list"
|
|
|
|
| 33 |
USGS_API_BASE_URL = "https://earthquake.usgs.gov/fdsnws/event/1/query"
|
| 34 |
|
| 35 |
# --- AI 模型設定 ---
|
|
|
|
| 28 |
os.makedirs(STATIC_DIR, exist_ok=True)
|
| 29 |
|
| 30 |
# --- API 端點與金鑰 ---
|
| 31 |
+
CWA_API_KEY = os.getenv("CWA_API_KEY") # [修改] 統一 CWA 金鑰名稱
|
| 32 |
CWA_ALARM_API = "https://app-2.cwa.gov.tw/api/v1/earthquake/alarm/list"
|
| 33 |
+
CWA_SIGNIFICANT_API = "https://opendata.cwa.gov.tw/api/v1/rest/datastore/E-A0015-001" # [新增] 顯著有感地震 API
|
| 34 |
USGS_API_BASE_URL = "https://earthquake.usgs.gov/fdsnws/event/1/query"
|
| 35 |
|
| 36 |
# --- AI 模型設定 ---
|