|
|
|
|
|
by muxator
814 days ago
|
|
No big deal, but instead of running "wakeonlan" as a subprocess: import subprocess
[...]
result = subprocess.run(["wakeonlan", "MY:MA:CA:DD:RE:SS"], capture_output=True)
The magic packet could be built and broadcast in pure python, without introducing a dependency on an external binary.For example, one could take inspiration from the code at https://github.com/remcohaszing/pywakeonlan/blob/main/wakeon... |
|