Files @ 86c6700d1d63
Branch filter:

Location: light9/bin/kcclient

Drew Perttula
2013 code ignores 'config.n3' so 2012 code can use that instead
Ignore-this: 4ed3fc7943c066376ef9884643a05418
#!/usr/bin/env python

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

import sys
import run_local
from restclient import Resource
from light9 import networking

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

levelServer = Resource(networking.keyboardComposer.url)
levelServer.post('fadesub', subname=subname, level=level, secs=fadesecs)