Neolithic Populous Metropolis
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

zetta-node-red-embed

0.2.0 • Public • Published

zetta-node-red-embed

Embeds Node-RED in a running Zetta instance.

Install

npm install zetta-node-red-embed

Usage

var zetta = require('zetta');
var red = require('zetta-node-red-embed');
var Photocell = require('zetta-photocell-mock-driver');
var LED = require('zetta-led-mock-driver');
 
var settings = {
    httpAdminRoot: '/red',
    httpNodeRoot: '/api',
    userDir: './.node-red/',
    functionGlobalContext: { }    // enables global context
};
 
zetta()
  .use(red(settings))
  .use(Photocell)
  .use(LED)
  .listen(3000);

License

MIT

install

npm i zetta-node-red-embed

Downloadsweekly downloads

0

version

0.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability