Skip to content

feat: event list #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions docs/trem/miscellaneous/events_list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

當收到地震速報新區域
11 changes: 10 additions & 1 deletion docs/trem/plugin_dev/pack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 啟用擴充。
:::