Replies: 6 comments 9 replies
-
In most templates I've got it down to these: alt1 with \n still "intact" (works good for eg. json curls) alt2 - where newlines needs to be processed already : |
Beta Was this translation helpful? Give feedback.
-
@yoyoma2 If it doesnt work as is maybe it has to be rewritten to set a variable before the EOF like: |
Beta Was this translation helpful? Give feedback.
-
Other people that might be able to test:
|
Beta Was this translation helpful? Give feedback.
-
Tried it on DSM and to get the identical email as before I had to delete an extra space in the script and delete a backslash from the DSM template. Did not try the smtp template but it has the same double backslash as the DSM template.
|
Beta Was this translation helpful? Give feedback.
-
I've now done the edits from feedback and testing to the branch. Still have these to test:
I'll hope for some of the contributors to comment, otherwise I'll try to setup testing myself or push as is and modify further on if needed. |
Beta Was this translation helpful? Give feedback.
-
I spun up a gotify docker instance. Worked! Logged in and set up a pushbullet token and tested. Worked! So all templates are now confirmed working as advertised. I'll keep the discussion open if there's any feedback, suggestions or issues (though maybe open a issue if it's breaking). Thank you guys! |
Beta Was this translation helpful? Give feedback.
-
I've rewritten the new
releasenotes
function in the main script, to add to a new array straight away instead of just printf'ing the items. This due to some issues with different formatting of newlines and cleaner way to handle it with or without releasenotes-addition.Hence rewritten this section in the templates (same in all templates):
Then I also rewrote most templates MessageBody - bits, this is what I fear might break some templates.
There's a branch here: notify-rewrite.
I've changed all templates to what I think will work, but I need to go through and test them all.
Those who run any notification addons are more then welcome to help with testing.
You need both the new
dockcheck.sh
and thenotify_xyz.sh
template of your choice.I suggest you do it in a different directory and not overwrite your current setup.
If you're using git you can clone the branch:
git clone -b notify-rewrite https://github.com/mag37/dockcheck.git
in a new directory.List of current notification templates (will update when tested):
✅ notify_apprise.sh
✅ notify_discord.sh
✅ notify_DSM.sh
✅ notify_generic.sh
✅ notify_gotify.sh
✅ notify_matrix.sh
✅ notify_ntfy-sh.sh
✅ notify_pushbullet.sh
✅ notify_pushover.sh
✅ notify_smtp.sh
✅ notify_telegram.sh
Beta Was this translation helpful? Give feedback.
All reactions