2 Termine ins Archiv verschoben
[stratum0-wiki.git] / Holodeck%2FLicht.mw
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 ;)]]
6
7 == LIGHT SETUP ==
8
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.
10
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
14
15 == Some useful defaults ==
16 Open one of these Links from inside the space to apply the new color.
17 * [http://hololicht.s0/holodeck/all/nicewhite warm white]
18 * [http://hololicht.s0/holodeck/all/day cold white]
19 * [http://hololicht.s0/holodeck/all/off nearly off]
20 * [http://hololicht.s0/holodeck/all/night really off]
21 * [http://hololicht.s0/holodeck/all/0.2,0,0,0 hot!]
22
23 == USAGE ==
24
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
28
29 ===Setting a color===
30 A color is set using the following call:
31 <pre><nowiki>
32 http://hololicht.s0/holodeck/<section>/<colorCode>
33 </nowiki></pre>
34
35 Where:
36 <section> is all or a section number [1 .. 4]
37 <color> is a color-code
38
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
44
45 ===Preset-types:===
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.
49
50 ===Listing presets:===
51 Presets can be listed using the following call:
52 http://hololicht.s0/preset
53
54 ===Setting presets:===
55 A preset can be created or altered using the following call:
56 <pre><nowiki>
57 http://hololicht.s0/preset/<name>/<color>
58 </nowiki></pre>
59
60 ===Using a preset:===
61 A preset is set with the folowing call:
62 <pre><nowiki>
63 http://hololicht.s0/holodeck/<section>/<presetName>
64 </nowiki></pre>
65
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.
67
68 [[Kategorie:Dokumentation]][[Kategorie:Infrastruktur]]
This page took 0.046026 seconds and 5 git commands to generate.