Mercurial > louis > mq > lightsd
changeset 523:48486249a3c5
fix typo
author | Louis Opter <kalessin@kalessin.fr> |
---|---|
date | Thu, 17 Nov 2016 10:18:11 -0800 |
parents | 737ed6df3f67 |
children | 154cc5d504b3 |
files | add_monolight.patch |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <louis@opter.org> +# +# 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) + +