Embed Node-RED into a running instance of Zetta.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
embed.js
example.js
package.json

README.md

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