Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ktravis/hangout_notify

A python listener to catch the latest XMPP (i.e. Google Hangouts) message and store it
https://github.com/ktravis/hangout_notify

Last synced: about 2 months ago
JSON representation

A python listener to catch the latest XMPP (i.e. Google Hangouts) message and store it

Awesome Lists containing this project

README

        

hangout_notify
==============

A python listener to catch the latest XMPP (i.e. Google Hangouts) message and store it.

Usage:

python hangout_notify.py

Requires a `.hangout_notify_rc` file in the user's home directory with at least `jid` and `password` parameters.
Available configuration points include

| parameter | value |
| ------------- |:-------------:|
| jid | email address without domain |
| keyring | 'T' or anything else for false |
| password | your password |
| format | dzen or * |
| contact email | alias |
| name_color | basic color |
| message_color | basic color |

If `keyring` is specified as true, for example `keyring=True`, leave the
password field blank. Make sure you have the python package `python2-keyring`
installed, and set up a password using `keyring.set_password("hangout_notify",
"[email address without domain]", "PASSWORD")`

Dzen format will output messages using `^fg()` tags, based on the specified colors (white, red, etc.), for use in dzen2.

Parameters that match email addresses of the message-sender will be truncated to the given alias -- _I really don't need to see '@gmail.com' all over the place._

----------------
##get_time_since

Used to get a lazy estimate of the time since a file was last modified.

Usage:

get_time_since [(-f | --format) "format string including %s"] /path/to/file

So a call of `get_time_since -f "~ %s ~" README.md` on a file README.md that was edited 75 minutes ago would output `~ about an hour ago ~`