Skip to content

yt4687/EPGS-to-Discord

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EPGS-to-Discord

Mirakurun を使用した録画管理ソフト EPGStation のログを Webhook を使用して Discord上に通知するスクリプトです。 advancedbear氏の作成されたもの に微少の説明の追加, メッセージの変更のみ行ったものです。

nekonoyun氏が変更を加えたものにさらに変更を加えてあります。

Installation

EPGS-to-Discord 側の設定

$ cd <任意のディレクトリ>
$ git clone https://github.com/yuun-dev/EPGS-to-Discord.git
$ cd EPGS-to-Discord
$ npm install
$ cp config.json.sample config.json
$ vi config.json

"host" : EPGStation を実行しているホストのアドレス
"basicId" , "basicPass" : Basic認証を設定している場合はその事項
"webhookURL" : デスクトップ版Discordより取得できるWebhook URLを記述

Mirakurun, EPGStation のポートなどをデフォルトからを変更している場合

↓を編集

$ vi config.json

Mirakurunのポートを変更している場合 mirakurun_host40772 を適宜変更
EPGStationのポートを変更している場合 epgstation_host8888 を適宜変更
EPGStationをサブディレクトリで運用している場合 epgstation_hostの / 以降に hoge/ をなどを追加してください

EPGStationを hoge 以下で運用している場合
"epgstation_host":"127.0.0.1:8888/hoge/"

EPGStation 側の設定

変更対象は EPGS-to-Discord ではなく EPGStation の config.json なので注意

$ vi <EPGStationのディレクトリ>/config/config.json

ここに

"isEnabledDropCheck": true,
"reserveNewAddtionCommand": "/usr/bin/node <EPGS-to-Discordのディレクトリ>/index.js reserve",
"recordingStartCommand": "/usr/bin/node <EPGS-to-Discordのディレクトリ>/index.js start",
"recordingFinishCommand":"/usr/bin/node <EPGS-to-Discordのディレクトリ>/index.js end",

Windowsの場合(C:\TV に nodejs をインストールした場合)

"isEnabledDropCheck": true,
"reserveNewAddtionCommand": "C:\TV\nodejs\node.exe <EPGS-to-Discordのディレクトリ>/index.js reserve",
"recordingStartCommand": "C:\TV\nodejs\node.exe <EPGS-to-Discordのディレクトリ>/index.js start",
"recordingFinishCommand":"C:\TV\nodejs\node.exe <EPGS-to-Discordのディレクトリ>/index.js end",

を追記。
あとは念のため pm2 restart EPGStation 等してリロードさせてください。

Demo

demo-pic01

About

Post information of EPGStation to Discord channel.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%