A pushbullet daemon; for pushing notifications from your system
This is still a Proof of Concept. It is not production ready.
With the daemon running, you can push notifications when:
- your battery gets low
- system shutdowns
- anything, worth noting, happens
(you do this stuff on your own!)
Using Go tools:
$ go get github.com/GochoMugo/pusherThe daemon requires an access token set as the environment variable ${pusher_TOKEN}. For example,
# set environment variable
export PUSHER_TOKEN='AbCdEfgHijKLmNopQrstUvWXyZ'$ pusher startThis starts the daemon but remains attached to the terminal. This is by design. You need to use external programs such as forever, upstart, supervisord, etc to keep the daemon running forever and in background.
The daemon listens on port 9701 by default. However, you can specify a port using the flag --port=<port-number> e.g. --port=8080.
$ pusher notify --message="<message-goes-here>"
# for example
$ pusher notify --message="battery low"This will broadcast the message(note/notification) to all of your devices using username + @ + hostname as the header.
$ pusher statusThis pings the daemon.
$ pusher stopThis sends a message to the daemon asking it to stop.
The MIT License (MIT)
Copyright (c) 2015 GochoMugo mugo@forfuture.co.ke