public
Description: A toolkit for assembling XMPP clients and interacting with XMPP servers.
Homepage:
Clone URL: git://github.com/mojodna/switchboard.git
mojodna (author)
Mon Dec 01 21:43:46 -0800 2008
commit  f9e04c4cbbf9ac96cad01e99fb4ec3206833260e
tree    37f890de8d671c2dcedf51b0b61ea4b3ff8729b9
parent  1e11ee7e942c22dae6ba2b61c1592bff8aa692f5
switchboard / README.markdown
100644 60 lines (37 sloc) 1.56 kb

Switchboard

Switchboard is both a toolkit for assembling XMPP clients as well as a set of command-line tools for interacting with XMPP servers.

Getting Started

Install it:

$ sudo gem install mojodna-switchboard -s http://gems.github.com

Install optional dependencies for additional functionality.

OAuth PubSub support:

$ sudo gem install oauth

User Location (XEP-0080) support via Fire Eagle:

$ sudo gem install mojodna-fire-hydrant -s http://gems.github.com

Note: you will need to set up a PubSub subscription to your location via Fire Eagle for this to work.

User Tune (XEP-0118) support via iTunes (on Mac OS X):

$ sudo gem install rb-appscript

Configure it:

$ switchboard config jid jid@example.com
$ switchboard config password pa55word

Settings will be stored in $HOME/.switchboardrc

Run it:

$ switchboard <command> <args>
$ switchboard roster list
$ switchboard roster add fireeagle.com
$ ...

Subscribe to a node using OAuth, overriding default settings:

$ switchboard --jid subscriber@example.com --password pa55word \
    pubsub --oauth \
    --oauth-consumer-key <consumer key> \
    --oauth-consumer-secret <consumer secret> \
    --oauth-token <token> \
    --oauth-token-secret <token secret> \
    --server fireeagle.com \
    --node "/api/0.1/user/<token>" \
    subscribe

Publish iTunes' current track using User Tune (XEP-0118):

$ switchboard --resource switchtunes pep tune

You can do this using a JID that is already online.