IFTTT Webhook SSL server to suspend/wake on lan/poweroff/reboot a Windows-PC and/or a Raspberry Pi.
- Win7: Windows ssh server with key authentication to logon, e.g. Bitvise SSH Server. Win10 has a built-in OpenSSH Server as an optional feature.
- Sysinternals PsShutdown configured to run as administrator.
- Windows and NIC configured for Wake On Lan (WOL) with a magic packet.
- Linux server with systemd and Python 3.5+, e.g. a Raspberry Pi.
- Public IP address and name with a valid SSL certificate, a Let’s Encrypt certificate for a DDNS name will do.
- Copy the example configuration to
webhook.iniand fill in your credentials. - Test the the respective
suspend,wake,poweroff,poweroff_linuxorreboot_linuxcommands without IFTTT connectivity withsudo webhook.py -v [command]. - Create IFTTT applets with an
if this-Button Widget and athen that-Webhook with methodPOST, Content Typeapplication/jsonand a command in theexample.jsonformat. - Run the server in verbose mock mode (no communication with the Windows-PC) with
sudo webhook.py -m -vand check the IFTTT applets. - To double check run the server in production mode with just
sudo webhook.py. - Run
sudo make installto install thewebhook.serviceas a system service.
2022-04-21: Added an optional argument for wake and poweroff to override the mac resp. host configured in webhook.ini.