-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config Generator and CSS/Doc Improvements (#151)
- Loading branch information
Showing
11 changed files
with
81 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ __pycache__/ | |
|
||
# Distribution / packaging / virtualenv | ||
.Python | ||
.bash_history | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
{% load i18n %} | ||
{% block body %} | ||
{% if STATEFUL_MODE != 'disabled' %} | ||
<h4>{% trans "Management for:" %} <em>{{ key }}</em></h4> | ||
<h4>{% trans "Management for Config ID:" %} <em>{{ key }}</em></h4> | ||
<div class="row"> | ||
<div class="col s12"> | ||
<ul class="tabs config-overview"> | ||
|
@@ -75,12 +75,11 @@ <h5>{% trans "Apprise Configuration is Locked" %}</h5> | |
<div class="has-config"> | ||
<div class="section"> | ||
<h5>{% trans "Working Remotely With Your Configuration" %}</h5> | ||
<h6>{% trans "Using The Apprise CLI" %}</h6> | ||
<p> | ||
{% blocktrans %}The following command would cause apprise to directly notify all of your services:{% endblocktrans %} | ||
<br /> | ||
<pre><code class="bash">apprise --body="Test Message" \<br/> | ||
apprise{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/<em>{{key}}</em>/?tags=all</code></pre> | ||
<br /> | ||
{% blocktrans %}Send one or more attachments like this:{% endblocktrans %} | ||
<pre><code class="bash">apprise --body="Test Message" \<br/> | ||
apprise{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/<em>{{key}}</em>/?tags=all \<br/> | ||
|
@@ -95,8 +94,28 @@ <h5>{% trans "Working Remotely With Your Configuration" %}</h5> | |
<br /> | ||
<pre><code class="bash">apprise --body="Test Message" --tag=all \<br/> | ||
--config={{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/get/<em>{{key}}</em></code></pre> | ||
{% blocktrans %}You may also create an <a href="https://github.com/caronc/apprise/wiki/config#cli" target="_blank">Apprise configuration file</a> that contains this line somewhere in it:{% endblocktrans %} | ||
<pre><code class="bash">include {{request.scheme}}://{{request.META.HTTP_HOST}}{{BASE_URL}}/get/<em>{{key}}</em></code></pre> | ||
{% blocktrans %}By leveraging the <em>include</em> directive, it will automatically be referenced for future calls to the <code>apprise</code> tool. All future calls using Apprise now simplify to:{% endblocktrans %} | ||
<pre><code class="bash">apprise --body="Test Message" --tag=all</em></code></pre> | ||
</p> | ||
|
||
{% endif %} | ||
<h6>{% trans "Using CURL" %}</h6> | ||
<p> | ||
{% blocktrans %}The following command would cause the apprise api to notify all of your services:{% endblocktrans %} | ||
<pre><code class="bash">curl -X POST \<br/> | ||
-F "body=Test Message" \<br/> | ||
-F "tags=all" \<br/> | ||
http{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/<em>{{key}}</em></code></pre> | ||
{% blocktrans %}Send one or more attachments like this:{% endblocktrans %} | ||
<pre><code class="bash">curl -X POST \<br/> | ||
-F "tags=all" \<br/> | ||
-F "body=Test Message" \<br/> | ||
-F [email protected] \<br/> | ||
-F attach2=@/my/path/to/Apprise.doc \<br/> | ||
http{% if request.is_secure %}s{% endif %}://{{request.META.HTTP_HOST}}{{BASE_URL}}/notify/<em>{{key}}</em></code></pre> | ||
</p> | ||
</div> | ||
<div class="section"> | ||
<h5>{% trans "Loaded Configuration" %}</h5> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.