docs for node-red

This commit is contained in:
Dave Horton
2021-05-12 15:10:50 -04:00
parent cecd1c40cc
commit 8e70343b50
8 changed files with 25 additions and 7 deletions

View File

@@ -90,10 +90,3 @@ navi:
-
path: overview
title: Overview
-
path: open-source
title: Open Source
pages:
-
path: overview
title: Overview

View File

@@ -1,2 +1,27 @@
# Node-RED plugin for jambonz
To add the [jambonz plugins](https://flows.nodered.org/node/@jambonz/node-red-contrib-jambonz) for [Node-RED](https://nodered.org/) open Node-RED, click the hamburger menu at the top right, and then "Open Palette".
Click the "install" tab and then type "jambonz" into the search input.
![Adding jambonz plugin](/images/node-red-search.png)
Click the "Install" button for @jambonz/node-red-contrib-jambonz, and confirm by clicking the Install button on the popup dialog.
This will add the jambonz nodes to your palette. Now you can drag them out onto the canvas to create flows that respond to webhook requests. Every flow should begin with a "webhook in" node and end with a "webhook out" node.
![Node-RED flow](/images/node-red-flow.png)
Configure the webhook in node by specifying the URL path and HTTP method that should trigger this flow.
![Node-RED webhook-in](/images/node-red-webhook-in.png)
There is no configuration needed for the webhook out node.
Most of the remaining nodes match up one to one to the [jambonz verbs](/docs/webhooks/overview). Drag them out on the canvas, configure them and connect them in the ordered flow you want to achieve.
![Node-RED webhook-say](/images/node-red-webhook-in.png)
When you are done, click the Deploy button to deploy your changes. In the jambonz portal, create an application webhook with a URL and path that points to your Node-RED server and the flow that you have created.
Enjoy!

Binary file not shown.

After

Width:  |  Height:  |  Size: 526 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB