From 2511ba762763c86e54b7ee585f6ed455e1bdb401 Mon Sep 17 00:00:00 2001 From: Niclas Andersson Date: Sat, 19 Mar 2022 01:16:02 +0100 Subject: [PATCH 1/2] Add Node-RED pictures and change ntfy URL to ntfy.sh --- docs/examples.md | 352 +++++++++++++++------------- docs/static/img/nodered-message.png | Bin 0 -> 7582 bytes docs/static/img/nodered-picture.png | Bin 0 -> 10097 bytes 3 files changed, 190 insertions(+), 162 deletions(-) create mode 100644 docs/static/img/nodered-message.png create mode 100644 docs/static/img/nodered-picture.png diff --git a/docs/examples.md b/docs/examples.md index e26092e7..ff23aefc 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -132,181 +132,209 @@ Some simple bash scripts to achieve this are kindly provided in [nickexyz's repo ## Node-RED You can use the HTTP request node to send messages with [Node-RED](https://nodered.org), some examples: +Example: Send a message + +![Node red message flow](static/img/nodered-message.png)
-Example: Send a message +Expand ``` [ - { - "id": "8f09d37dd5773f88", - "type": "http request", - "z": "ff3ad4e1.d3415", - "name": "ntfy", - "method": "POST", - "ret": "txt", - "paytoqs": "ignore", - "url": "https://example.com/topic", - "tls": "", - "persist": false, - "proxy": "", - "authType": "", - "senderr": false, - "credentials": {}, - "x": 1410, - "y": 740, - "wires": [ - [] - ] - }, - { - "id": "2603f296b25fe351", - "type": "function", - "z": "ff3ad4e1.d3415", - "name": "data", - "func": "msg.payload = \"Something happened\";\nmsg.headers = {};\nmsg.headers['tags'] = 'house';\nmsg.headers['X-Title'] = 'Home Assistant';\n\nreturn msg;", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 1290, - "y": 740, - "wires": [ - [ - "8f09d37dd5773f88" - ] - ] - }, - { - "id": "d2351ed0720a239f", - "type": "inject", - "z": "ff3ad4e1.d3415", - "name": "Manual start", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": "20", - "topic": "", - "payload": "", - "payloadType": "date", - "x": 1150, - "y": 740, - "wires": [ - [ - "2603f296b25fe351" - ] - ] - } + { + "id": "c956e688cc74ad8e", + "type": "http request", + "z": "fabdd7a3.4045a", + "name": "ntfy.sh", + "method": "POST", + "ret": "txt", + "paytoqs": "ignore", + "url": "https://ntfy.sh/mytopic", + "tls": "", + "persist": false, + "proxy": "", + "authType": "", + "senderr": false, + "credentials": + { + "user": "", + "password": "" + }, + "x": 590, + "y": 3160, + "wires": + [ + [] + ] + }, + { + "id": "32ee1eade51fae50", + "type": "function", + "z": "fabdd7a3.4045a", + "name": "data", + "func": "msg.payload = \"Something happened\";\nmsg.headers = {};\nmsg.headers['tags'] = 'house';\nmsg.headers['X-Title'] = 'Home Assistant';\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 470, + "y": 3160, + "wires": + [ + [ + "c956e688cc74ad8e" + ] + ] + }, + { + "id": "b287e59cd2311815", + "type": "inject", + "z": "fabdd7a3.4045a", + "name": "Manual start", + "props": + [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": "20", + "topic": "", + "payload": "", + "payloadType": "date", + "x": 330, + "y": 3160, + "wires": + [ + [ + "32ee1eade51fae50" + ] + ] + } ] ```
+Example: Send a picture + +![Node red picture flow](static/img/nodered-picture.png)
-Example: Send a picture +Expand ``` [ - { - "id": "726d0d75d6c0f70e", - "type": "http request", - "z": "ff3ad4e1.d3415", - "name": "Download jpeg", - "method": "GET", - "ret": "bin", - "paytoqs": "ignore", - "url": "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png", - "tls": "", - "persist": false, - "proxy": "", - "authType": "", - "senderr": false, - "credentials": {}, - "x": 1320, - "y": 780, - "wires": [ - [ - "730dbbc9dbf1ed8a" - ] - ] - }, - { - "id": "730dbbc9dbf1ed8a", - "type": "function", - "z": "ff3ad4e1.d3415", - "name": "data", - "func": "msg.payload = msg.payload;\nmsg.headers = {};\nmsg.headers['tags'] = 'house';\nmsg.headers['X-Title'] = 'Home Assistant - Picture';\n\nreturn msg;", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 1470, - "y": 780, - "wires": [ - [ - "592f424b37f76f5c" - ] - ] - }, - { - "id": "592f424b37f76f5c", - "type": "http request", - "z": "ff3ad4e1.d3415", - "name": "ntfy", - "method": "PUT", - "ret": "bin", - "paytoqs": "ignore", - "url": "https://example.com/topic", - "tls": "", - "persist": false, - "proxy": "", - "authType": "", - "senderr": false, - "x": 1590, - "y": 780, - "wires": [ - [] - ] - }, - { - "id": "8aa06dda3c902f6a", - "type": "inject", - "z": "ff3ad4e1.d3415", - "name": "Manual start", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": "20", - "topic": "", - "payload": "", - "payloadType": "date", - "x": 1150, - "y": 780, - "wires": [ - [ - "726d0d75d6c0f70e" - ] - ] - } + { + "id": "d135a13eadeb9d6d", + "type": "http request", + "z": "fabdd7a3.4045a", + "name": "Download image", + "method": "GET", + "ret": "bin", + "paytoqs": "ignore", + "url": "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png", + "tls": "", + "persist": false, + "proxy": "", + "authType": "", + "senderr": false, + "credentials": + { + "user": "", + "password": "" + }, + "x": 490, + "y": 3320, + "wires": + [ + [ + "6e75bc41d2ec4a03" + ] + ] + }, + { + "id": "6e75bc41d2ec4a03", + "type": "function", + "z": "fabdd7a3.4045a", + "name": "data", + "func": "msg.payload = msg.payload;\nmsg.headers = {};\nmsg.headers['tags'] = 'house';\nmsg.headers['X-Title'] = 'Home Assistant - Picture';\n\nreturn msg;", + "outputs": 1, + "noerr": 0, + "initialize": "", + "finalize": "", + "libs": [], + "x": 650, + "y": 3320, + "wires": + [ + [ + "eb160615b6ceda98" + ] + ] + }, + { + "id": "eb160615b6ceda98", + "type": "http request", + "z": "fabdd7a3.4045a", + "name": "ntfy.sh", + "method": "PUT", + "ret": "bin", + "paytoqs": "ignore", + "url": "https://ntfy.sh/mytopic", + "tls": "", + "persist": false, + "proxy": "", + "authType": "", + "senderr": false, + "credentials": + { + "user": "", + "password": "" + }, + "x": 770, + "y": 3320, + "wires": + [ + [] + ] + }, + { + "id": "5b8dbf15c8a7a3a5", + "type": "inject", + "z": "fabdd7a3.4045a", + "name": "Manual start", + "props": + [ + { + "p": "payload" + }, + { + "p": "topic", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": "20", + "topic": "", + "payload": "", + "payloadType": "date", + "x": 310, + "y": 3320, + "wires": + [ + [ + "d135a13eadeb9d6d" + ] + ] + } ] ``` diff --git a/docs/static/img/nodered-message.png b/docs/static/img/nodered-message.png new file mode 100644 index 0000000000000000000000000000000000000000..46279087b134f12ee456b7d3687e71cb44fb7403 GIT binary patch literal 7582 zcmV;P9bw{$P)EX>4Tx04R}tkv&MmKpe$iQ>7v;f)*5U$WWauh!t_vDionYs1;guFuC*#nlvOS zE{=k0!NHHks)LKOt`4q(Aou~|=;Wm6A|?K>DYS_3;J6>}?mh0_0YbgZG^=X@&~)2O zCE{WxyDA1=;YU9P5kp93mN6$uNqCO0d-(Wz7v)*r=l&caHD@uvClb#x!?cMvh^IGg zgY!Odm=$G}_?&p$qze*1a$RxxjdP*N0?!Pa>C`-Nm{=@yu+qV-Xlle$#1U1~DPPFA zta9Gstd*;*bx;1nU`}6I<~q$0B(R7jND!f*iW17O5v5fp#X^eq;~xIure7kLLaq`R zITlcX2D#}6|AXJ%TKU+dn-q)#-7k*wF$x5Bfkw@7zKEr++KxS~&9wIEai+VS)^59<?U~lr zmR3}dO+Wz?KvsdUCm~6tlGK(;CADw!M}>k2n5_a4e&2IAC)D!P@80jd_j{k`KKEWx zGMP*=NVK=NV=x%V6a;&MJ;9z}Pp~K08;m`X$Ky#NK!5-N0t8${5DA`}U{A0o*c0pt z_AWMiVnN>p2oNAZz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TP;s>@sG_8(BqZK@dP)>4g3g8@Y^CFYgiTATu4nC%lV>}pFyEkd`||h%1fP7j zcE_h7=|gB>nmo{8a}x~PG>~|Kt;Sa(UIS@2Hi0(Cs3E(fS~qwx;EeIqDVOd%)gbFN zqh{Y0^U6U;3AQqBeDzw3lmv8?;U!=2)!U!N1HTc(HamO8CMYcUA_cnPMdFPb@uj-i zR;7wVlVXbN<9BFJd+uG?i)L}rzey4?nUsYsv}SJItq$8Jj#vrZYvRS(`PMwX;j+F`}5 zKdq9BLP1O?2@&=*B%mxyOQQ$^?KE@#s&I`*}@+5<}#D(wNs)O{dZxI>*;vET>sH_8F{?<~LRI#Y}ZSxCQsm zec`AvL^q-OK> zRw9#tJ*|LEWLPuDv-v;a9{;T={`nKR+Z?1&9P3E`6B#Og3K4wpdMGdy_jB0vYb{!+ zDCRgwP+;_I$E^DEQ9DIexAEVPA?Mp4+CvI!(m#0}DNX>Y4+Yfq$6(>F!v}91P2RB0 zdoa9Uz$N1|j$)6FiF{I7HCPxKBQ)6}RZ8NPdnXbE!cTEv`L|vV(56;(UkIXjp}@85tSnNd%6Lj?;(U)n?#Vode2Br5`wsA7{c#@ zx;Vxdk}+^YTJUm*b-*-EL_)?`!jp(XQh1_ZVFc<%O{3BIHH>sH%qCmZ%e8LB?>%~l z+e(vhjo~|zJoQi99HUWUan@>!o$j{?J5W|uCQDS9f&V8fg2mWd{3q&}>iZm&;iRoi zfH3gbcPCu^|4EYQlNX(Z zJSr>ySC%yN?f`WeVDSHwFiBdSufEl({lDTPWKvPtX^j7?L^9oZ3QM@v0B_XdS0lt& ONXqi+A8KVS!~YMCln40$ literal 0 HcmV?d00001 From 21fc1245eb8fd92e2c0a2a082ab4a23ae308f62d Mon Sep 17 00:00:00 2001 From: nickexyz Date: Sat, 19 Mar 2022 00:20:56 +0000 Subject: [PATCH 2/2] Update examples.md --- docs/examples.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/examples.md b/docs/examples.md index ff23aefc..fe108182 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -133,8 +133,6 @@ Some simple bash scripts to achieve this are kindly provided in [nickexyz's repo You can use the HTTP request node to send messages with [Node-RED](https://nodered.org), some examples: Example: Send a message - -![Node red message flow](static/img/nodered-message.png)
Expand @@ -222,9 +220,10 @@ Example: Send a message
-Example: Send a picture +![Node red message flow](static/img/nodered-message.png) -![Node red picture flow](static/img/nodered-picture.png) + +Example: Send a picture
Expand @@ -340,6 +339,8 @@ Example: Send a picture
+![Node red picture flow](static/img/nodered-picture.png) + ## Gatus service health check An example for a custom alert with Gatus