npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-atbrightness

v3.0.1

Published

Node-Red Advantech Brightness Nodes

Downloads

16

Readme

node-red-contrib-atbrightness

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

Install

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.


Example

[Brightness-data-get]

Demo Flow: Brightness_Data_Get_Demo_Flow.json

It will output all of the information after deployment for once.

Get_All_Info

Get_All_Info_Func

Output is a json format object: Get_All_Info_Output

  • 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:

{
    Min: 1,
    Max: 9,
    Value: 1,
    Auto: "Not Support"
}

You can write following example in the function node. It will output the same result.

msg.payload = {
    Min: 1,
    Max: 1,
    Value: 1,
    Auto: 1
};
return msg;

If you just want to get specific information, eg. Current Value of brightness: (number and boolean are valid value.)

msg.payload = {
    Value: 1
    // Or Value: true
};
return msg;

[Brightness-data-set]

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 number or boolean.

Set Current Brightness Value to specified value

Set_Value_Flow

Set_Value_Inject

If you send a number is not between Minimum and Maximum, you will get Not Support.

Not_Support

Set Auto Brightness

Set_Auto_Flow

Set_Auto_Inject

You can configure the payload True or False.


Tested Platform

  • Windows 10 Enterprise LTSC with node.js 18.14.1

History

  • 3.0.1 - June 2023 : update bundleDependencies
  • 1.0.7 - October 2017 : Initial Release

License

Copyright 2023 ADVANTECH Corp. under the Apache 2.0 license.