[feature] Filtering of notifications to show only specific text. For example include only text following "(into) " #2848
Replies: 3 comments 4 replies
-
Its not super clear what you're asking, can you give an example of the text input and text output? |
Beta Was this translation helpful? Give feedback.
-
Sorry for the confusion, basically I am looking for a way to make succinct notifications. I have non techy relations who could use this for a number of tasks so when they get a notification through of what changed on the page it would be very helpful if they could see only the lines that are marked as (into) *. If they see the lines that have (changed)* it will be a case of information overload. I have had to amend the content unfortunately as gives away personal details but in the below example using the {{diff_added}} token I would expect lines through into ntfy including: (changed) stuff that used to exist I only want the lines beginning with (into) to be passed into my notifications (and if possible strip out the (into) characters but that isnt super important). stuff that was added and I need to alert |
Beta Was this translation helpful? Give feedback.
-
This worked great many thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
Version and OS
v0.48.03 running on Docker
Is your feature request related to a problem? Please describe.
I am trying to filter the notifications that are coming back from the website I am monitoring to only include the text following the "(into) " lines. I think a regex of (?<=((into)))(.+) would probably do it but as it doesn't exist on the page it is not being picked up on the "Extract text" section. However, it may be useful to use a regex for example to allow any level of filtering.
Describe the solution you'd like
I would like to be able to only show lines following the "(into) " see redacted example below. It would be ideal to filter out the "(changed) " section completely.
Describe the use-case and give concrete real-world examples
Additional context
In this case I am using a locally hosted ntfy set up to receive the notifications and passing in {{diff_added}}, I have tested with other options such as {{triggered_text}} but this didnt seem to do what I wanted. If there is something that exists already that will manage this please let me know :)
Beta Was this translation helpful? Give feedback.
All reactions