This project runs a TelegramBot which will listen to a start
command on Telegram which will send a Wake-On-Lan Magic Packet to turn on a computer in the network identified by the MAC address.
All configs are set via environment variables (check .env.example
) and the MAC addresses (+ permissions) are set in a DynamoDB table called alan-wake
.
- The table must contain:
- a string attribute
mac
which is the primary partition key - a string
alias
- a list of strings
users
.
To run in dev mode: npm run dev
.
To run in prod mode: npm run build
and npm start
.
start.sh
file are available to allow starting the application on the startup, which will keep the application running after rebooting the host running this application.
- Run the application on a Omega2+ (Raspberry Pi, Arduino, or anything that runs NodeJS), which will turn on my Home desktop, which is a gaming PC. The Home desktop will boot on Windows (default option in Grub). As soon as Windows boot, Steam and Parsec will also start, allowing me to play my games via Internet.