Code Monkey home page Code Monkey logo

pushtext's Introduction

PushText

Command line tool for Pushover

Installation:

  1. Download the archive
  2. Run chmod +x push_text.py
  3. Move push_text.py to /usr/local/bin or somewhere else in $PATH

Configuration:

If you run push_text.py without any setup it will ask for your API token and your user key.
The user key is on your user page.
You must create an application with Pushover in order to send messages.
See Pushover Apps for more information.

Examples:

The simplest example would be to let you know when something finishes on your computer. $> make ; make install ; push_text.py --title "make" --message "Done compiling."
The above will result in this on your phone:
pt example

You could also use it to let you know if something breaks. $> some script ; if [ "$?" -ne "0" ]; then push_text.py -m "Oops, you bwoke it." ; fi

Send your Todo.txt list daily:

$> crontab -l | grep push_text.py
30 10 * * * /usr/local/bin/push_text.py --title "Todo" -m "`/usr/local/bin/todo ls`" -d iphone

The possibilities are endless! (As long as the possibilities only include sending messages to your phone.)

Manual:

usage: push_text.py [-h] [-u USER_KEY] [-t TOKEN_KEY] [-p PRIORITY] [-m MESSAGE]
          [-d DEVICE] [--title TITLE] [--url URL] [--urltitle URL_TITLE] [-v]

PushText: Command line tool for http://pushover.net

optional arguments:
  -h, --help            show this help message and exit
  -u USER_KEY, --user-key USER_KEY
                        User key instead of reading from settings.
  -t TOKEN_KEY, --token-key TOKEN_KEY
                        Token key instead of reading from settings.
  -p PRIORITY, --priority PRIORITY
                        Set priority of high or low. Default is normal.
  -m MESSAGE, --message MESSAGE
                        Message to send. Default is "PushText"
  -d DEVICE, --device DEVICE
                        Device name to receive message. Default sends to all
                        devices.
  --title TITLE         Title or application name. Default is PushText
  --url URL             Optional URL to accompany your message.
  --urltitle URL_TITLE  Title to go with your URL.
  -v, --version         Print version.

pushtext's People

Contributors

goto-carter avatar robotmachine avatar

Watchers

 avatar  avatar  avatar

Forkers

iscrow

pushtext's Issues

Change workflow

It should call read_config and set to a variable, not move all of the data to read_config and the move to the next and so on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.