開啟DSM docker套件/open DSM docker
-
搜尋/search kfgithub
-
下載/download synlogy_line_notify
- 下載完成後/download finish
部屬容器/Deployment continer
- CPU 低/low RAM 128MB
- 啟用自動重啟/auto restart
- port設定/port forwaring
到這個網站 LINE Notify 登入/Login
- 點擊發行權杖/ Generate token
- 填入通知顯示的名稱與選擇要通知的群組
- Please enter a token name to be displayed before each notification.Select a chat to send notifications to.
- 複製產生出來的token/copy the token
- If you leave this page, you will not be able to view your newly generated token again. Please copy the token before leaving this page.
- 進入控制台/click ControlPanel
- 進入通知設定/click Notifications
- 點擊通知服務/click pushSettingTab
- 點擊管理 Webhook/click "Control Webhook"
- 點擊新增/click New
- 選自定 / click custom
- 規則:All / Rule click All
- 填寫一個名稱/ write a name
- Webhook網址填入 http://127.0.0.1:[docker設定的port]/
- Webhook url : http://127.0.0.1:[docker port]/
- 新增HTTP標頭/add http header
- 參數/option:Authorization
- 值/value:Bearer [line token]
- PS.值Bearer與token中間有個空格
- PS.Bearer and token have a space in middle
- 新增參數
- 參數/option:message
- 值/value:@@TEXT@@
-完成後可以點擊發送測試通知 / send test Notifications after finish setting