Download Station and Notifications -- Any Hacks to Fix it? [SOLVED]
-
- New here
- Posts: 9
- Joined: Sun Jun 27, 2021 6:09 am
Download Station and Notifications -- Any Hacks to Fix it? [SOLVED]
Has anyone ever gotten Download Station to work with Notification Center or to issue any form of alert or event to trigger a notification? Let's face it, informing Qnap of any problem is a waste of time so I'm only interested in any hacks OR insights into how Download Station works ppl have discovered or implemented to fix this standing problem. Please dont suggest the always worthless answer, "Create a Ticket".
Last edited by crosis on Thu Aug 12, 2021 6:27 pm, edited 1 time in total.
-
- New here
- Posts: 9
- Joined: Sun Jun 27, 2021 6:09 am
Re: Download Station and Notifications -- Any Hacks to Fix it?
SOLVED
Of course the solution wasnt relying on QNAP for a fix or anything within the Web GUI. From shell I'm making use of inotifywait to watch a path that changes then using the "notify" command to send a message to Notification Center.
For posterity ...
0. Install the Entware_STD package then SSH into the NAS
1. type: opkg install inotifywatch
2. Add the following into your NAS startup script so that it is run each time your NAS restarts up. This monitors for newly created content in the path_to_monitor:
3. Within QTS Web GUI go to Notification Center and create an Alert Notification. Severity Level: Information, Filter: Includes, Keyword: Download Complete:
Of course the solution wasnt relying on QNAP for a fix or anything within the Web GUI. From shell I'm making use of inotifywait to watch a path that changes then using the "notify" command to send a message to Notification Center.
For posterity ...
0. Install the Entware_STD package then SSH into the NAS
1. type: opkg install inotifywatch
2. Add the following into your NAS startup script so that it is run each time your NAS restarts up. This monitors for newly created content in the path_to_monitor:
Code: Select all
inotifywait --monitor --event create <path_to_monitor> | while read path action file; do
notify send -A A047 -M 0 -l info -t 3 -C 0 "Download Complete: $file"
done &