A collection of Node-RED nodes to Configure Advantech IIoT brightness driver.
Notice that an Advantech IIoT Platform SDK have to be installed to make this node works correctly. Advantech IIoT Platform SDK download link is shown below: Windows: https://github.com/Advantech-IIoT/Platform-SDK/tree/master/windows/bin Linux: https://github.com/Advantech-IIoT/Platform-SDK/tree/master/linux/bin
Use npm command to install this package locally in the Node-RED modules directory
npm install node-red-contrib-atbrightness
or install it globally with the command
npm install node-red-contrib-atbrightness -g
Nodes included in the package
Brightness-data-get : Get information for devices.
Brightness-data-set : Set information for devices, e.g. Brightness Value.
Demo Flow: Brightness_Data_Get_Demo_Flow.json
It will output all of the information after deployment for once.
Output is a
json format object:
- Min : Minimum Value of brightness
- Max : Maximum Value of brightness
- Value : Current Value of brightness
- Auto : Auto Brightness Status of brightness. [0: Manual, 1: Auto].
If the device does not support Auto Brightness, the output object:
You can write following example in the function node. It will output the same result.
msgpayload =Min: 1Max: 1Value: 1Auto: 1;return msg;
If you just want to get specific information, eg. Current Value of brightness:
boolean are valid value.)
msgpayload =Value: 1// Or Value: true;return msg;
Demo Flow: Brightness_Data_Set_Demo_Flow.json
This node can only receive a value for one time.
All you have to do is sending a format like
msg.payload, type is
Set Current Brightness Value to specified value
If you send a number is not between
Maximum, you will get
Set Auto Brightness
You can configure the payload
- Windows 10 Enterprise LTSB with node.js 6.10.1
- 1.0.7 - October 2017 : Initial Release
Copyright 2017 ADVANTECH Corp. under the Apache 2.0 license.