# node-red-vis

> Visualisation for node-red. Based on ioBroker.vis

Latest version **0.4.2** (published 2016-06-17) · CC-BY-NC-4.0 license · 0 weekly downloads

## Install

```sh
npm install node-red-vis
pnpm add node-red-vis
yarn add node-red-vis
bun add node-red-vis
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.2 |
| Published | 2016-06-17 |
| First published | 2015-02-21 |
| Weekly downloads | 0 |
| License | CC-BY-NC-4.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 15 |
| Author | bluefox |
| Maintainers | bluefox |
| Keywords | node-red, vis, ioBroker, visualisation, web front |

## Links

- npm: https://www.npmjs.com/package/node-red-vis
- Repository: https://github.com/GermanBluefox/node-red-vis
- Issues: https://github.com/GermanBluefox/node-red-vis/issues
- npm.io page: https://npm.io/package/node-red-vis

## Dependencies (16)

- [socket.io](https://npm.io/package/socket.io.md) ^1.3.7
- [iobroker.vis](https://npm.io/package/iobroker.vis.md) ^0.10.5
- [iobroker.web](https://npm.io/package/iobroker.web.md) *
- [iobroker.vis-bars](https://npm.io/package/iobroker.vis-bars.md) *
- [iobroker.vis-lcars](https://npm.io/package/iobroker.vis-lcars.md) *
- [iobroker.vis-metro](https://npm.io/package/iobroker.vis-metro.md) *
- [iobroker.vis-plumb](https://npm.io/package/iobroker.vis-plumb.md) *
- [iobroker.vis-rgraph](https://npm.io/package/iobroker.vis-rgraph.md) *
- [iobroker.vis-jqui-mfd](https://npm.io/package/iobroker.vis-jqui-mfd.md) *
- [iobroker.vis-justgage](https://npm.io/package/iobroker.vis-justgage.md) *
- [iobroker.vis-keyboard](https://npm.io/package/iobroker.vis-keyboard.md) *
- [iobroker.vis-hqwidgets](https://npm.io/package/iobroker.vis-hqwidgets.md) *
- [iobroker.vis-colorpicker](https://npm.io/package/iobroker.vis-colorpicker.md) *
- [iobroker.vis-fancyswitch](https://npm.io/package/iobroker.vis-fancyswitch.md) *
- [iobroker.vis-google-fonts](https://npm.io/package/iobroker.vis-google-fonts.md) *
- [iobroker.vis-timeandweather](https://npm.io/package/iobroker.vis-timeandweather.md) *

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.4.2 (latest) — 2016-06-17
- 0.4.1 — 2016-06-15
- 0.4.0 — 2016-06-14
- 0.3.2 — 2015-11-10
- 0.3.0 — 2015-11-02
- 0.2.2 — 2015-08-14
- 0.2.1 — 2015-08-06
- 0.2.0 — 2015-06-28
- 0.1.1 — 2015-05-06
- 0.1.0 — 2015-03-09
- 0.0.9 — 2015-03-02
- 0.0.8 — 2015-03-01
- 0.0.7 — 2015-02-25
- 0.0.6 — 2015-02-23
- 0.0.5 — 2015-02-22
- … 4 more at https://npm.io/package/node-red-vis/versions

## README

![Logo](icons/visLogo.png)
node-red VIS
============
[![NPM version](http://img.shields.io/npm/v/node-red-vis.svg)](https://www.npmjs.com/package/node-red-vis)
[![Downloads](https://img.shields.io/npm/dm/node-red-vis.svg)](https://www.npmjs.com/package/node-red-vis)

[![NPM](https://nodei.co/npm/node-red-vis.png?downloads=true)](https://nodei.co/npm/node-red-vis/)


This project adds web visualisation to Node-RED. It is based on [ioBroker.vis](https://github.com/ioBroker/ioBroker.vis).

Functionality
-------------
We introduce "vis in" node which creates the visualisation server with communication via socket.io.

![Demo interface](doc/Demo1.png)

![Demo interface](doc/Demo2.png)

Install
-------

```bash
cd $NODE_RED_HOME
npm install node-red-vis
```

Usage
--------

Create "advanced => vis in" node and 3 inject nodes as pictured:

![node-red](doc/node-red.png)

Here is code to import:
```[{"id":"a26bad1e.5d945","type":"vis in","language":"en","x":393.09092712402344,"y":81.09089660644531,"z":"4004eda7.bffb14","wires":[["1b331485.e4cceb"]]},{"id":"1d96675d.e26999","type":"inject","name":"","topic":"/kitchen/lamp","payload":"true","payloadType":"string","repeat":"","crontab":"","once":false,"x":184.0908966064453,"y":54.09089660644531,"z":"4004eda7.bffb14","wires":[["a26bad1e.5d945"]]},{"id":"e72316cd.18dce8","type":"debug","name":"","active":true,"console":"false","complete":"false","x":686.0910186767578,"y":80.09089660644531,"z":"4004eda7.bffb14","wires":[]},{"id":"d9c35749.263ca8","type":"inject","name":"","topic":"/kitchen/lamp","payload":"false","payloadType":"string","repeat":"","crontab":"","once":false,"x":185.33331298828125,"y":112.33329772949219,"z":"4004eda7.bffb14","wires":[["a26bad1e.5d945"]]},{"id":"2d3eee9.fd2c112","type":"inject","name":"","topic":"/balkon/temperature","payload":"22","payloadType":"string","repeat":"","crontab":"","once":false,"x":197.20001220703125,"y":166.1999969482422,"z":"4004eda7.bffb14","wires":[["a26bad1e.5d945"]]},{"id":"1b331485.e4cceb","type":"switch","name":"","property":"topic","rules":[{"t":"eq","v":"/kitchen/lamp"},{"t":"eq","v":""}],"checkall":"true","outputs":2,"x":523.2000274658203,"y":81.19999694824219,"z":"4004eda7.bffb14","wires":[["e72316cd.18dce8"],[]]}]```

Deploy it. After deploying go to [http://localhost:1880/vis/edit.html](http://localhost:1880/vis/edit.html) and create "basic - ctrl Bulb on/off":

![basic](doc/basic-ctrl_Bulb_on-off.png)

and "RGraph - Gauge-Basic":

![RGraph-Gauge-Basic](doc/RGraph-Gauge-Basic.png)

Write into Object ID of "basic - ctrl Bulb on/off" - "/kitchen/lamp":

![ctrl-Bulb(On-Off)](doc/ctrl-Bulb_On-Off.png)

and into Object ID of "RGraph - Gauge-Basic" - "/balkon/temperature":

![RGraph-Gauge](doc/RGraph-Gauge.png)

Wait for the project saved (about 3 seconds) and after that click here:

![Close](doc/close.png)

You will see something like this:

![Runtime](doc/index.png)

If you click on lamp following payload will be sent:

![Debug](doc/click.png)

You can forward this message to your hardware to control it.

There is a possibility to export project into vis:

![Debug](doc/Import.png)

Insert following code into dialog edit field:
<pre><code>
{
  "settings": {
    "style": {
      "background_class": "hq-background-blue-marine-lines"
    },
    "theme": "redmond",
    "sizex": "",
    "sizey": "",
    "hideDescription": false,
    "gridSize": ""
  },
  "widgets": {
    "e00001": {
      "tpl": "tplBulbOnOffCtrl",
      "data": {
        "oid": "/kitchen/lamp"
      },
      "style": {
        "left": "8px",
        "top": "8px",
        "width": "132px",
        "height": "159px"
      },
      "widgetSet": "basic"
    },
    "e00002": {
      "tpl": "tplRGgauge",
      "data": {
        "min_value": "0",
        "max_value": "100",
        "factor": "1",
        "value_offset": "0",
        "labels_color": "#000000",
        "oid": "/balkon/temperature"
      },
      "style": {
        "left": "148px",
        "top": "9px",
        "width": 200,
        "height": 200
      },
      "widgetSet": "RGraph"
    }
  },
  "rerender": false,
  "filterList": [],
  "activeWidgets": []
}
</code></pre>

![Debug](doc/Import1.png)


The only issue is **at start** all drawn controls must receive the value.

You can inspire yourself [here](https://iobroker.net:8080). This is a Live-Version of ioBroker.vis!


Change log
--------
### v 0.4.2 (2016-06-17)
* (bluefox) fix name of google fonts

### v 0.4.1 (2016-06-15)
* (bluefox) update vis version to 0.10.5

### v 0.4.0 (2016-06-14)
* (bluefox) update all vis packages

### v 0.3.2 (2015-11-10)
* (bluefox) fix install errors and support of npm 3.x

### v 0.3.0 (2015-11-02)
* (bluefox) support of latest version of iobroker.vis 

### v 0.2.2 (2015-08-14)
* (bluefox) enable to send "vis.control.command" to vis, like 
```
     {"command": "refresh", "instance": "FFFFFFFF"}
```  
   to refresh the view. Read [here](https://github.com/ioBroker/ioBroker.vis#control-interface) more about commands.
   
* (bluefox) remove jshint warnings.

---
_Source: https://npm.io/package/node-red-vis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
