Skip to content

πŸ€– An embedded telegram bot for M5Atom (ESP32) to send a Wake on Lan packet on the local network to turn on my PC.

Notifications You must be signed in to change notification settings

pmarkoulidakis/wol-bot-esp32

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Wake on Lan πŸ€– ESP32 Telegram Bot

An embedded telegram bot for M5Atom to send a WOL packet on the local network.
Blog post with more info: https://dan.salvagni.io/b/embedded-telegram-bot-for-wake-on-lan-pc/

Wake-on-Lan Telegram Bot

πŸ“„ Description

This is a sketch for the M5Atom ESP32 board. 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 in order to turn on a target device.

πŸͺ™ You can keep it running for about 1$ in electricity per year, the power consumption is less than half a watt.

βš™οΈ 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

πŸ”Ž Usage

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

βœ… TODO List

  • Refactor code
  • Store network configuration in EEPROM
  • Add configuration commands to Telegram bot

About

πŸ€– An embedded telegram bot for M5Atom (ESP32) to send a Wake on Lan packet on the local network to turn on my PC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%