Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drewcrawford/Phone-Pipe
https://github.com/drewcrawford/Phone-Pipe
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/drewcrawford/Phone-Pipe
- Owner: drewcrawford
- Archived: true
- Created: 2010-04-23T20:58:27.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-05-01T00:04:03.000Z (over 13 years ago)
- Last Synced: 2024-08-04T01:28:03.077Z (4 months ago)
- Language: Python
- Homepage:
- Size: 148 KB
- Stars: 97
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Phone Pipe
==========Phone Pipe lets you send push notifications to your iPhone/iPod Touch/iPad
from the command line. You'll need to have the Notifo app (its free!) installed
on your device as well as an account on their website (also free!).Installation
------------Just copy the script to somewhere on your path.
$ sudo cp phone /usr/local/bin/
For Python <= 2.4 users, you'll need to have the simplejson package installed
for the JSON support. You can find it [here][simplejson] or install it with
easy_install if you have that handy:$ sudo easy_install simplejson
[simplejson]: http://pypi.python.org/pypi/simplejson/
Configuration
-------------The first time you run Phone Pipe it will prompt you for your credentials. It
will store these in ~/.phonepipe for future use. Alternatively you can also
specify your username and API key on the command line like such:$ phone --username=someuser --secret=b52e5fd8b6f14d799798172c1b62c7eb
Usage
-----phone [options] [--] [msg]
The options are described below. If you are concerned about the message given
on the command line containing dashes and therefore looking like arguments, you
may include a double dash before the message give on the command line.--title - The title of the message.
--label - A message label, generally the name of the sending service.
--url - If specified, the Notifo app makes a link from the message to it.
--username - Override your ~/.phonepipe if you specify a secret as well.
--secret - Override your ~/.phonepipe when specified with a username.Messages are taken from unknown command line arguments and stdin. The
following are all equivalent:$ phone send a message
$ phone "send a message"
$ echo "send a message" | phoneExamples
--------
# First message
$ phone first message# Notify yourself when the compile is done
$ make; phone# Notify yourself of your current IP
$ ifconfig | grep inet | phone