Controls a computers power button.
A cursed hardware implementation for WakeOnLan using a esp8266 running a simple Telegram bot controlling a relay.
- 5v Relay board.
- nodemcu v3.
- a few wires.
Breakout the power button wires.
Build the schematic.
Install the esp8266 package and the UniversalTelegramBot library.
Compile...
Aaaaaand upload.
- Only responds to a specified client_id so no one else can turn on your pc.
- Use something other than Telegram lol.
- Add timer class instead of loose variables.
- Log declined commands to file.
- Steal laptops USB power so we don't have to use a external adapter
- poweroff time longer?