Сообщения

Сообщения за февраль, 2023

§231. ESP32 + WakeOnLan + Telegram: remote computer start

Изображение
For a quick and reliable way to turn on a computer from anywhere, without the need to forward broadcast packets or maintain local servers, a Telegram bot on an ESP32. Key benefits: 🍃Low power consumption 📶Wireless ❌💻No need for raspberry pi or equivalents ❌🕸️ Don't need a static IP To create such a bot, you need to use an ESP32 dev board, which can connect to a local network via Wi-Fi and consumes very little power — less than half a watt. For ease of use, you can use the Arduino Framework. The code for the bot should be simple and clear and can be found on GitHub. To compile, you need to install additional libraries: WakeOnLan UniversalTelegramBot Configuration The code also revised the reboot of the board once every 4 hours so that the board does not freeze. And using the Telegram API every 5 seconds. Usage Using the bot is very simple — just send the /start command to get a list of available commands and use the /wol command.