# MQTT Script for tThe Plasma Stick 2040 W (Pico W Aboard) by Pimoroni

**URL:** <https://forums.pimoroni.com/t/mqtt-script-for-tthe-plasma-stick-2040-w-pico-w-aboard-by-pimoroni/20743>\
**Category:** Learning Resources\
**Created:** [November 17, 2022, 9:17pm UTC](https://forums.pimoroni.com/t/mqtt-script-for-tthe-plasma-stick-2040-w-pico-w-aboard-by-pimoroni/20743 "2022-11-17T21:17:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smithee11](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Smithee11](https://forums.pimoroni.com/u/Smithee11)\
**Post date:** [November 17, 2022, 9:17pm UTC](https://forums.pimoroni.com/t/mqtt-script-for-tthe-plasma-stick-2040-w-pico-w-aboard-by-pimoroni/20743/1 "2022-11-17T21:17:01Z")

</div>

In a similar vein to the Galatic Unicorn MQTT scroller in a previous post, I have also uploaded a version for the Plasma Stick 2040W.

So it takes in an MQTT feed and changes the colour accordingly. I’m using it in a ships lamp to show the live wind speed with the colour spread between 0 and 40 mph - all files and an example at:

[[GitHub - digitalurban/MQTT-Plasma-Stick-2040W: MQTT Script for the Plasma Stick 2040 W (Pico W Aboard) by Pimoroni](https://github.com/digitalurban/MQTT-Plasma-Stick-2040W)]

 ![IMG_1497](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/2/2ee82edc6d1eef83c55077f48f2e2eb41c8bcd64.jpeg)

Hope its useful to someone (and Ships Lamps are great to retrofit)!

Andy

---

<div class="post-metadata">

**Author:** ![Richard238](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard238](https://forums.pimoroni.com/u/Richard238)\
**Post date:** [March 27, 2023, 9:27pm UTC](https://forums.pimoroni.com/t/mqtt-script-for-tthe-plasma-stick-2040-w-pico-w-aboard-by-pimoroni/20743/2 "2023-03-27T21:27:06Z")

</div>

I found this:

```auto
MQTT_Topic = "/windSpeed_mph" #Edit for Your Own Feed

```

What’s the full url/ip address for the MQTT server/broker to subscribe to Connected Environments Lab at University College London?

Thank you.

---

<div class="post-metadata">

**Author:** ![Smithee11](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Smithee11](https://forums.pimoroni.com/u/Smithee11)\
**Post date:** [March 28, 2023, 9:56am UTC](https://forums.pimoroni.com/t/mqtt-script-for-tthe-plasma-stick-2040-w-pico-w-aboard-by-pimoroni/20743/3 "2023-03-28T09:56:23Z")

</div>

Its mainly made to add your own feed, but ours is public - so

[mqtt.cetools.org](http://mqtt.cetools.org)

port 8080

topics is: personal/ucfnaps/downhamweather/windSpeed\_mph

Do let me know if you get it working :)

Andy

---

<div class="post-metadata">

**Author:** ![Richard238](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard238](https://forums.pimoroni.com/u/Richard238)\
**Post date:** [March 28, 2023, 10:23am UTC](https://forums.pimoroni.com/t/mqtt-script-for-tthe-plasma-stick-2040-w-pico-w-aboard-by-pimoroni/20743/4 "2023-03-28T10:23:19Z")

</div>

I shall do.

The subscription is working well:  
Checked against current met office readings.

```auto
Connected to broker
Current wind speed = 5
Current wind speed = 5
Current wind speed = 5
Current wind speed = 6
Current wind speed = 7
Current wind speed = 7

```

Although ultimately yours is a guide to a similar thing I’m trying to do with MQTT publishing sensor data, and another Pi on the same LAN subscribing and displaying that data in a colourful, easy to understand way.

Thank you for the additional detail.
