push-watch

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

README

push-watch

About push-watch

push-watch is the client (receiver of notifications) of pushover. Each time a notification is received by pushover, the specified command is executed. The title, message, etc. can be obtained from environment variables. Since push-watch is executed as an open client, a desktop license is required.

Getting Started

# Login and get secret/deviceID

$ push-watch login {username} {password}
Success!
Device ID: {deviceID}
Device Secret: {deviceSecret}

$ push-watch watch {deviceID} {deviceSecret} -- sh -c 'echo $PUSHOVER_TITLE\\n$PUSHOVER_MESSAGE'
# -> The command is executed each time a new message is retrieved

environment

env description
PUSHOVER_ID The unique id of the message, relative to this device.
PUSHOVER_UMID The unique id of the message relative to all devices on the same user's account.
PUSHOVER_MESSAGE The text of the message.
PUSHOVER_TITLE The title of the message
PUSHOVER_PRIORITY The priority of the message.(-2/-1/0/1/2)
PUSHOVER_PRIORITY_STR The priority of the message. (lowest/low/normal/high/emergency)
PUSHOVER_APP The name of the application that sent the message. This may not be unique.
PUSHOVER_AID The unique id of the application that sent the message.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL