zmq-notify/README.md

55 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2013-07-18 02:18:48 +00:00
flaming-happiness
=================
Golang + ZeroMQ + libnotify tool to connect to a zmq_notify.rb weechat script
2013-07-18 02:26:55 +00:00
2013-07-18 17:46:48 +00:00
This is ideal for situatishes like screen + weechat is running on a faroff
remote host, so a notification plugin for weechat would have no good access to
DISPLAY on the local host that you are connecting from.
Further, since it is pub/sub, there is no limit to only having a single client
being notified.
2013-07-18 02:26:55 +00:00
Install
-------
2013-07-18 17:28:44 +00:00
if you have ZeroMQ v3 installed, run:
2013-07-18 02:26:55 +00:00
go get github.com/vbatts/flaming-happiness/noti
2013-07-18 17:28:44 +00:00
for ZeroMQ v2
go get -tags zmq2 github.com/vbatts/flaming-happiness/noti
2013-07-18 17:28:44 +00:00
2013-07-20 03:42:28 +00:00
If you're on Fedora, for dependencies, run:
2014-01-17 21:26:57 +00:00
yum install golang zeromq3-devel libnotify-devel
If you're on debian, for dependencies, run:
apt-get install golang libnotify-dev libzmq3-dev
2013-07-20 03:42:28 +00:00
2013-07-18 02:26:55 +00:00
Running
-------
First you'll need to add the zmq_notify.rb file to ~/.weechat/ruby/
and load it from weechat (you can symlink it in the ./autoload/ directory
to have this script loaded when weechat launches)
/ruby load zmq_notify.rb
Then run `noti` against your site
noti tcp://example.com:2428
Be sure you've allowed for any firewalling between noti and the zmq_notify
2013-07-18 02:29:58 +00:00
Thanks
------
To folks that had already supplied the pieces of a simpler enabler like this
and to github for the wonky repository name recommendations.