epgstation-slack-notification
EPGStation の通知を Slack に送るコマンドラインツール
設定
設定ファイルを作成
epgstation-slack-config.example.yml
ファイルの中身を epgstation-slack-config.yml
コピーして Slack の API キーとチャンネル名を書き込む.
epgstation-slack-config.yml
ファイルは epgstation-slack-notification
のバイナリと同じ場所に配置する.
$ wget -O epgstation-slack-config.yml https://raw.githubusercontent.com/hiroxto/epgstation-slack-notification/master/epgstation-slack-config.example.yml
コマンドをセットする
EPGStation の config.json
にコマンドをセットする.
{
"reservationAddedCommand": "/path/to/epgstation-slack-notification reservation-added",
"recordedPreStartCommand": "/path/to/epgstation-slack-notification recorded-pre-start",
"recordedPrepRecFailedCommand": "/path/to/epgstation-slack-notification recorded-prep-rec-failed",
"recordedStartCommand": "/path/to/epgstation-slack-notification recorded-start",
"recordedEndCommand": "/path/to/epgstation-slack-notification recorded-end",
"recordedFailedCommand": "/path/to/epgstation-slack-notification recorded-failed"
}
EPGStation を再起動
設定をした後, EPGStation を再起動する
$ pm2 restart epgstation
Licence
MIT Licence