Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
特定の通知を無効にできるように. READMEだいたい書いた. ◡( ╹◡╹ )◡
- Loading branch information
Showing
5 changed files
with
75 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,41 @@ | ||
Boxnyaはマルチインプット, マルチアウトプットの汎用通知システムです. | ||
|
||
Python 2.6以上が必要です. Python 3はサポートしていません. | ||
|
||
#TODO : rstにする | ||
|
||
使い方 | ||
Python 2.6以上が必要です. Python 3.xはサポートしていません. | ||
|
||
Boxnyaとは | ||
=========== | ||
|
||
Boxnyaは, SNSなどのネット上の情報をあらゆる端末に通知することを目的としたシステムです. | ||
具体的には, Twitter等のふぁぼられ, リプライそしてGmailの新着通知などです. | ||
|
||
これらの機能は全てプラグインで実現されており, 指定されたフォルダにプラグインを入れて設定を書くだけで使うことができます. | ||
|
||
設定方法 | ||
settings.pyに設定を書きます. | ||
DAEMON = Trueなら, | ||
$ python boxnya.py start|stop|restar | ||
で起動終了などが制御できます. boxnyaはデーモンプロセスとなります. | ||
windowsの場合は使えないので, DAEMON = Falseにして, | ||
コマンドプロンプトで boxnya.pyを実行してください. | ||
使い方 | ||
=========== | ||
|
||
Boxnyaフォルダを任意のディレクトリに置いて, コマンドラインからBoxnya/src/boxnya.pyを起動します. | ||
|
||
プラグインは, Boxnya/src/lib/input, output, filterフォルダに入れ, 必要に応じて設定を書きます. | ||
|
||
設定 | ||
=========== | ||
|
||
Boxnya/src/settings.pyに設定を書きます. | ||
|
||
Boxnya/src/settings.py.example のを参照してください. | ||
|
||
プラグインの役割 | ||
=========== | ||
|
||
* Inputプラグイン | ||
|
||
ネット等から情報を取得してきます. twitterの場合userstreamを読み続けます. | ||
|
||
続きはあとでかく. | ||
* Filterプラグイン | ||
|
||
プラグイン開発者向け | ||
Inputから受け取った情報をフィルタリングします. | ||
twitterで複数アカウントを運用する場合などはまとめてフィルタリングすることができます. | ||
|
||
Boxnyaでは入力, フィルター, 出力の順に情報を処理してim.kayac.com, Google Talkなどに通知を行います. | ||
全ての入出力とフィルターはプラグイン方式で実現されており, 入出力関係も任意のつなぎ方をすることが可能です. | ||
例えばTwitterの情報をim.kayac.comを通してGoogle Talkに通知する流れとしては以下のようになります. | ||
入力のTwitterプラグインでuserstreamを受け取る -> 適切なフィルタを通す -> im.kayac.comの出力プラグイン | ||
各プラグインは, 対応するinput, filter, outputのディレクトリに格納し, それぞれの設定をsettings.pyに書くだけで使えます. | ||
* Outputプラグイン | ||
|
||
TODO: 免責事項 | ||
InputあるいはFilterから受け取った情報を, Boxnya以外のシステムへの送り出します. | ||
twitterの場合には, Growlやim.kayac.comにデータを通知します. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters