Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheusvellone/alan-wake
A project to turn on your PC using Telegram + Wake On Lan
https://github.com/matheusvellone/alan-wake
Last synced: 18 days ago
JSON representation
A project to turn on your PC using Telegram + Wake On Lan
- Host: GitHub
- URL: https://github.com/matheusvellone/alan-wake
- Owner: matheusvellone
- Created: 2019-10-07T23:08:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:54:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-26T01:29:23.928Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 615 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Alan Wake [On Lan]
---This project runs a TelegramBot which will listen to a `start` command on Telegram which will send a [Wake-On-Lan Magic Packet](https://en.wikipedia.org/wiki/Wake-on-LAN) to turn on a computer in the network identified by the MAC address.
# Configuration
All configs are set via environment variables (check `.env.example`) and the MAC addresses (+ permissions) are set in a DynamoDB table called `alan-wake`.## DynamoDB table
- The table must contain:
- a string attribute `mac` which is the primary partition key
- a string `alias`
- a list of strings `users`.# Running
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.
# Motivation
- Run the application on a [Omega2+](https://onion.io/store/omega2p/) (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](https://store.steampowered.com) and [Parsec](https://parsecgaming.com/) will also start, allowing me to play my games via Internet.