From 4defab064566363a1af4e3ecba18f8189b559dad Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Tue, 3 Oct 2017 11:44:33 +0000 Subject: [PATCH] fhemweb_colorpicker.js: added doku git-svn-id: https://svn.fhem.de/fhem/trunk@15183 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb_colorpicker.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/fhem/www/pgm2/fhemweb_colorpicker.js b/fhem/www/pgm2/fhemweb_colorpicker.js index 3b11254c7..6cc096bba 100644 --- a/fhem/www/pgm2/fhemweb_colorpicker.js +++ b/fhem/www/pgm2/fhemweb_colorpicker.js @@ -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 + +
  • :colorpicker,RGB - create an RGB colorpicker
  • + +
  • :colorpicker,HSV - create an HSV colorpicker to set an rgb value
  • + +
  • :colorpicker,HSVp - create an HSV popup colorpicker to set an rgb value
  • + +
  • :colorpicker,HSV,<hue>,<min>,<step>,<max>,<sat>,<min>,<step>,<max>,<bri>,<min>,<step>,<max> + - create an HSV colorpicker that uses <hue>, <sat> and <bri> as commands + to set the color. can also be used with HSVp to create a popup colorpicker
    + if the device has no combined hsv reading it can be create with the following user reading:attr userReadings hsv {ReadingsVal($name,'hue','0').','.ReadingsVal($name,'sat','100').','.ReadingsVal($name,'bri','100')}
  • + +
  • :colorpicker,CT,<min>,<step>,<max> - create a color temperature colorpicker
  • + +
  • :colorpicker,BRI,<min>,<step>,<max> - create a brightness colorpicker
  • + +
  • :colorpicker,HUE,<min>,<step>,<max> - create a hue colorpicker
  • + please see the fhem wiki Color section for example screenshots.

    + +=end html + +=cut +*/