2024-10-27 16:01:47 +01:00
2024-04-15 21:35:19 +02:00
2024-04-15 21:35:19 +02:00
2024-10-27 15:59:18 +01:00
404
2024-10-27 16:01:47 +01:00

synology-webhook

This is a simple webhook for Synology NAS devices. It listens for incoming webhooks and executes the specified command.

Installation

  • Copy the script and config to your Synology NAS and make it excecutable.
cd /volume1
sudo wget https://gitlab.lino3d.de/Lino/synology-webhook/-/raw/main/synology-webhook.py
sudo wget https://gitlab.lino3d.de/Lino/synology-webhook/-/raw/main/example.config.json -O config.json
sudo chmod 775 synology-webhook.py
sudo chmod 775 config.json
  • Edit the config.json file to your needs.

  • Create a task in the Task Scheduler to start the script on boot.

    • User must be root

User-defined script for Task Scheduler:

cd /volume1
python synology-webhook.py

Task Scheduler

Shutdown

To shutdown the NAS, send a POST request to http://<your-nas>:48080/shutdown with the following JSON payload:

{
    "message": "<shutdown_keywords set in config.json>"
}

This can be turned on and off in the config.json file or with the webinterface http://<your-nas>:48080.

Description
No description provided
Readme 160 KiB
Languages
Python 100%