Ok, so I know how to check what other devices are on the home network (using arp-scan), and I know how to wake devices via WoL from the Raspberry Pi...
Absolutely no idea how to put the two together and send a WoL packet to the server when someone isn't on the home network.
Where do I start? A bash script? Python? I have absolutely zero coding experience (though can learn pretty fast!).