A telegram bot to alarm there is a fire in Tainan. https://t.me/tainanfire
  • Go 98.8%
  • Dockerfile 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
SimbaFs b7a783fb6f
All checks were successful
Build and publish image / build-and-push (push) Successful in 17s
add action to auto trigger manifest update
2026-10-03 21:37:10 +08:00
.forgejo/workflows add action to auto trigger manifest update 2026-10-03 21:37:10 +08:00
diff refactor to improve code structure 2026-06-27 00:20:44 +08:00
event fix list join 2026-06-27 18:49:34 +08:00
fetch fix timezone 2026-06-27 12:57:58 +08:00
render update time format 2026-06-30 14:57:58 +08:00
telegram update time format 2026-06-30 14:57:58 +08:00
.dockerignore docker-compose.yml 2024-11-28 02:20:10 +08:00
.gitignore add .env to gitignore 2026-09-17 22:30:15 +08:00
AGENTS.md update AGENTS.md 2026-06-27 00:12:49 +08:00
compose.yaml fix compose.yaml 2026-09-17 22:32:40 +08:00
config.go support 屏東 2026-06-27 02:45:32 +08:00
Dockerfile update docker base image version 2026-06-27 01:20:27 +08:00
env.go seperate new/updated events 2024-12-06 02:08:09 +08:00
example.env update compose.yaml 2026-09-17 22:25:33 +08:00
go.mod config file -> env 2026-06-27 01:11:14 +08:00
go.sum config file -> env 2026-06-27 01:11:14 +08:00
main.go print source when fetch error 2026-06-27 09:52:34 +08:00
PLAN.md add plan to support more county 2026-06-27 02:09:22 +08:00
README.md add README.md 2026-06-28 13:12:38 +08:00

tainanfire

監控多縣市消防局案件頁面,比對前後差異,透過 Telegram Rich Messages (Bot API 10.1) 廣播變更。

執行

export API_KEY="your_telegram_bot_token"
go run .

無 API_KEY 時,LocalBot 會輸出到 stdout。透過環境變數 {PREFIX}_CHAT 啟用各縣市,例如 TAINAN_CHAT=-123456;或設定 ALL_CHAT 讓所有縣市共用同一個聊天室。

支援縣市

縣市 時間 案類 案別 發生地點 派遣分隊 執行狀況 編號 格式
臺南 O O O O O O O DTS HTML
高雄 O O O O O O - DTS HTML
新竹 O O O O O O - DTS HTML
苗栗 O O O O O O - DTS HTML
雲林 O O O O O O - DTS HTML
臺中 O O O O O O - ASP HTML
彰化 O O O O O O - ASP HTML
桃園 O O O O O O - 桃園專用
新北 - O - O O - O JSON API
嘉義縣 O (民國) O O O O O - 嘉義專用
屏東 O O - O O O - 屏東專用
  • O 表示該欄位存在,- 表示該來源不提供此欄位
  • 嘉義縣使用民國年格式(如 115-06-27),會自動轉換為西元年
  • 新北的時間欄位來自 JSON API 不提供

License

MIT