/* Anwendungen */
[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
3 {{Hinweis|Defekt: Stand August 2024}}
4
5 Auf dem Holodeck gibt es über das Netzwerk steuerbares LED-Licht.
6 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].
7 [[Image:Holodeck Licht Leiste.jpg|thumb|Eine Lichtleiste auf dem Holodeck. Warnweiss]]
8 [[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
10 == LIGHT SETUP ==
11
12 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.
13
14 Looking to the screen-side of the room:
15 * Section one is on the back on the left
16 * The folling sections are named clockwise
17
18 == Some useful defaults ==
19 Open one of these Links from inside the space to apply the new color.
20 * [http://hololicht.s0/holodeck/all/nicewhite warm white]
21 * [http://hololicht.s0/holodeck/all/day cold white]
22 * [http://hololicht.s0/holodeck/all/off nearly off]
23 * [http://hololicht.s0/holodeck/all/night really off]
24 * [http://hololicht.s0/holodeck/all/0.2,0,0,0 hot!]
25
26 == USAGE ==
27
28 The software exports a rudimentary web-based interface. The interface is divided into two sections:
29 * Section to set colors or presets
30 * Section to list and add/alter presets
31
32 ===Setting a color===
33 A color is set using the following call:
34 <pre><nowiki>
35 http://hololicht.s0/holodeck/<section>/<colorCode>
36 </nowiki></pre>
37
38 Where:
39 <section> is all or a section number [1 .. 4]
40 <color> is a color-code
41
42 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:
43 <float>: Is interpreted as brightness and creates a RGBW-mixed broad-spectrum white in the given brightness
44 <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.
45 <float>,<float>,<float>,<float>: Is interpreted as RGBW-value. This value is directly outputted to the LEDs.
46 <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
47
48 ===Preset-types:===
49 There are two types of presets:
50 * 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.
51 * User-presets: These presets can be set by the user. The list has a limited length.
52
53 ===Listing presets:===
54 Presets can be listed using the following call:
55 http://hololicht.s0/preset
56
57 ===Setting presets:===
58 A preset can be created or altered using the following call:
59 <pre><nowiki>
60 http://hololicht.s0/preset/<name>/<color>
61 </nowiki></pre>
62
63 ===Using a preset:===
64 A preset is set with the folowing call:
65 <pre><nowiki>
66 http://hololicht.s0/holodeck/<section>/<presetName>
67 </nowiki></pre>
68
69 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.
70
71 [[Kategorie:Dokumentation]][[Kategorie:Infrastruktur]]
This page took 0.043202 seconds and 5 git commands to generate.