<imgsrc="https://raw.githubusercontent.com/dgtlmoon/changedetection.io/master/docs/screenshot-notifications.png"style="max-width:100%;"alt="Self-hosted web page change monitoring notifications"title="Self-hosted web page change monitoring notifications"/>
<imgsrc="https://raw.githubusercontent.com/dgtlmoon/changedetection.io/master/docs/screenshot-notifications.png"style="max-width:100%;"alt="Self-hosted web page change monitoring notifications"title="Self-hosted web page change monitoring notifications"/>
Now you can also customise your notification content!
Now you can also customise your notification content and use <atarget="_new"href="https://jinja.palletsprojects.com/en/3.0.x/templates/">Jinja2 templating</a> for their title and body!
notification_body=TextAreaField('Notification Body',default='{{ watch_url }} had a change.',validators=[validators.Optional(),ValidateJinja2Template()])
<li><code>discord://</code> only supports a maximum <strong>2,000 characters</strong> of notification text, including the title.</li>
<li><code>discord://</code> only supports a maximum <strong>2,000 characters</strong> of notification text, including the title.</li>
<li><code>tgram://</code> bots cant send messages to other bots, so you should specify chat ID of non-bot user.</li>
<li><code>tgram://</code> bots cant send messages to other bots, so you should specify chat ID of non-bot user.</li>
<li><code>tgram://</code> only supports very limited HTML and can fail when extra tags are sent, <a href="https://core.telegram.org/bots/api#html-style">read more here</a> (or use plaintext/markdown format)</li>
<li><code>tgram://</code> only supports very limited HTML and can fail when extra tags are sent, <a href="https://core.telegram.org/bots/api#html-style">read more here</a> (or use plaintext/markdown format)</li>
<li><code>gets://</code>, <code>posts://</code>, <code>puts://</code>, <code>deletes://</code> for direct API calls (or omit the "<code>s</code>" for non-SSL ie <code>get://</code>)</li>
</ul>
</ul>
</div>
</div>
<div class="notifications-wrapper">
<div class="notifications-wrapper">
@ -41,8 +42,9 @@
<span class="pure-form-message-inline">Format for all notifications</span>
<span class="pure-form-message-inline">Format for all notifications</span>
</div>
</div>
<div class="pure-controls">
<div class="pure-controls">
<span class="pure-form-message-inline">
<p class="pure-form-message-inline">
These tokens can be used in the notification body and title to customise the notification text.
You can use <a target="_new" href="https://jinja.palletsprojects.com/en/3.0.x/templates/">Jinja2</a> templating in the notification title, body and URL.
</p>
<table class="pure-table" id="token-table">
<table class="pure-table" id="token-table">
<thead>
<thead>
@ -53,52 +55,49 @@
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td><code>{base_url}</code></td>
<td><code>{{ '{{ base_url }}' }}</code></td>
<td>The URL of the changedetection.io instance you are running.</td>
<td>The URL of the changedetection.io instance you are running.</td>
</tr>
</tr>
<tr>
<tr>
<td><code>{watch_url}</code></td>
<td><code>{{ '{{ watch_url }}' }}</code></td>
<td>The URL being watched.</td>
<td>The URL being watched.</td>
</tr>
</tr>
<tr>
<tr>
<td><code>{watch_uuid}</code></td>
<td><code>{{ '{{ watch_uuid }}' }}</code></td>
<td>The UUID of the watch.</td>
<td>The UUID of the watch.</td>
</tr>
</tr>
<tr>
<tr>
<td><code>{watch_title}</code></td>
<td><code>{{ '{{ watch_title }}' }}</code></td>
<td>The title of the watch.</td>
<td>The title of the watch.</td>
</tr>
</tr>
<tr>
<tr>
<td><code>{watch_tag}</code></td>
<td><code>{{ '{{ watch_tag }}' }}</code></td>
<td>The tag of the watch.</td>
<td>The tag of the watch.</td>
</tr>
</tr>
<tr>
<tr>
<td><code>{preview_url}</code></td>
<td><code>{{ '{{ preview_url }}' }}</code></td>
<td>The URL of the preview page generated by changedetection.io.</td>
<td>The URL of the preview page generated by changedetection.io.</td>
Base URL used for the <code>{base_url}</code> token in notifications and RSS links.<br/>Default value is the ENV var 'BASE_URL' (Currently "{{settings_application['current_base_url']}}"),
Base URL used for the <code>{{ '{{ base_url }}' }}</code> token in notifications and RSS links.<br/>Default value is the ENV var 'BASE_URL' (Currently "{{settings_application['current_base_url']}}"),
<ahref="https://github.com/dgtlmoon/changedetection.io/wiki/Configurable-BASE_URL-setting">read more here</a>.
<ahref="https://github.com/dgtlmoon/changedetection.io/wiki/Configurable-BASE_URL-setting">read more here</a>.