# HG changeset patch # User Louis Opter # Date 1478590541 28800 # Node ID 21e7fc05e967ff8f7fd783272216f44851921f23 # Parent 8b0502c2285493e9e11c8fa1590eda8da5010717 add files diff -r 8b0502c22854 -r 21e7fc05e967 add_monolight.patch --- a/add_monolight.patch Mon Nov 07 23:31:28 2016 -0800 +++ b/add_monolight.patch Mon Nov 07 23:35:41 2016 -0800 @@ -1716,6 +1716,45 @@ + +def create_lightsd_connection(url: str = None) -> None: + raise NotImplementedError("Sorry, no synchronous client available yet") +diff --git a/clients/python/lightsc/lightsc/constants.py b/clients/python/lightsc/lightsc/constants.py +new file mode 100644 +--- /dev/null ++++ b/clients/python/lightsc/lightsc/constants.py +@@ -0,0 +1,34 @@ ++# Copyright (c) 2016, Louis Opter ++# All rights reserved. ++# ++# Redistribution and use in source and binary forms, with or without ++# modification, are permitted provided that the following conditions are met: ++# ++# 1. Redistributions of source code must retain the above copyright notice, ++# this list of conditions and the following disclaimer. ++# ++# 2. Redistributions in binary form must reproduce the above copyright notice, ++# this list of conditions and the following disclaimer in the documentation ++# and/or other materials provided with the distribution. ++# ++# 3. Neither the name of the copyright holder nor the names of its contributors ++# may be used to endorse or promote products derived from this software ++# without specific prior written permission. ++# ++# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ++# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE ++# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR ++# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF ++# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS ++# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ++# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ++# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ++# POSSIBILITY OF SUCH DAMAGE. ++ ++HUE_RANGE = range(0, 360, 1) ++KELVIN_RANGE = range(0, 9000, 1) ++ ++# NOTE: figure out something else for brightness and saturation since ++# float/decimals can't be used with range. diff --git a/clients/python/lightsc/lightsc/exceptions.py b/clients/python/lightsc/lightsc/exceptions.py new file mode 100644 --- /dev/null