Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[7.0.0-beta.1] Running notify from command line does not trigger Discord notification

  • Minor

I'm trying to set up a notification on my backup server for when the backup finishes:

/usr/local/emhttp/webGui/scripts/notify -e "Rclone" -s "Backup Complete" -d "$(grep ETA rclone-test.log | sed 's/B.*/B/g')" -m "$(sed 's/$/\<br\>/' rclone-test.log|tr -d '\n')" -i "normal"

But for whatever reason, this does not seem to trigger a discord notification. It works fine on my main server running 6.12.10, although when I do that I get an error (even though it does create the discord notification):

/boot/config/plugins/dynamix/notifications/agents/._Discord.sh: /boot/config/plugins/dynamix/notifications/agents/._Discord.sh: cannot execute binary file

 

Edit: I should note that it does work when I do the "test" notification in the gui, so it's not an issue with the webhook url

 

Edit2: I just tested this with ```/usr/local/emhttp/webGui/scripts/notify -s "TEST"``` and got no output in Discord

 

Edit3: Did some more testing::

This outputs no issues to discord:

EVENT="Rclone" SUBJECT="Backup Complete" DESCRIPTION="$(grep ETA rclone-test.log | sed 's/B.*/B/g'|tr -d '\t')" CONTENT="$(sed 's/$/\<br\>\\n/' rclone-test.log|tr -d '\t')" IMPORTANCE="normal" bash /boot/config/plugins/dynamix/notifications/agents/Discord.sh

This outputs to the unraid notifications, but not discord:

EVENT="Rclone" SUBJECT="Backup Complete" DESCRIPTION="$(grep ETA rclone-test.log | sed 's/B.*/B/g'|tr -d '\t')" CONTENT="$(sed 's/$/\<br\>\\n/' rclone-test.log|tr -d '\t')" IMPORTANCE="normal" notify -e "$EVENT" -s "$SUBJECT" -d "$DESCRIPTION" -m "$CONTENT" -i "$IMPORTANCE"

 

So I think the issue is somewhere inside the notify script that's not calling the discord script.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.