Skip to content

clovityinc/node-red-contrib-azure-event-hub-send-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-red-contrib-azure-event-hub-send-message

This custom node-red node is used to sen messages to the Azure Event Hub.

Input Parameters

Name (Optional)

The name parameter takes a string as input. The string would appear as the name of the node. Default Value is: Clovity - Send - Azure Event Hub

Connection String (Mandatory):

The endpoint connection string which allows you to connect to the event hub. Format: Endpoint=sb://XXXXXXXXX-prd.servicebus.windows.net/;SharedAccessKeyName=XXXX;SharedAccessKey=XXXXX

Event Hub path (Mandatory):

The name of the event hub where the messages have to be sent to.

Screenshot

Clovity Azure Event Hub Node

Installation

npm i node-red-contrib-azure-event-hub-send-message

Usage

  1. Copy the below JSON
[{"id":"864e40f6.22f76","type":"tab","label":"Azure Event Hub Send Message","disabled":false,"info":""},{"id":"22085b05.857334","type":"inject","z":"864e40f6.22f76","name":"Send Payload","topic":"","payload":"{\"data\": \"{temperature: 95, wind: 10}\" }","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":"","x":190,"y":300,"wires":[["27a034a5.375acc"]]},{"id":"3110b8b3.46b708","type":"debug","z":"864e40f6.22f76","name":"","active":true,"console":"false","complete":"true","x":802.000054359436,"y":299.9299564361572,"wires":[]},{"id":"27a034a5.375acc","type":"clovitySendAzureEventHubMessages","z":"864e40f6.22f76","name":"Clovity - Send - Azure Event Hub","x":520,"y":320,"wires":[["3110b8b3.46b708"]]}]
  1. Access the node-red UI using http://localhost:1880. Click on Import-->Clipboard and paste the copied json in the text area and Click Import.

  2. Update the Name, Connection String and Event Hub path parameters with the ones you wish to send messages to.

About

Send messages to azure event hub

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published