{"repo":"SR-G/sleep-on-lan","free":true,"listed":false,"github":"https://github.com/SR-G/sleep-on-lan","clone":"git clone https://github.com/SR-G/sleep-on-lan.git","description":"Multi-platform process allowing to sleep on LAN a linux or windows computer, through wake-on-lan (reversed) magic packets or through HTTP REST requests.","language":"Go","stars":471,"topics":["golang","sleep-on-lan","wake-on-lan","wol"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"Sleep-On-LAN (SOL) Principle Wake-on-LAN is a standard low-level protocol implemented in various hardware. At this time, there is not standard to make the opposite and send a computer in sleep mode. This project allows a windows or linux box to be put into sleep from any other device. It works with the exact same magic packet than for Wake-On-LAN, the only difference is that the MAC address has to be written in reverse order. Technically, you have to run a little daemon (the sleep-on-lan program on your computeri, server, NAS, ... that will listen the same Wake-On-LAN port and send the computer in sleep mode when the reversed MAC address received matches a local address. Additionnaly, it can also be triggered through a REST endpoint (with something like curl ). Executed commands are fully customizable. Written in go , the code shoud run on linux and windows platforms. Usage Grab the latest windows + linux release or snapshot : https://github.com/SR-G/sleep-on-lan/releases/ Sleep through UDP Just send a regular wake-on-lan command but with a reversed MAC address. Thus, the same wake-on-lan tools may be used for both wake and sleep operations (python wake-on-lan script, OpenHab WoL plugin, Android applications, and so on). Provided you are using a wake-on-lan script like this one : wake-on-lan python script (available as a debian package for example), you may use : wakeonlan c4:d9:87:7a:78:35 192.168.255.255 // regular mac address, will wake an asleep computer wakeonlan 35:78:7","default_branch":null,"files":null,"tree":[],"storefront":"/r/SR-G","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SR-G/sleep-on-lan/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}