Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Embed Node-RED into a running instance of Zetta.

License

Notifications You must be signed in to change notification settings

zettajs/zetta-node-red-embed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Embed Node-RED into a running instance of Zetta.

Resources

License

Stars

Watchers

Forks

Packages