Code Monkey home page Code Monkey logo

wol-bot-esp32's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.