# Weather temperature feed to hue bulb colour

**URL:** <https://discourse.nodered.org/t/weather-temperature-feed-to-hue-bulb-colour/52023>\
**Category:** General\
**Created:** [8 October 2021 16:26 UTC](https://discourse.nodered.org/t/weather-temperature-feed-to-hue-bulb-colour/52023 "2021-10-08T16:26:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard238](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/richard238/32/48307_2.png) [@Richard238](https://discourse.nodered.org/u/Richard238)\
**Post date:** [8 October 2021 16:26 UTC](https://discourse.nodered.org/t/weather-temperature-feed-to-hue-bulb-colour/52023/1 "2021-10-08T16:26:26Z")

</div>

I have open weather map showing a temperature gauge on my dashboard, brilliant!

How do I get a hue bulb to respond to the temperature figure deg C., and change colour accordingly?

Thank you.

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [8 October 2021 20:46 UTC](https://discourse.nodered.org/t/weather-temperature-feed-to-hue-bulb-colour/52023/2 "2021-10-08T20:46:01Z")

</div>

First figure out how to control the hue bulb itself. I don't have one, so no can help there, but I think there are hue nodes you can search for.

Then if none of them also supply temp to colour, use a `switch node` with the various settings to chose the output. Or a `function` node with some code to do the same, possibly with `if()`

---

<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:** [7 December 2021 20:46 UTC](https://discourse.nodered.org/t/weather-temperature-feed-to-hue-bulb-colour/52023/3 "2021-12-07T20:46:23Z")

</div>

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