# HG changeset patch # User Louis Opter # Date 1479406691 28800 # Node ID 48486249a3c5964fecf6386f381c9016bcd8c628 # Parent 737ed6df3f67f31487ef2d51f51c6f0825d5939c fix typo diff -r 737ed6df3f67 -r 48486249a3c5 add_monolight.patch --- a/add_monolight.patch Wed Nov 16 23:24:03 2016 -0800 +++ b/add_monolight.patch Thu Nov 17 10:18:11 2016 -0800 @@ -1506,7 +1506,7 @@ + Button.ActionEnum.UP: actions.Lightsd(requests=[ + functools.partial( + requests.SetLightFromHSBK, -+ ["#kitchen"], 0.0, 0.0, 1.0, 400, 1000, ++ ["#kitchen"], 0.0, 0.0, 1.0, 4000, 1000, + ), + functools.partial(requests.PowerOn, ["#kitchen"]), + ]) @@ -1557,7 +1557,7 @@ new file mode 100644 --- /dev/null +++ b/apps/monolight/monolight/ui/ui.py -@@ -0,0 +1,99 @@ +@@ -0,0 +1,101 @@ +# Copyright (c) 2016, Louis Opter +# +# This file is part of lightsd. @@ -1622,6 +1622,8 @@ + grid.display(layer.canvas) + + render_latency = time.monotonic() - render_starts_at ++ # The plan is to have lightsd push updates and then make ++ # something smarter than this: + await asyncio.sleep(1000 / framerate / 1000 - render_latency, loop=loop) + +