It opens a websocket connection with Discord to receive PRESENCE_UPDATE
events. Once the target become offline, it makes a red led blinks, and once it comes back online, it turns on the green led.
- Set up your project using the schematic below.
- Download the code.
- Rename the
secrets_sample.h
file tosecrets.h
and fill it. - Upload it to your Arduino.
- You're done!
Once the watched bot will be offline, the red led will blink.
- ArduinoJson (used to deserialize Discord payloads)
- ArduinoWebsockets (used to open a ws connection to Discord)
You will also need to add this link: http://arduino.esp8266.com/stable/package_esp8266com_index.json
to the Additional boards Manager to be able to select Node mcu 1.0
as the card type.
- Arduino esp8266 mod (node mcu 1.0)
- Breadboard
- x2 color leds (one green, one red)
- x2 resistors (220 ohm 1/4 watt)
- x5 wires