A Simple program to turning on your PC using WoL from mikrotik via SSH.
Before you do anything, clone this repository
git clone https://github.com/PenDZ-Alter/rewoll-pyThen, install the packages
pip install -r requirements.txt-
There's to options to input your credentials
Using args :
To connect via args, you can use this example command :python main.py -hs <host> -p 22 -u <mikrotik_user> -k <ssh_key_pem> -m <mac_addr> -i <interface>
Using env :
HOST= # Host or IP of mikrotik USER= # Mikrotik user PASS= # Mikrotik pass MAC_TARGET= # MAC Address Target SSH_KEY= # SSH Key Path INTERFACE= # Interface Target PORT= # Port of SSH mikrotik
Don't forget to rename
.env.exampleto.env, otherwise this will not work for you. -
If you using env, simply run this command :
python main.py