1 {{Projekt|kontakt=Chrissi^, Kasa|status=aktiv|beschreibung=Licht für das Holodeck|bild=|bildbeschreibung=|interessenten=|source=|lizenz=|download=[https://gitli.stratum0.org/chrissi/ledctl ledctl auf gitli]|version=}}
2 Auf dem Holodeck gibt es über das Netzwerk steuerbares LED-Licht.
3 Diese Seite soll grob die Funktionen dokumentieren. Für eine aktuelle Dokumentation siehe in der [https://gitli.stratum0.org/chrissi/ledctl/blob/master/README.md README].
4 [[Image:Holodeck Licht Leiste.jpg|thumb|Eine Lichtleiste auf dem Holodeck. Warnweiss]]
5 [[Image:Holodeck Licht Detail.jpg|thumb|LED-Streifen für das Holodeck-Licht. Farbe: Warmweiss.Hinweis: Die LEDs scheinen von der Decke gegen die Wand und nicht wie hier der Eindruck entsteht von der Decke nach unten ;)]]
9 The LED-light is divided into four sections. Two on each side. The front section is two thirds of the length, the back section is obviously one third.
11 Looking to the screen-side of the room:
12 * Section one is on the back on the left
13 * The folling sections are named clockwise
15 == Some useful defaults ==
16 Open one of these Links from inside the space to apply the new color.
17 * [http://frickelicht.s0/holodeck/all/nicewhite warm white]
18 * [http://frickelicht.s0/holodeck/all/day cold white]
19 * [http://frickelicht.s0/holodeck/all/off nearly off]
20 * [http://frickelicht.s0/holodeck/all/night really off]
21 * [http://frickelicht.s0/holodeck/all/0.2,0,0,0 hot!]
25 The software exports a rudimentary web-based interface. The interface is divided into two sections:
26 * Section to set colors or presets
27 * Section to list and add/alter presets
30 A color is set using the following call:
32 http://frickelicht.s0/holodeck/<section>/<colorCode>
36 <section> is all or a section number [1 .. 4]
37 <color> is a color-code
39 Color Codes are made up of a list of float values in the range of [0.0 .. 1.0]. Depending on the number of elements the color codes are iterpreted to be in different color spaces:
40 <float>: Is interpreted as brightness and creates a RGBW-mixed broad-spectrum white in the given brightness
41 <float>,<float>,<float>: Is interpreted as RGB-value. The value is transformed into the RGBW color space before outputting it. Thus even a 1.0,0.0,0.0 (red) will contain some white.
42 <float>,<float>,<float>,<float>: Is interpreted as RGBW-value. This value is directly outputted to the LEDs.
43 <float>,<float>,<float>,<float><float>,<float>,<float>,<float><float>,<float>,<float>,<float><float>,<float>,<float>,<float> (16 floats): This special form can be used on the section code all. It is interpreted as four RGBW-color codes for the four sections. Thus with this color code a new color for all sections can be set
46 There are two types of presets:
47 * System-presets: These presets contain all RGB-colors defined with names in CSS. These presets can not be altered. But user-presets have a highter priority.
48 * User-presets: These presets can be set by the user. The list has a limited length.
50 ===Listing presets:===
51 Presets can be listed using the following call:
52 http://frickelicht.s0/preset
54 ===Setting presets:===
55 A preset can be created or altered using the following call:
57 http://frickelicht.s0/preset/<name>/<color>
61 A preset is set with the folowing call:
63 http://frickelicht.s0/holodeck/<section>/<presetName>
66 If a preset with colors for all four sections is applied on a section other than all only the first RGBW-value will be used on the section.
68 [[Kategorie:Dokumentation]][[Kategorie:Infrastruktur]]