Mercurial > code > home > repos > light9
view bin/kcclient @ 942:dd896321faee
subserver can get a snapshot from vidref and display it on the sub
Ignore-this: 9ea0a172869922d22d8c5cf6ee4bf3da
author | drewp@bigasterisk.com |
---|---|
date | Thu, 13 Jun 2013 01:31:16 +0000 |
parents | 46d319974176 |
children | 7772cc48e016 |
line wrap: on
line source
#!/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)