jlaning

Members
  • Posts

    2
  • Joined

  • Last visited

jlaning's Achievements

Noob

Noob (1/14)

7

Reputation

  1. After some initial investigation, it seems that at least maybe dropping a custom script into the directory /boot/config/plugins/dynamix/notifications/agents/ would work based on the code in /usr/local/emhttp/plugins/dynamix/scripts/notify but I haven't tested this. However, a UI way of doing this would be preferred. EDIT: Creating a script /boot/config/plugins/dynamix/notifications/agents/ntfy worked (as a temp solution). Here's my example for ntfy.sh #!/bin/bash curl -u "user:pass" \ -H "Title: ${SUBJECT}" \ -H "Tags: unRAID" \ -d "Event: ${EVENT} Subject: ${SUBJECT} Description: ${DESCRIPTION} Importance: ${IMPORTANCE} Time: $(date '+%Y-%m-%d %H:%M:%S') ${CONTENT}" \ https://ntfy.domain.tld/unRAID
  2. There are notification agents that aren't included in unRAID, ntfy.sh for example. It would be great if one of the notification agents could just be a user script, or multiple. This way you could write your own notification command and not have to wait for your preferred agent to be added officially. Then you user script could be something along the lines of (for ntfy.sh): curl \ -H "Title: $UNRAID_NOTIF_SUBJECT" \ -H "Priority: default" \ -H "Tags: unRAID" \ -d "$UNRAID_NOTIF_DESC" \ ntfy.sh/unraid_notifs where there are a defined list of environment variables passed to it such as: UNRAID_NOTIF_SUBJECT UNRAID_NOTIF_EVENT UNRAID_NOTIF_TIMESTAMP UNRAID_NOTIF_DESC UNRAID_NOTIF_IMPORTANCE UNRAID_NOTIF_CONTENT UNRAID_NOTIF_LINK ...