diff --git a/docs/trem/miscellaneous/events_list.mdx b/docs/trem/miscellaneous/events_list.mdx index fea41d3..80a5015 100644 --- a/docs/trem/miscellaneous/events_list.mdx +++ b/docs/trem/miscellaneous/events_list.mdx @@ -9,9 +9,69 @@ sidebar_position: 1 ## 目錄 - onServerStartEvent +- EewRelease +- EewAlert +- RtsPga2 +- RtsPga1 +- RtsShindo2 +- RtsShindo1 +- RtsShindo0 +- ReportRelease +- IntensityRelease +- LpgmRelease +- TsunamiRelease +- EewNewAreaAlert ## onServerStartEvent #### 回傳參數 `pid` 當伺服器被啟動 + +## EewRelease + +當收到地震警報 + +## EewAlert + +當收到緊急地震警報 + +## RtsPga2 + +當 PGA > 200gal + +## RtsPga1 + +當 PGA > 8gal + +## RtsShindo2 + +當收到地震檢知 震度4級 + +## RtsShindo1 + +當收到地震檢知 震度2級 + +## RtsShindo0 + +當收到地震檢知 震度0級 + +## ReportRelease + +當收到地震報告 + +## IntensityRelease + +當收到震度速報 + +## LpgmRelease + +當收到長週期地震動資訊 + +## TsunamiRelease + +當收到海嘯警報 + +## EewNewAreaAlert + +當收到地震速報新區域 \ No newline at end of file diff --git a/docs/trem/plugin_dev/pack.mdx b/docs/trem/plugin_dev/pack.mdx index 8e560c6..7dcc5ca 100644 --- a/docs/trem/plugin_dev/pack.mdx +++ b/docs/trem/plugin_dev/pack.mdx @@ -18,4 +18,13 @@ example/ ## 方法 -將資料夾壓縮為 `擴充名稱.zip` 並將副檔名改為 `.trem` 得到 `擴充名稱.trem` 。 +建立 數位簽章 `signature.json` 檔案並打包成 `擴充名稱.trem` 檔案 + +``` +npx github:ExpTechTW/TREM-Plugin-Signer sign . && npx github:ExpTechTW/TREM-Plugin-Packer +``` + +:::warning +需要有數位簽章 `signature.json` 檔案,才能夠在 TREM-Lite 啟用擴充。 +::: +