Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
node-red-contrib-ftp-server
Advanced tools
Readme
FTP Server for Node-RED that currently only supports putting files. Uploaded files are emitted from this node via
msg.payload
of type Buffer.
Written for my Dad so he can wire his IP camera's motion detection directly into Node-RED.
$ cd ~/.node-red
$ npm install node-red-contrib-ftp-server
Drag the FTP Server node into your workspace and double click to configure:
If you leave the username field empty the node uses the dynamic authentication mode. In this mode every login request has to be handled manually. On each login attempt the node outputs an object containing the username, the password and an authenticate function on the "authenticate" output. You can then manually validate the username and password and must call the authenticate function with the parameter true to accept the authentication or false to reject it.
Here is an example how an authenticate message would look like:
{
payload: {
username: "username",
password: "password"
},
authenticate: <function>
}
Here is an example how to handle the login attempts in a function node:
msg.authenticate(
msg.payload.username === 'username' &&
msg.payload.password === 'password'
);
msg.payload = undefined;
return msg;
Here's an example of configuring a Foscam IP camera to upload images into Node-RED:
Now you can configure the motion settings of your IP camera to upload images to FTP.
The images are then emitted from this node as a buffer via msg.payload
.
Install node-red-contrib-config
and drag a config node into your workspace. Configure the node to set a global variable called ftp-server
with a JSON value of {"debug": true}
. Also make sure that the config tickbox for active
is unchecked. Redeploy. Now click the button on the config node.
This will trigger all instances of ftp-server
to write extra logging to the os syslog next time they're invoked.
FAQs
NodeRED modules that provides an ftp server so file writes can be handled in a NodeRED flow
The npm package node-red-contrib-ftp-server receives a total of 62 weekly downloads. As such, node-red-contrib-ftp-server popularity was classified as not popular.
We found that node-red-contrib-ftp-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.