# Controlling a set of LEDs using a temperature value (obtained from OpenWeatherMap)

**URL:** <https://discourse.nodered.org/t/controlling-a-set-of-leds-using-a-temperature-value-obtained-from-openweathermap/22517>\
**Category:** Share Your Projects\
**Created:** [2 March 2020 18:13 UTC](https://discourse.nodered.org/t/controlling-a-set-of-leds-using-a-temperature-value-obtained-from-openweathermap/22517 "2020-03-02T18:13:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [2 March 2020 18:13 UTC](https://discourse.nodered.org/t/controlling-a-set-of-leds-using-a-temperature-value-obtained-from-openweathermap/22517/1 "2020-03-02T18:13:30Z")

</div>

Here's a link to the tutorial guide for my IoT students.

This week I've set them the task of controlling a set of three LEDs from a temperature reading (from OpenWeatherMap). The idea is to turn on the appropriately coloured LED depending on the temperature reading. The tutorial guide explains the shortcomings of sending a series of MQTT messages and suggests using a Rule Set (within the Wemos D1 Mini flashed with ESP-Easy firmware) to improve performance across the local area network.

[Tutorial guide](http://resources-area.co.uk/node-red-flows/control_leds_using_temp_value.pdf)

---

<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:** [1 May 2020 18:13 UTC](https://discourse.nodered.org/t/controlling-a-set-of-leds-using-a-temperature-value-obtained-from-openweathermap/22517/2 "2020-05-01T18:13:31Z")

</div>

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