From fbeaca33aa1983413b27cd99fc6b2d6b90c0e5bd Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Fri, 26 May 2023 23:36:06 +0200 Subject: [PATCH] put apprise key in source --- example.json | 2 +- out | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example.json b/example.json index 2639fe0..6044786 100644 --- a/example.json +++ b/example.json @@ -1,12 +1,12 @@ { "params": { - "key": "concourse", "body": "hoi", "title": "Titeltje!", "type": "warning", "format": "text" }, "source": { + "key": "concourse", "host": "https://apprise.pim.kunis.nl:444" } } diff --git a/out b/out index b4afb85..bbb3540 100755 --- a/out +++ b/out @@ -14,8 +14,8 @@ payload=$(mktemp /tmp/resource-in.XXXXXX) cat > "${payload}" <&0 apprise_host="$(jq -r '.source.host' < "${payload}")" +apprise_key="$(jq -r '.source.key' < "${payload}")" -apprise_key="$(jq -r '.params.key' < "${payload}")" alert_body="$(jq -r '.params.body' < "${payload}")" alert_title="$(jq -r '.params.title // null' < "${payload}")" alert_type="$(jq -r '.params.type // null' < "${payload}")"