2018-12-20 22:02:07 +08:00
![Logo ](admin/node-red.png )
2018-12-20 22:06:06 +08:00
# yunkong2 node-red Adapter
2018-12-20 22:02:07 +08:00
==============
2018-12-20 22:06:06 +08:00
[![NPM version ](http://img.shields.io/npm/v/yunkong2.node-red.svg )](https://www.npmjs.com/package/yunkong2.node-red)
[![Downloads ](https://img.shields.io/npm/dm/yunkong2.node-red.svg )](https://www.npmjs.com/package/yunkong2.node-red)
[![Tests ](https://travis-ci.org/yunkong2/yunkong2.node-red.svg?branch=master )](https://travis-ci.org/yunkong2/yunkong2.node-red)
2018-12-20 22:02:07 +08:00
2018-12-20 22:06:06 +08:00
[![NPM ](https://nodei.co/npm/yunkong2.node-red.png?downloads=true )](https://nodei.co/npm/yunkong2.node-red/)
2018-12-20 22:02:07 +08:00
# Starts node-red instance and communicates with it.
***This adapter needs at least nodejs 4.x to work***
This adapter uses the node-red server from https://github.com/node-red/node-red
2018-12-20 22:06:06 +08:00
**Note:** If in select ID dialog of the yunkong2 node you cannot find some variable, restart node-red instance. By restarting the new list of objects will be created.
2018-12-20 22:02:07 +08:00
## Changelog
### 1.7.1 (2017-09-24)
* (bluefox) use newer version of node-red 0.19.4
* (bluefox) Basic authentication was added
### 1.7.0 (2017-08-23)
* (bluefox) use newer version of node-red 0.19.1
### 1.6.0 (2017-08-06)
* (bluefox) use newer version of node-red 0.18.7
* (bluefox) Admin3 dialog implemented
* (bluefox) RAM settings were added
* (bluefox) add credentialSecret option
### 1.5.1 (2017-02-16)
2018-12-20 22:06:06 +08:00
* (Apollon77) queue set state requests till yunkong2 connection has been initialized
2018-12-20 22:02:07 +08:00
### 1.5.0 (2018-02-14)
* (Apollon77) use newer version of node-red 0.18.2
### 1.4.1 (2017-10-03)
* (twonky4) fix blank topic support
### 1.4.0 (2017-08-06)
* (bluefox) use newer version of node-red 0.17.5
### 1.3.0 (2017-04-13)
* (bluefox) Update the select ID dialog
* (bluefox) Add node-red-contrib-polymer
### 1.2.0 (2017-02-14)
* (bluefox) use newer version of node-red 0.16.2
### 1.1.6 (2017-01-24)
* (bluefox) use newer version of node-red 0.16.2
### 1.1.5 (2017-01-03)
* (Erhard Weinell) support concurrent access to GetNode
### 1.1.4 (2016-11-04)
* (bluefox) use newer version of node-red 0.15.2
### 1.1.2 (2016-07-23)
* (nobodyMO) use newer version of node-red 0.14.6
* (nobodyMO) change topic name processing
### 1.1.1 (2016-07-08)
* (nobodyMO) use newer version of node-red 0.14.4
### 1.1.0 (2016-05-22)
* (ploebb) configurable: convert values to string
* (nobodyMO) use newer version of node-red 0.14.3
### 1.0.1 (2016-05-22)
* (bluefox) on some systems node-red was available under wrong URL http://ip:1881/undefined. Fixed
### 1.0.0 (2016-04-29)
* (bluefox) support of npm 2/3
### 0.4.4 (2016-04-29)
* (bluefox) install with flag unsafePerm
### 0.4.3 (2016-04-23)
* (bluefox) use node-red 0.13.4
### 0.4.2 (2016-01-21)
* (nobodyMO) Add httpRoot setting
* (nobodyMO) add filter settings to nodes
### 0.4.1 (2016-01-14)
* (nobodyMO) Add --max-old-space-size=128 to support systems with low memory.
* (nobodyMO) Add version 0.12.5 for node-red because it works.
2018-12-20 22:06:06 +08:00
* (nobodyMO) Add yunkong2 get node.
2018-12-20 22:02:07 +08:00
* (nobodyMO) Set _maxListeners = 100 to suppress warnings in the log.
### 0.3.5 (2015-08-23)
* (bluefox) fix error if many additional npm packets
### 0.3.4 (2015-08-10)
* (bluefox) do not include node-red packages into global context
### 0.3.3 (2015-07-24)
* (bluefox) enable node-red 0.11.x
### 0.3.2 (2015-06-29)
2018-12-20 22:06:06 +08:00
* (bluefox) fix error with yunkong2 nodes
2018-12-20 22:02:07 +08:00
### 0.3.1 (2015-06-28)
* (bluefox) change link in admin to node-red web server
### 0.3.0 (2015-05-18)
* (bluefox) add flag "stopBeforeUpdate"
2018-12-20 22:06:06 +08:00
* (bluefox) store data in yunkong2-data directory
2018-12-20 22:02:07 +08:00
### 0.2.2 (2015-05-17)
* (bluefox) fix error with invalid additional npm package
### 0.2.1 (2015-05-17)
* (bluefox) fix readme link
### 0.2.0 (2015-05-16)
* (bluefox) allow install of additional npm and node-red packets
### 0.1.9 (2015-03-26)
* (bluefox) fix first start
### 0.1.7 (2015-03-25)
* (bluefox) remove warnings
### 0.1.6 (2015-03-18)
2018-12-20 22:06:06 +08:00
* (bluefox) make node-red compatible with yunkong2 again
2018-12-20 22:02:07 +08:00
### 0.1.5 (2015-02-12)
* (bluefox) update node-red to 0.10.1
* (bluefox) update select ID dialog
### 0.1.4 (2015-01-07)
* (bluefox) create variables without need to be extra called with "__create__"
### 0.1.3 (2015-01-06)
* (bluefox) make possible creation of variables
### 0.1.2 (2015-01-04)
* (bluefox) print debug message by saving
### 0.1.1 (2015-01-03)
* (bluefox) fix errors with utils.js
### 0.1.0 (2015-01-02)
* (bluefox) enable npm install
### 0.0.8 (2014-12-20)
* (bluefox) support signal stopInstance
### 0.0.7 (2014-12-14)
* (bluefox) support of select ID dialogs
### 0.0.6 (2014-11-26)
* (bluefox) use names like in mqtt: "adapter/instance/device/channel/state"
* (bluefox) suport of "value" or "object" for input node
### 0.0.5 (2014-11-22)
* (bluefox) support of new naming concept
### 0.0.4 (2014-11-05)
* (bluefox) fix some errors
### 0.0.2 (2014-11-04)
2018-12-20 22:06:06 +08:00
* (bluefox) use adapter.js to communicate with yunkong2
2018-12-20 22:02:07 +08:00
### 0.0.1 (2014-11-03)
* (bluefox) initial commit
## Install
2018-12-20 22:06:06 +08:00
```node yunkong2.js add node-red```
2018-12-20 22:02:07 +08:00
## Configuration
## License
Copyright 2014-2018 bluefox < dogafox @ gmail . com > .
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.