Esempio n. 1
0
def do():
    priv = arg(4, None)
    if priv:
        ret = hermes.subscribe(arg(1), arg(2), arg(3), priv)
    else:
        ret = hermes.subscribe(arg(1), arg(2), arg(3))
    rprint(ret)
Esempio n. 2
0
def do():
    priv = arg(4, None)
    if priv:
        ret = hermes.subscribe(arg(1), arg(2), arg(3), priv)
    else:
        ret = hermes.subscribe(arg(1), arg(2), arg(3))
    rprint(ret)
Esempio n. 3
0
def do():
    ret = hermes.directNotify(arg(1), [[arg(2), arg(3, 'XMPP')]])
    rprint(ret)
Esempio n. 4
0
#!/usr/bin/python

from settings import hermes, arg, rprint

msg = arg(1, "I'm great achtung-daemon Hermes!")
rprint(hermes.notify([msg, "<div style='background-color:red'>"+msg+"</div>"],["error"]))
Esempio n. 5
0
def do():
    ret = hermes.unsubscribe(arg(1), arg(2))
    rprint(ret)
Esempio n. 6
0
#!/usr/bin/python

from settings import hermes, arg, rprint

msg = arg(1, "I'm great achtung-daemon Hermes!")
rprint(
    hermes.notify([msg, "<div style='background-color:red'>" + msg + "</div>"],
                  ["error"]))
Esempio n. 7
0
#!/usr/bin/python

from settings import hermes, rprint

rprint(hermes.getContacts())
Esempio n. 8
0
#!/usr/bin/python

from settings import hermes, arg, rprint

msg = arg(1, "I'm great achtung-daemon Hermes!")
rprint(hermes.notifyAll(msg))