I wrote little script on JavaScript for Node.JS, that allows show the functional PowerOn button of device in the user WEB-browser. Thus you may turn on the computer(s) from internet even from smartphone. Script may use for turning on multiple devices in workspace(home) network.
- The PowerOn target is formed from the addres bar, wich contains MAC-address with added password;
- Script on the server side used Linux-programm ‘wakeonlan’ for formation turn on command;
- On server disk has logging turn on commands and failures the calling interface (wrong password). Fixes access time, IP-addresses and web-client.
- System requirements: on server – Linux, wakeonlan(wol), node.js+express+fs+child_process;
- on client: in BIOS(UEFI) and ОС enabled WakeOnLan.
- You can turn on multiple devices separately;
- Logging presses PowerOn button;
- In log of the failures contain success interface call;
- Not implemented log rotation;
* Note: so that you can turn on devices from the Internet – the simplest case is when the server is directly connected to the Internet and has a static external IP. But if this is not the case, it does not matter: you can set up port forwarding (NAT) on the router and set up a domain with a dynamic IP (for example, through NoIP.com), and access the server through the domain name.
Download “Rubilnik”
Rubilnik-1.zip – Downloaded 472 times – 5.77 KB