Please change the Wi-Fi name (SSID), Wi-Fi password, Bot Token, Chat ID, and Mac Address before using it.
- Install NodeMCU driver. Mine was used from here.
- Install Arduino IDE.
- Open Arduino IDE.
- Click File > Preference.
- Add This URL "http://arduino.esp8266.com/stable/package_esp8266com_index.json" to Additional Board Manager URLs.
- Go to Tools > Board > Board Manager.
- Wait until the update is complete.
- Search esp8266 by ESP8266 Comunity, then install, and wait until the installation is complete.
- After it finishes, Go to Tools > Board > NodeMCU 1.0 (ESP-12E Module). Mine worked for
Generic 8266
. More Info here. - Connect NodeMCU to the PC using the required USB cable and select the port.
- Install
UniversalTelegramBot
andWakeOnLan
from the libraries section. - Click Verify (tick icon) to check if everything is OK.
- Click Upload to flash the NodeMCU.
To enable WoL on Windows 10 (should work on 11 also), use these steps (from windowscentral):
- Open Settings.
- Click on Network & Internet.
- Click on Status.
- Under the "Advanced network settings" section, click the Change adapter options button.
- Right-click the active network adapter and select the Properties option.
- Click the Networking tab.
- Click the Configure button.
- Click the Advanced tab.
- Select the Wake on Magic Packet option.
- Use the "Value" drop-down menu and select the Enabled option.
- (Optional) Select the Wake on pattern match option.
- Use the "Value" drop-down menu and select the Enabled option.
- (Optional) Select the WoL & Shutdown Link Speed option.
- Use the "Value" drop-down menu and select the 10Mbps option.
- Quick note: The optional settings may be required if you use a network adapter from Realtek.
- Click the Power Management tab.
- Check the Allow this device to wake the computer option.
- Check the Only allow a magic packet to wake the computer option. Only enable this if you want to use the magic packet. Otherwise, don’t tick it.
- Click the OK button.
Now boot into BIOS and enable Wake On Lan and relevant settings.
Also, disable Fast Boot on Windows. # Source
- In the Control Panel, open the Power Options item.
- Select the Choose what the power buttons do link.
- Clear the Turn on fast startup (recommended) check box.
- Select Save Settings.
After the PC wakes up and boots into OS, you can control it using TeamViewer (unattended Mode), Google Remote Desktop, or relevant remote desktop software.