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.ini
and fill in your credentials. - Test the the respective
suspend
,wake
,poweroff
,poweroff_linux
orreboot_linux
commands 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/json
and a command in theexample.json
format. - Run the server in verbose mock mode (no communication with the Windows-PC) with
sudo webhook.py -m -v
and check the IFTTT applets. - To double check run the server in production mode with just
sudo webhook.py
. - Run
sudo make install
to install thewebhook.service
as a system service.
2022-04-21: Added an optional argument
for wake
and poweroff
to override the mac
resp. host
configured in webhook.ini
.