PL9823 Web Controlled LEDs

Introduction


We thought we would start with something a bit whimsical. 

Since we are early in the academic year


 


This all started when my my wife decided that we should do something with the 60 or so telephone insulators she has been collected for the past 30+ years.  Perhaps put a led in them and stick them in the garden she suggested.

So ... I went looking on Ali Express for cheap LEDs.  Thinking a bunch of different coloured LEDs would be fun.  And I found:






Thanks to:
And I built the following.  The real thing is wandering about here somewhere with a battery attached to it.

I then spent the next month off and on writing led "programs" so that pushing the button does something.

It then occurred to me that use a web page could web control the selection of light program.

Credentials

  • URL is:  10.10.45.10
  • ID: pl9823
  • PW: neopixelnot   (neopixel belongs to adafruit)
  • If you want to control the lights you need to be connected to the Steele ssid (wifi network).



  • Details

    Code



    And there is a problem.  We put a password on the request to get the web page to change the lights but look:

    Anyone with network packet analyzer like wireshark can see the ID and Password!

    And then the web page is displayed



    HTTPS vs HTTP

    Our proposed solution is to create a middle man to handle https.  So the http is only on a LAN, not the less forgiving WAN.



    Are there topics you would like to see?