Files @ de32d979275b
Branch filter:

Location: light9/bin/kcclient - annotation

drewp@bigasterisk.com
dance2007/subs new dir
#!/usr/bin/env python

"""send KeyboardComposer a fade request, for use from the shell"""

import sys,xmlrpclib
import run_local
from light9 import networking

subname = sys.argv[1]
level = float(sys.argv[2])
fadesecs = 0
if len(sys.argv)>3:
    fadesecs = float(sys.argv[3])

levelserver = xmlrpclib.ServerProxy("http://%s:%s" %
                                    (networking.kcServer(),
                                     networking.kcPort()))

levelserver.fadesub(subname,level,fadesecs)