Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ktravis/hangout_notify
- Owner: ktravis
- License: other
- Created: 2013-08-05T16:10:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-09T17:20:03.000Z (over 11 years ago)
- Last Synced: 2023-03-25T11:17:54.911Z (almost 2 years ago)
- Language: Python
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_sinceUsed 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 ~`