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.

Support for Discord notifications?

Featured Replies

I've tried using the webhook from the Slack portion of Notification Settings but I'm not getting any notifications on my Discord server.

Is there a way to get this working, or are there plans of it happening? The last mention of it I see is from this thread, but under the Management line it just says "webgui: webGui: use JSON for Slack notifications since it is preferred and may work better for 3rd party webhooks (e.g. Discord)."

Thanks for any info!
 

  • Author

Bumping this back to the first page.

  • Author

Alright, I found a way and I'll leave it here for those who have the same question in the future.

 

Slack

  1. Sign up for Slack and make a Workplace
  2. Add the Incoming WebHooks app (https://slack.com/apps/A0F7XDUAZ-incoming-webhooks?next_id=0) to a specific channel within your Slack Workspace
  3. Note down or keep the tab open that gives you the Webhook URL

 

Unraid

  1. Go to Settings > Notifications
  2. Enable the Slack agent, enter the webhook URL you created
  3. Set the rest of the options to what you’d like

 

Zapier

  1. Sign up for Zapier and begin to make a Zap that includes Slack and Discord:
  2. Trigger:
  3. Slack Trigger: New Message Posted to Channel
  4. Select Slack Account you created
  5. Choose the same channel you setup with the webhook above, and allow ‘Trigger for Bot Messages?’
  6. Do the message pull test to confirm it worked
  7. Action:
  8. Discord Action: Send Channel Message
  9. Select Discord account you use for your server
  10. Choose the channel you would like notifications be sent to
  11. Click the button in the top right of the text box and select ‘New Message Posted to Channel’
  12. Set the rest of the options to what you’d like

 

I've had this working for some test messages and I'll update if I have any issues.

Edited by ctrlaltd1337

  • 3 months later...
  • 10 months later...

Does this method still work, as it only works for me if I select one thing to send (Timestamp, Description, etc..). When I select multiple the test doesn't send anything.

The test works for me, but i also have Telegram enabled, and now i only get Telegram messages.

On 3/20/2020 at 8:53 AM, ygrichman said:

Does this method still work, as it only works for me if I select one thing to send (Timestamp, Description, etc..). When I select multiple the test doesn't send anything.

It is still working for me.  However I only send through the Subject and Description.
Attached is what I received this morning for my weekly notifications.

iOS Notification.jpg

I just tried switching to just subject and description but I still don't get anything apart from occasional messages that are just some asterisks.

Weird Issue.

 

  • 2 weeks later...

I've worked around the issue manually, I'll post it here in case anyone else has the same issue. 

Make sure the Slack notification service is enabled. Open the terminal and enter this:

cd /boot/config/plugins/dynamix/notifications/agents
sudo nano Slack.sh

Delete the script that is already there and replace it with the one below. Remember to add your Discord Webhook URL (don't add /slack to the end) and modify the message format if you want.

#!/bin/bash
############
#Insert Your Discord Webhook URL (Don't add /slack to the end)
WEBH_URL=""

#Enter Your Messaging Format (Look at Unraid GUI for the names of the available variables to use here)
#(Also Supports Markdown formatting such as the **BOLD** markup I use in below example)
MESSAGE="**$SUBJECT**\n$DESCRIPTION\n$CONTENT"
############
curl -k -X POST --header 'Content-Type: application/json' -d "{\"content\": \"$MESSAGE\"}" $WEBH_URL 2>&1

The default message format I've used in the script will look like this in Discord:

1826542209_UnraidDiscordNotificationExample.png.86e4a0d3f7c059deedab8cb074e77b65.png

 

From this point on do not edit the Slack settings in Unraid's GUI as it will most likely overwrite the modifications you've made. You can still use the Test button.

Hope this helps, feel free to ask if you need any help with this.

Edited by ygrichman

  • 2 weeks later...
On 4/3/2020 at 7:16 AM, ygrichman said:

I've worked around the issue manually, I'll post it here in case anyone else has the same issue. 

Hey, thanks for this. I expanded on what you did and put it into an event card. Here it is if you want it:

 

CE9o0Sq.png

 

https://gist.github.com/Log1x/0c24e25952d039fa7e708d5205cd94f9

@Log1x Wow that looks a lot better, I saw the settings to do this in the API but decided not to push my luck, as I was happy just to get it working at all.

Will definitely switch to this, thanks.

  • 2 months later...

@Log1x I tried your card and it doesn't work with the slack test. Is this what you see as well? If so, do you know why? I love the idea and design but would like to test it out. Thanks!

3 minutes ago, coldwar7 said:

@Log1x I tried your card and it doesn't work with the slack test. Is this what you see as well? If so, do you know why? I love the idea and design but would like to test it out. Thanks!

It's working on my end. Did you mean to add a screenshot to your reply?

@Log1x I did not think to add a screenshot but, with more effort, I found my issue. I was following the suggestion of adding "/slack" at the end of the webhook and that is apparently not needed in your script. Thank you for your quick response though!

  • 1 month later...

@Log1x

 

This is great!

 

Thanks for sharing.  I am getting 2 of every notification though.  Any ideas as to why?

Edited by danktankk

  • 7 months later...

Archived

This topic is now archived and is closed to further replies.

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.