Skip to content

An embedded Telegram bot for generic ESP32 boards to send a Wake on LAN magic packets

Notifications You must be signed in to change notification settings

niclimcy/wol-tgbot-esp32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Wake on Lan ESP32 Telegram Bot

An embedded Telegram bot for generic ESP32 boards to send a Wake on LAN magic packets.

This is a sketch for generic ESP32 boards. A telegram bot is hosted on the board and listens for messages. When the /wol command is received, a Wake-on-Lan magic packet is broadcasted on the local network to turn on a target device.

Installation

  • Install the following libraries from the Library Manager of the Arduino IDE:
  • Create a new Telegram bot and configure your BOT_TOKEN and ALLOWED_ID
    You can use @Botfather to create a new bot and @userinfobot to get your ID
  • Fill your WiFi configuration and the MAC address of the PC you want to power on
  • Compile and flash to your ESP32 board

Usage

  • Use /start to get a list of the available commands
  • Use the /wol command to turn on your PC
  • Use the /ping command to check if the bot is online

Credits

This project is based off the Wake on Lan 🤖 ESP32 Telegram Bot for M5Atom by Daniele Salvagni. The main difference is that this version targets generic ESP32 boards instead of the M5Atom.

About

An embedded Telegram bot for generic ESP32 boards to send a Wake on LAN magic packets

Resources

Stars

Watchers

Forks

Languages