node-red-otplc-linux-sys-class-leds

0.0.907 • Public • Published

node-red-otplc-linux-sys-class-leds

Ufff what a name !

   Is for reading / writing sys class leds on linux from Node-RED

ot-plc to use linux sys / class / leds kernel layer to flash your leds!

You need to have permissions to write to /sys/class/leds/*/[brightness|trigger] then this is working for setting. Without it is only able to read status now.

install it

For now installation is by entering node-red home directory then installing localy for Node-RED

npm i node-red-otplc-linux-leds

then restart Node-RED and start your led instance!

in result we have

iot keyboard led

using it

You can send it topic {string}:

dirList - to get payload with posible options to set as led

getStatus - to get payload current brightness

getStatusLong - extended {json} in payload info about set led

set - with payload will write to brightness

trigger - with payload write trigger

On start look on status of node or what is returning

example flow set

To check it out .json to import to Node-RED link...

status

working

screenshots

Video showing how to set it up and use it wrapt in node-red node as node-red-otplc-linux-sys-class-leds ...

node-red-otplc-linux-sys-class-leds oiyshTerminal at npm - on youtube from setting it up to blinking led...


If you see that this make sens

Package Sidebar

Install

npm i node-red-otplc-linux-sys-class-leds

Weekly Downloads

3

Version

0.0.907

License

ISC

Unpacked Size

158 kB

Total Files

10

Last publish

Collaborators

  • yoyoek1