2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

fhemweb_colorpicker.js: added doku

git-svn-id: https://svn.fhem.de/fhem/trunk@15183 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2017-10-03 11:44:33 +00:00
parent 356a891dc4
commit 4defab0645

View File

@ -468,3 +468,31 @@ colorpicker_hsv2rgb(h,s,v) {
return colorpicker_rgb2hex( Math.round(r*255),Math.round(g*255),Math.round(b*255) );
}
/*
=pod
=begin html
<li>:colorpicker,RGB - create an RGB colorpicker</li>
<li>:colorpicker,HSV - create an HSV colorpicker to set an rgb value</li>
<li>:colorpicker,HSVp - create an HSV popup colorpicker to set an rgb value</li>
<li>:colorpicker,HSV,&lt;hue&gt;,&lt;min&gt;,&lt;step&gt;,&lt;max&gt;,&lt;sat&gt,&lt;min&gt;,&lt;step&gt;,&lt;max&gt;,&lt;bri&gt,&lt;min&gt;,&lt;step&gt;,&lt;max&gt;
- create an HSV colorpicker that uses &lt;hue&gt;, &lt;sat&gt; and &lt;bri&gt; as commands
to set the color. can also be used with HSVp to create a popup colorpicker<br>
if the device has no combined hsv reading it can be create with the following user reading:<code>attr <device> userReadings hsv {ReadingsVal($name,'hue','0').','.ReadingsVal($name,'sat','100').','.ReadingsVal($name,'bri','100')}</code></li>
<li>:colorpicker,CT,&lt;min&gt;,&lt;step&gt;,&lt;max&gt; - create a color temperature colorpicker</li>
<li>:colorpicker,BRI,&lt;min&gt;,&lt;step&gt;,&lt;max&gt; - create a brightness colorpicker</li>
<li>:colorpicker,HUE,&lt;min&gt;,&lt;step&gt;,&lt;max&gt; - create a hue colorpicker</li>
please see the fhem wiki <a hef='https://wiki.fhem.de/wiki/Color#Colorpicker'>Color</a> section for example screenshots.<br><br>
=end html
=cut
*/