Skip to content

A pushbullet daemon; for pushing notifications from your system

License

Notifications You must be signed in to change notification settings

GochoMugo/pusher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pusher

A pushbullet daemon; for pushing notifications from your system

This is still a Proof of Concept. It is not production ready.

use cases:

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!)

installation:

Using Go tools:

$ go get github.com/GochoMugo/pusher

usage:

configuring the daemon:

The daemon requires an access token set as the environment variable ${pusher_TOKEN}. For example,

# set environment variable
export PUSHER_TOKEN='AbCdEfgHijKLmNopQrstUvWXyZ'

starting the daemon:

$ pusher start

This 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.

pushing a notification:

$ 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.

checking status of the daemon:

$ pusher status

This pings the daemon.

stopping the daemon:

$ pusher stop

This sends a message to the daemon asking it to stop.

license:

The MIT License (MIT)

Copyright (c) 2015 GochoMugo mugo@forfuture.co.ke

About

A pushbullet daemon; for pushing notifications from your system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages