Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-mqtt-environment

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-mqtt-environment

Mqtt node for Node-Red that can read environment varibles for mqtt broker uri.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

node-red-contrib-mqttenv

This is a fork of the original node-red mqtt node with the added feature that the broker address can resolve environment variables. This allows for semi dynamic changeing of brokers without changing the actual flow that is loaded by node-red.

Credits to artcom for his node-red-contrib-mqtt-env node that is built on the same idea. A new node was created because this inital node by artcom dosen't seem to be under development as it is built on the old mqtt node that now is deprecated. Also a difference between artcoms node and this one is that this node can resolve several env variables and will concatinate it into the broker url.

Install

Run the following command in your node-red directory.

npm install node-red-contrib-mqttenv

Usage

Before running node-red make sure that you have an environment variable set. eg export FOO=abc.

Add a mqttenv node to your flow. Configure a mqtt broker as per usual. Then in the Server field where you would enter the url you can add your environment varibles eg.%FOO%.server.com which once the node is running will be resolved to abc.server.com

Keywords

FAQs

Package last updated on 19 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc