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

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]

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

Andy

2 Likes

I found this:

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.

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

mqtt.cetools.org

port 8080

topics is: personal/ucfnaps/downhamweather/windSpeed_mph

Do let me know if you get it working :)

Andy

I shall do.

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

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.

1 Like