Files @ d0d5900a8031
Branch filter:

Location: light9/bin/kcclient

drewp@bigasterisk.com
collector run the blocking dmx output calls in another thread, so they don't add delay to our http server
Ignore-this: b5385085b654e1ac0b8018e6813f36e
#!/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)