Plex Status Light
Hello, my plex server is a part of my home lab so I really enjoy quickly being able to see if something is being streamed. This status light is perfect for that. The code is janky, im not very well versed in anything C.
How it works
- ESP8266 Connects to WiFi on startup(lights will blink during this process)
- Red Light when unable to connect to WiFi
- Every 5 seconds a call will be made to the plex server(specifically the sessions call)
- Blue light will connect if no users are streaming
- Green light will connect if users are streaming
- Red light if the sessions call fails.
Supplies
- ESP8266
- WS2812B LED
- Female to Female Jumper Wires
- Soldering Iron
- Hot Glue Gun
Setup NODEMCU ESP8266 to Work With Arduino IDE
Connect LED to ESP8266
Wires Image:
- Here you can see the jumper wires I used
- Female side connects to ESP8266
- Exposed wire side connects to led pads
LED Image
- Important to solder the wires to the left of the arrow.
ESP8266 Image
- Take note of which wires are connect to which pins.
- 3v3 will connect to 5v on the LED.
- GND will connect to GND on the LED.
- D3 will connect to DI on the LED(Any data pin will work on the ESP8266.
Get the Sessions Call
- Open up the network tab in dev tools.
- Navigate to your plex server url.
- Look for the sessions call (in the image i used the search)
- Click the sessions call, if you see what I have in the uploaded image that is the correct call.
- Right click this call and copy -> copy link address
Set Up the Code
Here's the code
Things to edit
- Line 7 -> Number of LED's
- Line 11 -> Data Pin #
- Line 15 -> Enter your SSID
- Line 16 -> Enter your WiFi Password
- Line 61 -> Enter the copied session call url from the previous step
- Load into ESP8266
Display
I had a block that I previously made when messing with epoxy resin. So I paired that with a block of wood and solders + hot glued everything together.