change URL to simplecloudnotifier.de
This commit is contained in:
parent
4210af5680
commit
686f89f75d
@ -40,7 +40,7 @@ func NewRouter(app *logic.Application) *Router {
|
||||
// @title SimpleCloudNotifier API
|
||||
// @version 2.0
|
||||
// @description API for SCN
|
||||
// @host scn.blackforestbytes.com
|
||||
// @host simplecloudnotifier.de
|
||||
//
|
||||
// @tag.name External
|
||||
// @tag.name API-v1
|
||||
|
@ -6,7 +6,7 @@
|
||||
"contact": {},
|
||||
"version": "2.0"
|
||||
},
|
||||
"host": "scn.blackforestbytes.com",
|
||||
"host": "simplecloudnotifier.de",
|
||||
"basePath": "/",
|
||||
"paths": {
|
||||
"/": {
|
||||
|
@ -681,7 +681,7 @@ definitions:
|
||||
username:
|
||||
type: string
|
||||
type: object
|
||||
host: scn.blackforestbytes.com
|
||||
host: simplecloudnotifier.de
|
||||
info:
|
||||
contact: {}
|
||||
description: API for SCN
|
||||
|
@ -1,8 +1,8 @@
|
||||
<div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/env bash</span>
|
||||
|
||||
<span class="c1">#</span>
|
||||
<span class="c1"># Wrapper around SCN ( https://scn.blackforestbytes.com/ )</span>
|
||||
<span class="c1"># ========================================================</span>
|
||||
<span class="c1"># Wrapper around SCN ( https://simplecloudnotifier.de/ )</span>
|
||||
<span class="c1"># ======================================================</span>
|
||||
<span class="c1">#</span>
|
||||
<span class="c1"># ./scn_send [@channel] title [content] [priority]</span>
|
||||
<span class="c1">#</span>
|
||||
@ -51,9 +51,9 @@ usage<span class="o">()</span><span class="w"> </span><span class="o">{</span>
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="k">if</span><span class="w"> </span><span class="o">[[</span><span class="w"> </span><span class="s2">"</span><span class="si">${</span><span class="nv">args</span><span class="p">[0]</span><span class="si">}</span><span class="s2">"</span><span class="w"> </span><span class="o">=</span>~<span class="w"> </span>^@.*<span class="w"> </span><span class="o">]]</span><span class="p">;</span><span class="w"> </span><span class="k">then</span>
|
||||
<span class="w"> </span><span class="nv">channel</span><span class="o">=</span><span class="s2">"</span><span class="si">${</span><span class="nv">args</span><span class="p">[0]</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="w"> </span><span class="nv">channel</span><span class="o">=</span><span class="s2">"</span><span class="si">${</span><span class="nv">args</span><span class="p">[0]</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="w"> </span><span class="nb">unset</span><span class="w"> </span><span class="s2">"args[0]"</span>
|
||||
<span class="w"> </span><span class="nv">channel</span><span class="o">=</span><span class="s2">"</span><span class="si">${</span><span class="nv">channel</span><span class="p">:</span><span class="nv">1</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="w"> </span><span class="nv">channel</span><span class="o">=</span><span class="s2">"</span><span class="si">${</span><span class="nv">channel</span><span class="p">:</span><span class="nv">1</span><span class="si">}</span><span class="s2">"</span>
|
||||
<span class="k">fi</span>
|
||||
|
||||
<span class="k">if</span><span class="w"> </span><span class="o">[</span><span class="w"> </span><span class="si">${#</span><span class="nv">args</span><span class="p">[@]</span><span class="si">}</span><span class="w"> </span>-lt<span class="w"> </span><span class="m">1</span><span class="w"> </span><span class="o">]</span><span class="p">;</span><span class="w"> </span><span class="k">then</span>
|
||||
@ -98,7 +98,7 @@ usage<span class="o">()</span><span class="w"> </span><span class="o">{</span>
|
||||
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"msg_id=</span><span class="nv">$usr_msg_id</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"channel=</span><span class="nv">$channel</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span>--data<span class="w"> </span><span class="s2">"sender_name=</span><span class="nv">$sender</span><span class="s2">"</span><span class="w"> </span><span class="se">\</span>
|
||||
<span class="w"> </span><span class="s2">"https://scn.blackforestbytes.com/"</span><span class="w"> </span><span class="k">)</span>
|
||||
<span class="w"> </span><span class="s2">"https://simplecloudnotifier.de/"</span><span class="w"> </span><span class="k">)</span>
|
||||
|
||||
<span class="w"> </span><span class="nv">curlout</span><span class="o">=</span><span class="s2">"</span><span class="k">$(</span>cat<span class="w"> </span><span class="s2">"</span><span class="nv">$outf</span><span class="s2">"</span><span class="k">)</span><span class="s2">"</span>
|
||||
<span class="w"> </span>rm<span class="w"> </span><span class="s2">"</span><span class="nv">$outf</span><span class="s2">"</span>
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Wrapper around SCN ( https://scn.blackforestbytes.com/ )
|
||||
# ========================================================
|
||||
# Wrapper around SCN ( https://simplecloudnotifier.de/ )
|
||||
# ======================================================
|
||||
#
|
||||
# ./scn_send [@channel] title [content] [priority]
|
||||
#
|
||||
@ -51,9 +51,9 @@ if [ ${#args[@]} -lt 1 ]; then
|
||||
fi
|
||||
|
||||
if [[ "${args[0]}" =~ ^@.* ]]; then
|
||||
channel="${args[0]}"
|
||||
channel="${args[0]}"
|
||||
unset "args[0]"
|
||||
channel="${channel:1}"
|
||||
channel="${channel:1}"
|
||||
fi
|
||||
|
||||
if [ ${#args[@]} -lt 1 ]; then
|
||||
@ -98,7 +98,7 @@ while true ; do
|
||||
--data "msg_id=$usr_msg_id" \
|
||||
--data "channel=$channel" \
|
||||
--data "sender_name=$sender" \
|
||||
"https://scn.blackforestbytes.com/" )
|
||||
"https://simplecloudnotifier.de/" )
|
||||
|
||||
curlout="$(cat "$outf")"
|
||||
rm "$outf"
|
||||
|
Loading…
Reference in New Issue
Block a user