Exemplo 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)
Exemplo 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)
Exemplo n.º 3
0
def do():
    ret = hermes.directNotify(arg(1), [[arg(2), arg(3, 'XMPP')]])
    rprint(ret)
Exemplo 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"]))
Exemplo n.º 5
0
def do():
    ret = hermes.unsubscribe(arg(1), arg(2))
    rprint(ret)
Exemplo 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"]))