JSPM

@processlink/node-red-contrib-processlink

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q58041F
  • License MIT

Node-RED nodes for Process Link platform integration - upload files, send notifications, and connect to industrial automation systems

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@processlink/node-red-contrib-processlink) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Process Link

    Process Link

    Node-RED Integration

    Connect your Node-RED flows to the Process Link platform

    npm version npm downloads Node-RED License: MIT


    Overview

    Connect your Node-RED flows to the Process Link platform. Upload files, send notifications, and integrate with industrial automation systems.

    Available Nodes

    Node Description
    files upload Upload files to Process Link Files API

    More nodes coming soon: mail, downtime logging, notes

    Installation

    1. Open Node-RED
    2. Go to Menu → Manage palette → Install
    3. Search for @processlink/node-red-contrib-processlink
    4. Click Install

    Via npm

    cd ~/.node-red
    npm install @processlink/node-red-contrib-processlink

    Then restart Node-RED.

    Quick Start

    1. Get Your Credentials

    1. Log in to the Process Link Portal
    2. Go to Developer → API Keys
    3. Click Generate API Key
    4. Copy your Site ID and API Key

    2. Add and Configure a Node

    1. Find the files upload node in the palette under "Process Link"
    2. Drag it into your flow
    3. Double-click to configure
    4. Click the pencil icon next to "Config"
    5. Enter your Site ID and API Key
    6. Click Add, then Done

    3. Connect Your Flow

    [File In] → [files upload] → [Debug]

    Node Reference

    Files Upload

    Uploads files to the Process Link Files API.

    Configuration

    Property Description
    Config Your Process Link credentials (Site ID + API Key)
    Filename Default filename (optional, can be set via msg.filename)
    Timeout Request timeout in milliseconds (default: 30000)

    Inputs

    Property Type Description
    msg.payload Buffer | string The file content to upload
    msg.filename string (Optional) Filename to use

    Outputs

    Property Type Description
    msg.payload object API response with ok, file_id, created_at
    msg.file_id string The UUID of the uploaded file
    msg.statusCode number HTTP status code (201 on success)

    Status Indicators

    Color Meaning
    🟡 Yellow Uploading in progress
    🟢 Green Upload successful
    🔴 Red Error occurred

    Examples

    Basic File Upload

    [File In] → [files upload] → [Debug]
    1. Configure a File In node to read your file
    2. Connect it to the files upload node
    3. Add a Debug node to see the response

    Dynamic Filename

    Use a Function node to set the filename dynamically:

    msg.filename = "report-" + new Date().toISOString().split('T')[0] + ".csv";
    return msg;

    Upload with Error Handling

    [File In] → [files upload] → [Switch] → [Debug (success)]
                                         ↘ [Debug (error)]

    Use a Switch node to route based on msg.statusCode:

    • Route 1: msg.statusCode == 201 (success)
    • Route 2: Otherwise (error)

    Error Handling

    Status Code Meaning Solution
    201 Success File uploaded successfully
    400 Bad Request Check that payload is a valid file buffer
    401 Unauthorized Verify your API key is correct
    403 Forbidden Enable API access in site settings
    404 Not Found Verify your Site ID is correct
    429 Rate Limited Max 30 uploads/minute per site
    507 Storage Full Contact administrator to increase storage

    Rate Limits

    • 30 uploads per minute per site
    • Exceeding the limit returns a 429 status code
    • Implement retry logic in your flow for high-volume uploads

    Security

    • ✅ API keys are stored encrypted by Node-RED
    • ✅ All communication uses HTTPS
    • ✅ Keys are never logged or exposed in flow exports

    Requirements

    • Node-RED >= 2.0.0
    • Node.js >= 14.0.0

    Support

    Contributing

    Contributions are welcome! Please read our Contributing Guide before submitting a pull request.

    License

    MIT © Process Link