Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
node-red-contrib-i2c
Advanced tools
This set of node-red nodes communicate with the Raspberry Pi I2C driver and uses the node-I2C package. Run the following command in the root directory of your Node-RED install, usually this is ~/.node-red.
This node now allows you configure the bus number of the i2c driver. For most Pi this is 1 for /dev/i2c-1, or 0 for /dev/i2c-0 for a older rev 1 Pi.
Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically ~/.node-red
npm install --unsafe-perm node-red-contrib-i2c
Provides three nodes - one to scan connected device, one to receive messages, and one to send.
This will scan the I2C bus for connected devices. It has one input to trigger the scan process and 2 outputs:
This node will request data from a given device. The address and command can both be set in the dialog screen or dynamically with msg.address and msg.command. This node outputs the result as a buffer in msg.payload and places the address in msg.address and command in msg.command.
This node will send a given String/array/buffer to a given device. The address and command can both be set in the dialog screen or dynamically with msg.address and msg.command. The payload can be set statically or dynamically (using msg.payload).
This payload can be a Buffer, Array, String or Integer. When you use integers the number of bytes to send is important and can be set between 0 and 31 bytes.
Since v0.5.0 - you can daisychain this node, the input msg is sent unchanged to the next node.
This node is now using the I2C-bus package from @fivdi. It looks more robust and better for asyncrone processes like node-red. I would like to thank the maker for his work. You can vind his work on github: https://github.com/fivdi/i2c-bus
The pld set of nodes did use the work of Kelly's I2C package to work. And I would like to thank him for the work he did on that package. For more info check out his github account at: https://github.com/kelly/node-i2c
FAQs
A Node-RED node to talk to the Raspiberry PI's I2C port
We found that node-red-contrib-i2c demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.