Initial commit
This commit is contained in:
parent
cd14b65130
commit
943c912764
4 changed files with 133 additions and 3 deletions
|
@ -144,7 +144,7 @@ class Dmx:
|
||||||
def set_color(self, color):
|
def set_color(self, color):
|
||||||
"""Set color (hex) for this instance.
|
"""Set color (hex) for this instance.
|
||||||
|
|
||||||
The color is then available via the color variable."""
|
The color is then available via its color variable."""
|
||||||
color = self._pad_color(color)
|
color = self._pad_color(color)
|
||||||
|
|
||||||
self.color = color
|
self.color = color
|
||||||
|
@ -926,7 +926,7 @@ if __name__ == "__main__":
|
||||||
help="list available Kitchenlight modes and their options")
|
help="list available Kitchenlight modes and their options")
|
||||||
# Ambient control
|
# Ambient control
|
||||||
group_cl = parser.add_argument_group(title="ambient color control",
|
group_cl = parser.add_argument_group(title="ambient color control",
|
||||||
description="PRESET may be either a preset name (which may be abbreviated) or a '#' followed by a color value in hex notation (eg. \"#ff0066\").")
|
description="PRESET may be either a preset name (which may be abbreviated) or '#' followed by a color value in hex notation (eg. \"#ff0066\").")
|
||||||
group_cl.add_argument(
|
group_cl.add_argument(
|
||||||
"-w", "--wohnzimmer", type=str, dest="w_color", metavar="PRESET",
|
"-w", "--wohnzimmer", type=str, dest="w_color", metavar="PRESET",
|
||||||
help="apply local colorscheme PRESET to Wohnzimmer")
|
help="apply local colorscheme PRESET to Wohnzimmer")
|
||||||
|
@ -944,7 +944,7 @@ if __name__ == "__main__":
|
||||||
help="store current state as preset NAME")
|
help="store current state as preset NAME")
|
||||||
# Remote presets
|
# Remote presets
|
||||||
group_rp = parser.add_argument_group(title="remote preset functions",
|
group_rp = parser.add_argument_group(title="remote preset functions",
|
||||||
description="Available room names are \"wohnzimmer\", \"plenar\", \"fnord\" and \"keller\". Preset and room names can be abbreviated.")
|
description="Available room names are \"wohnzimmer\", \"plenar\", \"fnord\" and \"keller\". Preset and room names may be abbreviated.")
|
||||||
group_rp.add_argument(
|
group_rp.add_argument(
|
||||||
"-r", "--remote-preset", type=str, metavar="PRESET[:ROOM[,ROOM,...]]",
|
"-r", "--remote-preset", type=str, metavar="PRESET[:ROOM[,ROOM,...]]",
|
||||||
help="activate remote PRESET for ROOM(s).")
|
help="activate remote PRESET for ROOM(s).")
|
||||||
|
|
34
examples/beach
Normal file
34
examples/beach
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# "Beach" colorscheme for c4ctrl
|
||||||
|
|
||||||
|
# Put this file into "$XDG_CONFIG_DIR/c4ctrl/" (likely "~/.config/c4ctrl/") to
|
||||||
|
# make it available to c4ctrl.py.
|
||||||
|
|
||||||
|
# Wohnzimmer + Küche
|
||||||
|
#dmx/wohnzimmer/master = 3300ff
|
||||||
|
dmx/wohnzimmer/tuer1 = ff3300
|
||||||
|
dmx/wohnzimmer/tuer2 = ff6633
|
||||||
|
dmx/wohnzimmer/tuer3 = ff6633
|
||||||
|
dmx/wohnzimmer/mitte1 = 3300ff
|
||||||
|
dmx/wohnzimmer/mitte2 = 000000
|
||||||
|
dmx/wohnzimmer/mitte3 = 3300ff
|
||||||
|
dmx/wohnzimmer/gang = 3300ff
|
||||||
|
dmx/wohnzimmer/baellebad = ff3300
|
||||||
|
led/kitchen/sink = ff2000
|
||||||
|
|
||||||
|
# Fnordcenter
|
||||||
|
#dmx/fnord/master = 3300ff
|
||||||
|
dmx/fnord/scummfenster = ff3300
|
||||||
|
dmx/fnord/schranklinks = 3300ff
|
||||||
|
dmx/fnord/fairyfenster = ff3300
|
||||||
|
dmx/fnord/schrankrechts = 3300ff
|
||||||
|
|
||||||
|
# Plenarsaal
|
||||||
|
#dmx/plenar/master = 3300ff
|
||||||
|
dmx/plenar/vorne1 = ff3300
|
||||||
|
dmx/plenar/vorne2 = ff3300
|
||||||
|
dmx/plenar/vorne3 = ff3300
|
||||||
|
dmx/plenar/hinten1 = 3300ff
|
||||||
|
dmx/plenar/hinten2 = 3300ff
|
||||||
|
dmx/plenar/hinten3 = ff0033
|
||||||
|
dmx/plenar/hinten4 = ff0033
|
||||||
|
|
62
examples/emergency
Normal file
62
examples/emergency
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# "Emergency" colorscheme for c4ctrl
|
||||||
|
|
||||||
|
# Put this file into "$XDG_CONFIG_DIR/c4ctrl/" (likely "~/.config/c4ctrl/") to
|
||||||
|
# make it available to c4ctrl.py.
|
||||||
|
# This preset uses some more advanced features of the LED cans in the club.
|
||||||
|
# The following table lists their options.
|
||||||
|
#
|
||||||
|
## 4-channel cans (deployed in the Fnordcenter) ##
|
||||||
|
#
|
||||||
|
# 1 00-ff Red
|
||||||
|
# 2 00-ff Green
|
||||||
|
# 3 00-ff Blue
|
||||||
|
# 7 00-ff Dimmer 0% -> 100%
|
||||||
|
#
|
||||||
|
## 7-channel cans (deployed in Wohnzimmer and Plenarsaal) ##
|
||||||
|
#
|
||||||
|
# 1 00-ff Red
|
||||||
|
# 2 00-ff Green
|
||||||
|
# 3 00-ff Blue
|
||||||
|
# 4 00-07 Nothing
|
||||||
|
# 08-ff Color Macro
|
||||||
|
# 5 00-0f Nothing
|
||||||
|
# 10-ff Strobing/Macro Speed
|
||||||
|
# 6 00-1f Nothing
|
||||||
|
# ff-3f Dim -> Bright
|
||||||
|
# 40-5f Bright -> Dim
|
||||||
|
# 60-7f Dim -> Bright -> Dim
|
||||||
|
# 80-9f Color Mixing
|
||||||
|
# a0-bf 3 Color Change
|
||||||
|
# c0-df 7 Color Change
|
||||||
|
# e0-ff Sound Active
|
||||||
|
# 7 00-ff Dimmer 0% -> 100%
|
||||||
|
|
||||||
|
# Wohnzimmer + Küche
|
||||||
|
dmx/wohnzimmer/master = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/tuer1 = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/tuer2 = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/tuer3 = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/mitte1 = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/mitte2 = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/mitte3 = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/gang = ff000000f040ff
|
||||||
|
#dmx/wohnzimmer/baellebad = ff000000f040ff
|
||||||
|
led/kitchen/sink = 000000
|
||||||
|
|
||||||
|
# Fnordcenter
|
||||||
|
dmx/fnord/master = ff0000ff
|
||||||
|
#dmx/fnord/scummfenster = ff0000ff
|
||||||
|
#dmx/fnord/schranklinks = ff0000ff
|
||||||
|
#dmx/fnord/fairyfenster = ff0000ff
|
||||||
|
#dmx/fnord/schrankrechts = ff0000ff
|
||||||
|
|
||||||
|
# Plenarsaal
|
||||||
|
dmx/plenar/master = ff000000f040ff
|
||||||
|
#dmx/plenar/vorne1 = ff000000f040ff
|
||||||
|
#dmx/plenar/vorne2 = ff000000f040ff
|
||||||
|
#dmx/plenar/vorne3 = ff000000f040ff
|
||||||
|
#dmx/plenar/hinten1 = ff000000f040ff
|
||||||
|
#dmx/plenar/hinten2 = ff000000f040ff
|
||||||
|
#dmx/plenar/hinten3 = ff000000f040ff
|
||||||
|
#dmx/plenar/hinten4 = ff000000f040ff
|
||||||
|
|
34
examples/neon
Normal file
34
examples/neon
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
# "Neon" colorscheme for c4ctrl
|
||||||
|
|
||||||
|
# Put this file into "$XDG_CONFIG_DIR/c4ctrl/" (likely "~/.config/c4ctrl/") to
|
||||||
|
# make it available to c4ctrl.py.
|
||||||
|
|
||||||
|
# Wohnzimmer + Küche
|
||||||
|
#dmx/wohnzimmer/master = 0033ff
|
||||||
|
dmx/wohnzimmer/tuer1 = ff0033
|
||||||
|
dmx/wohnzimmer/tuer2 = ff0033
|
||||||
|
dmx/wohnzimmer/tuer3 = ff0033
|
||||||
|
dmx/wohnzimmer/mitte1 = 00ff00
|
||||||
|
dmx/wohnzimmer/mitte2 = 0033ff
|
||||||
|
dmx/wohnzimmer/mitte3 = 0033ff
|
||||||
|
dmx/wohnzimmer/gang = 0033ff
|
||||||
|
dmx/wohnzimmer/baellebad = 00ff00
|
||||||
|
led/kitchen/sink = ff00ff
|
||||||
|
|
||||||
|
# Fnordcenter
|
||||||
|
#dmx/fnord/master = 0033ff
|
||||||
|
dmx/fnord/scummfenster = ff0033
|
||||||
|
dmx/fnord/schranklinks = 0033ff
|
||||||
|
dmx/fnord/fairyfenster = ff0033
|
||||||
|
dmx/fnord/schrankrechts = 0033ff
|
||||||
|
|
||||||
|
# Plenarsaal
|
||||||
|
#dmx/plenar/master = 0033ff
|
||||||
|
dmx/plenar/vorne1 = 0033ff
|
||||||
|
dmx/plenar/vorne2 = 0033ff
|
||||||
|
dmx/plenar/vorne3 = 00ff00
|
||||||
|
dmx/plenar/hinten1 = ff0033
|
||||||
|
dmx/plenar/hinten2 = ff0033
|
||||||
|
dmx/plenar/hinten3 = 0033ff
|
||||||
|
dmx/plenar/hinten4 = 0033ff
|
||||||
|
|
Loading…
Reference in a new issue