Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l1ghtn1ng/wake
A Flask web app to turn on your computer using wake on lan
https://github.com/l1ghtn1ng/wake
flask python3 wake-on-lan wol
Last synced: about 1 month ago
JSON representation
A Flask web app to turn on your computer using wake on lan
- Host: GitHub
- URL: https://github.com/l1ghtn1ng/wake
- Owner: L1ghtn1ng
- License: bsd-3-clause
- Created: 2015-10-19T20:30:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-09-15T06:03:54.000Z (2 months ago)
- Last Synced: 2024-09-15T09:51:08.464Z (2 months ago)
- Topics: flask, python3, wake-on-lan, wol
- Language: Python
- Size: 1.21 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wake
A Flask web app to turn on your computer using wake on lan# Apache
On Ubuntu or Debain you will want to install the following:
* apt-get install apache2
* apt-get install libapache2-mod-wsgi-py3You will want to create an apache conf file for wake under ```/etc/apache2/sites-available``` and name it ```wake.conf```
copy and paste the following and under server name you will want to change it
```
ServerName change me
WSGIScriptAlias / /var/www/html/wake/wake.wsgi
Require all granted
Alias /static /var/www/html/wake/static
Require all granted
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
```You will want to clone this repository next
* git clone https://github.com/L1ghtn1ng/wake.git /var/www/html/
# Dependencies
* Python3.6+
* Flask
* Wakeonlan
* PyyamlTo install these you will need to install pip3 which you can do by ```apt-get install python3-pip```
Then you will want to run* sudo pip3 install flask
* sudo pip3 install wakeonlan
* sudo pip3 install PyyamlOr run ``sudo pip3 -r requirements.txt``
# Adding your computers
Add your computers/servers to computers.yaml like the following;
```yaml
demo1: 30:5a:3a:56:57:58
demo2: 28:c2:dd:g5:b3:e3
```# Final Prep
You are now ready to enable the wake.conf file under ```/etc/apache2/sites-available```* a2ensite wake
Now go to the servers IP address and you should have wake up and running