Color sender lets you send a color set via an URL like a form action. You can edit destination URL with decimal or hexadecimal color parameters. Touch the color wheel or lightness slider and URL will be completed and sent.
• Available on App Store https://itunes.apple.com/en/app/color-sender/id570765725?l=en
Application Color sender allows you to change the background color of this frame, used URL will change "background-color" style portion of the frame above. Color sender provide a default demo entry for this test.
First screen give a list of entries names and show last color setting.
Color sender uses an URL to send a color settings and one enable bit. It is therefore possible to control a RGB lamp connected to internet with a URL command, a DIY lamp of this type is described here :
You can specify multiple entries for various URLs or driving multiple lamps or long RGB ribbon light.
No details now about Philips Hue LED wifi bulb.
Application is available for IOS 10.
Use the 'Edit' button to adjust destination URL. You must have selected an entry from list or make a new one with the "+" button.
Use decimal values for URL, put format "%d" after parameter, a decimal variable color will be sent. example:
http://server_IP/command_file.php?s=%d&red=%d&green=%d&blue=%d
Parameters name are free, you must perform corresponding web page with desired settings.
Use tag "%02X" for a replacement in hexadecimal mode, this is practice widely used for web page. example :
http://server_IP/command_file.php?s=%d&color=%02X%02X%02X
This form is web usable after adding a "#" before color value. Javascript, html, php langage will helping you for color definition of an element into a web page.
If switch "use the URL" is activated, hit the color wheel or brightness slider,
URL is completed, tags "%d" (decimal) and "%02X" (hex) will replaced by their value
and sent. Order of parameters cannot be changed : Valid-R-G-B
First parameter is an enable bit 1 or 0 to use the "stop" button and can be detected for starting
lamp by controlled device.
For site developers adjusting certain colors with Color sender can be very demonstrative, you can set a specific page color receiver which will then be placed into some file directly with common format: "#RRGGBB". Page must only returns 1 or 0 for stop button back color management.
Example with previous URL (PHP)
<? $color = $_GET["color"]); $stop = $_GET["s"]; if (!($fp = fopen('color.txt', 'w'))) { return; } fwrite($fp, "#".$color); fclose($fp); echo $stop; ?>
Color is placed in file "color.txt" the output as "#RRGGBB" format can be used directly into a web page.
As shown in the screenshot, if link is incorrect or unanswered stop button is grayed out.
It turns red or white indicating whether lamp is on or off as normal reply from URL.
Action of "stop" button is closure of lamp by passing all parameters to zero.
http://server_IP/command_file.php?s=0&red=0&green=0&blue=0
Nancy 2012-2020 - contact : Pautex JF