Wake on lan – how to with OSMC running 24/7?

I think this would work, if you use suspend on your Vero4k+, then you can edit wake.py with something like this:

nano /home/osmc/.kodi/userdata/wake.py

paste this:

import socket

s=socket.socket(socket.af_inet, socket.sock_dgram)
s.setsockopt(socket.sol_socket, socket.so_broadcast, 1)
s.sendto('\xff'*6+'\x00\x50\x2c\x01\x99\x52'*16, ("255.255.255.255",9))

edit the last line after 6+ you got to add the mac address of your NAS, then CTRL+x y enter to save the file.

Last step make it executable:

chmod +x /home/osmc/.kodi/userdata/wake.py