webXMPP

Check-in [8543639bab]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix usage
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:8543639bab5ae1a559e96b9398301814ca3da74f45f60f2aefc209a89b15accb
User & Date: vandys 2018-09-22 14:07:53
Context
2018-11-09
01:41
Some logging for the Ham notification service. Suppress initial notification events while the notify daemon is starting up and catching up. Blacklist is an ofono thing, but it sits alongside the others on my Ubuntu phone, so I'll just keep it here for now check-in: 915508d040 user: vandys tags: master, trunk
2018-09-22
14:07
Fix usage check-in: 8543639bab user: vandys tags: master, trunk
04:17
We just make sure chore's in our PYTHONPATH now check-in: ac97fbaaa9 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to tools/ham.py.

204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
		# New messages
		self.notify(resp)
		self.gen = resp.inner["gen"]

if __name__ == "__main__":

    # Usage
    if len(sys.argv) != 1:
	sys.stderr.write("Usage is: %s <config>\n" % (sys.argv[0],))

    # Config and run
    if len(sys.argv) == 1:
	cfgn = os.environ["HOME"] + "/.config/hamnotify.txt"
    else:
	cfgn = sys.argv[1]
    n = HamNotifier(cfgn)
    n.run()







|
|








204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
		# New messages
		self.notify(resp)
		self.gen = resp.inner["gen"]

if __name__ == "__main__":

    # Usage
    if len(sys.argv) not in (1, 2):
	sys.stderr.write("Usage is: %s [<config>]\n" % (sys.argv[0],))

    # Config and run
    if len(sys.argv) == 1:
	cfgn = os.environ["HOME"] + "/.config/hamnotify.txt"
    else:
	cfgn = sys.argv[1]
    n = HamNotifier(cfgn)
    n.run()