Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

mlesniew/pyalot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyalot

The pyalot package allows sending push notifications to Windows and Windows Phone devices using pushalot.com.

Notifications can be sent from the command line or from Python code.

pypi license build

Basic command line usage

Sending a text notification from the command line is simple:

pyalot --token 11234567890abcdef234567890abcdef "Hello world"

The text doesn't have to be quoted, pyalot will accept any number of positional arguments and combine them into a notification text.

pyalot --token 11234567890abcdef234567890abcdef Hello world

In some cases it may be more convenient to pass the notification text through stdin instead of using parameters:

uptime | pyalot --token 11234567890abcdef234567890abcdef --pipe

Don't like passing the auth token every time? You can store your auth token in ~/.pushalot-token as simple text. This will allow you to omit the --token parameter:

echo 11234567890abcdef234567890abcdef > ~/.pushalot-token
pyalot Hello world

We can also use pyalot to set other, optional notification parameters. We can set the title or source, add a link or set a time-to-live value.

pyalot --title "Important notification!" "Did you notice the title?"
pyalot --source "Raspberry Pi" "This notification is from my Raspberry"
pyalot --link "http://github.com" "Check out this link"
pyalot --ttl 10 "This notification will disappear after 10 minutes"

Installation

pyalot can be installed using pip:

pip install pyalot

About

Send Pushalot notifications from the command line or from Python code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages