epgstation-slack-notification

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 13 Imported by: 0

README

epgstation-slack-notification

GitHub Actions Go CI Status

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL