Omnix
Omnix is a web portal targeted to cell phone users, especially those with service provided by Era, Polish mobile operator. Apart from other services, it also provides SMS sending API. While not being free, it is one of the easiest services to use with scripts.
This package provides set of scripts (library, command-line client, email notification filter) enabling sending SMS messages from computer.
Requirements
- python
- procmail (for mail notification)
Contents
- Omnix.py - library
- smsomnix - command line client
- notify - mail notification script
- setup.py - install script
Usage
Installation
You can install it using python setup script. Just enter python setup.py install}} and that's it! If you want to do it manually, copy {{{Omnix.py to your python library directory (for example, /usr/share/python2.4/site-packages) and scripts to /usr/bin.
Command-line client
Basic usage:
smsomnix <options> <telephone number> <message>
Options:
- -o - use 'omnix' gateway, also --omnix
- -s - use 'sponsored' gateway, also --sponsored
- -u [username] - Omnix username, also --username=[username]
- -w [password] - Omnix password, also --password=[password]
- -c [contact] - contact to sender, also --contact=[contact]
- -i [signature] - sender signature, also --signature=[signature]
- -h - help screen, also --help
Command-line client will remember credentials in a config file (~/.omnixrc, so you only need to provide them on the first usage.
Mail notification
Add those lines to your ~/.procmailrc file (probably at the bottom is the best place):
:0 c * ^(To|Cc|CC|cc|Bcc):.*my.email@example.com # only messages addressed to me - no maillists * !^From.*(cron|daemon|postmaster) # ignore some senders * !^Subject.*(virus|delivery) # no virus/delivery notifications | formail -X Subject: -X From: | /usr/bin/notify
