Giter Site home page Giter Site logo

totallyinformation / node-red-contrib-infocache Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 254 KB

SUPERSEDED - see README. Cache & replay messages in Node-RED flows. Optionally by topic and client/user id.

Home Page: https://totallyinformation.github.io/node-red-contrib-infocache/

License: Apache License 2.0

JavaScript 58.85% HTML 35.48% PowerShell 4.29% Shell 1.39%
node-red replay-messages uibuilder cache caching

node-red-contrib-infocache's Introduction

node-red-contrib-infocache

** SUPERSEDED: It is likely that this module will not get developed. I'm adding a new node to the uibuilder module instead. That has been added to the uibuilder vNext branch already and will be published with uibuilder v5.**

Cache & replay messages. Optionally by topic and client or user id. Replay the cache or a part of it on request.

Introduction

This is a node for Node-RED. It is designed to provide a temporary cache of input messages so that they can be replayed on request.

It can be used in any flow but it is also designed as a companion to node-red-contrib-uibuilder which provides an easy web app builder for Node-RED. While uibuilder provides a dynamic communications channel between the Node-RED server and each connected client browser, when a client connects (or the user reloads the page), any dynamic data is lost and the client has to wait for future messages to arrive. This node allows that issue to be resolved. uibuilder sends control messages when clients connect, disconnect and when they are ready to receive data. These messages come from port 2 on the uibuilder node and you can feed that port directly into an InfoCache node. By default, the "ready for content" uibuilder control message will trigger the InfoCache node to send the contents of the cache for that client only.

There are a number of settings that you can apply that will control how much data is cached and how/when it is cleared. You may need to use some or all of these if you are passing a large number of messages/topics through the cache. No hard limits are applied other than those settings and it is perfectly possible to crash Node-RED by filling up the memory if you overdo the cache.

Contents

Features

Urm, not a lot so far!

Documentation

The documentation can be found in the docs folder. This is also published to https://totallyinformation.github.io/node-red-contrib-infocache.

Future Features

Please see the design document.

Known Issues

None at this time

To Do

The backlog of ideas and enhancements is in the To Do file

Changes

See the Change Log for details of changes made.

Dependencies

See the package.json file.

Install

Install via the palette manage in the Node-RED admin ui (no restart needed).

Alternatively run the following command in your Node-RED user directory (typically ~/.node-red):

npm install node-red-contrib-infocache

then restart Node-RED and add an instance of the InfoCache node.

You can install a specific published version with (change latest to desired version):

npm install node-red-contrib-infocache@latest

You can also install a specific unpublished branch from GitHub with (change security to desired branch):

npm install node-red-contrib-infocache@security

You can also install a specific unpublished tag (version) from GitHub with (change v0.0.1 to desired release tag):

npm install [email protected]

Node Configuration

See the node configuration document.

Recognised Input Message Structures

See the input messages document.

Examples

See the library examples for examples of use, these are flows that can be imported in Node-RED.

Some additional examples may also appear in the WIKI or the uibuilder WIKI.

Discussions and suggestions

Please use the Node-RED Discourse Forum for general discussion about this node.

Alternatively use the GitHub issues log for raising issues or contributing suggestions and enhancements.

Contributing

If you would like to contribute to this node, you can contact Totally Information via GitHub or raise a request in the GitHub issues log.

If submitting code (preferably via a pull request), please use eslint to adhere to the same standards.

When contributing code, please use the following coding standards:

  • Use ESLint:Standard settings plus the following
  • Indents must be 4 spaces
  • Strings must be single quoted not double
  • Semi-colons should not be used unless absolutely necessary (see here for guide)

Developers/Contributors

profile for Julian Knight on Stack Exchange, a network of free, community-driven Q&A sites

back to top

node-red-contrib-infocache's People

Contributors

totallyinformation avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

node-red-contrib-infocache's Issues

unable to install 'node-red-contrib-infocache'

Hi,
I was trying to install the infocache node via npm as well as the admin interface but none worked.
the npm install mentioned "not found"

Is this node still available some how?

Thanks!

where's the code?

Dunno whether I've lost all my marbles or what, but I don't see any code in this repo?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.