# Dashboard colourpicker to HTTP response

**URL:** <https://discourse.nodered.org/t/dashboard-colourpicker-to-http-response/68823>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [10 October 2022 17:26 UTC](https://discourse.nodered.org/t/dashboard-colourpicker-to-http-response/68823 "2022-10-10T17:26:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zappbranningan](https://avatars.discourse-cdn.com/v4/letter/z/5f9b8f/32.png) [@Zappbranningan](https://discourse.nodered.org/u/Zappbranningan)\
**Post date:** [10 October 2022 17:26 UTC](https://discourse.nodered.org/t/dashboard-colourpicker-to-http-response/68823/1 "2022-10-10T17:26:55Z")

</div>

Hi, I'm new to node red.  
I want to get an RGB value from colour picker with a 'HTTP in' and a 'HTTP response'.  
I made the following flow:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/0024c3dae5ef37faed935d601e3b439c5d85d12a.png)  
The 'change' node is set as follows  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/03fac4f4c07d6988d0ac5b22373ad42c0be8a7dc.png)  
So when I change the value with the colour picker:  
I get the value stored in 'flow'  
But when I start the GET from my browser or my STM32, I get empty {}  
After the operation, the flow is also empty:  
I tried looking in the forum, but I couldn't find the right way to do it (probably my question is mach to easy).

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [10 October 2022 18:11 UTC](https://discourse.nodered.org/t/dashboard-colourpicker-to-http-response/68823/2 "2022-10-10T18:11:30Z")

</div>

Separate the flows as payload from httpin will be saved to.  
e.g.

```auto
[{"id":"31f7e9697b6817a5","type":"ui_colour_picker","z":"366a43adb328cf95","name":"","label":"","group":"2d4fe667.28f8ba","format":"hex","outformat":"string","showSwatch":true,"showPicker":false,"showValue":false,"showHue":false,"showAlpha":false,"showLightness":true,"square":"false","dynOutput":"false","order":16,"width":0,"height":0,"passthru":true,"topic":"topic","topicType":"msg","className":"","x":150,"y":120,"wires":[["8c61f7adb1391c91"]]},{"id":"8c61f7adb1391c91","type":"change","z":"366a43adb328cf95","name":"","rules":[{"t":"set","p":"picker","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":120,"wires":[[]]},{"id":"b9b85b68ab56f5fc","type":"http in","z":"366a43adb328cf95","name":"","url":"blah","method":"get","upload":false,"swaggerDoc":"","x":140,"y":260,"wires":[["20913911b1929f8d"]]},{"id":"20913911b1929f8d","type":"change","z":"366a43adb328cf95","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"picker","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":260,"wires":[["a1da749adc937b09"]]},{"id":"a1da749adc937b09","type":"http response","z":"366a43adb328cf95","name":"","statusCode":"","headers":{},"x":530,"y":260,"wires":[]},{"id":"2d4fe667.28f8ba","type":"ui_group","name":"demo","tab":"1caa8458.b17814","order":1,"disp":true,"width":"12","collapse":false},{"id":"1caa8458.b17814","type":"ui_tab","name":"Demo","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

 ![chrome_screenshot_1665425452852](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/6/862ca62357f0c468ac9491f8a4b5561e3845ffc1.png)

---

<div class="post-metadata">

**Author:** ![Zappbranningan](https://avatars.discourse-cdn.com/v4/letter/z/5f9b8f/32.png) [@Zappbranningan](https://discourse.nodered.org/u/Zappbranningan)\
**Post date:** [10 October 2022 18:34 UTC](https://discourse.nodered.org/t/dashboard-colourpicker-to-http-response/68823/3 "2022-10-10T18:34:28Z")

</div>

> [@E1cid](#):
>
> ```auto
> [{"id":"31f7e9697b6817a5","type":"ui_colour_picker","z":"366a43adb328cf95","name":"","label":"","group":"2d4fe667.28f8ba","format":"hex","outformat":"string","showSwatch":true,"showPicker":false,"showValue":false,"showHue":false,"showAlpha":false,"showLightness":true,"square":"false","dynOutput":"false","order":16,"width":0,"height":0,"passthru":true,"topic":"topic","topicType":"msg","className":"","x":150,"y":120,"wires":[["8c61f7adb1391c91"]]},{"id":"8c61f7adb1391c91","type":"change","z":"366a43adb328cf95","name":"","rules":[{"t":"set","p":"picker","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":120,"wires":[[]]},{"id":"b9b85b68ab56f5fc","type":"http in","z":"366a43adb328cf95","name":"","url":"blah","method":"get","upload":false,"swaggerDoc":"","x":140,"y":260,"wires":[["20913911b1929f8d"]]},{"id":"20913911b1929f8d","type":"change","z":"366a43adb328cf95","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"picker","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":260,"wires":[["a1da749adc937b09"]]},{"id":"a1da749adc937b09","type":"http response","z":"366a43adb328cf95","name":"","statusCode":"","headers":{},"x":530,"y":260,"wires":[]},{"id":"2d4fe667.28f8ba","type":"ui_group","name":"demo","tab":"1caa8458.b17814","order":1,"disp":true,"width":"12","collapse":false},{"id":"1caa8458.b17814","type":"ui_tab","name":"Demo","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
> 
> ```

Wow, that worked, thanks for the incredibly fast reply. couldn't sleep before this was resolved. Now I can go to bed 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 November 2022 18:34 UTC](https://discourse.nodered.org/t/dashboard-colourpicker-to-http-response/68823/4 "2022-11-09T18:34:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
