Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

node-red-contrib-longship

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

node-red-contrib-longship

A Node-RED node for Longship integration

unpublished
latest
npmnpm
Version
0.1.0
Version published
Maintainers
0
Created
Source

Node-RED Longship Integration

A Node-RED integration for the Longship charging station management platform. This collection of nodes enables interaction with OCPP-compliant charging stations through the Longship API.

Installation

npm install node-red-contrib-longship

Configuration

Before using any of the command nodes, you need to configure the Longship connection details:

  • Add a "longship-config" node to your flow
  • Configure:
    • Base URL (default: https://api.longship.io)
    • Tenant Key (Ocp-Apim-Subscription-Key)
    • Application Key (x-api-key)

Available Nodes

Configuration Node

  • longship-config: Stores connection details for the Longship API including base URL and authentication keys.

Command Nodes

Basic Commands

  • Clear Cache

    • Clears the internal cache of a charging point
    • Input: chargePointId
  • Reset

    • Resets a charging point (soft or hard reset)
    • Input: chargePointId, type (Soft/Hard)
  • Trigger Message

    • Requests specific messages from a charging point
    • Supported messages: BootNotification, Heartbeat, StatusNotification, MeterValues
    • Input: chargePointId, requestedMessage, connectorId

Charging Control

  • Remote Start

    • Initiates a charging session
    • Input: chargePointId, connectorId, idTag (optional)
  • Remote Stop

    • Stops an active charging session
    • Input: chargePointId, transactionId

Charging Profiles

  • Clear Charging Profile

    • Removes charging profiles from a charging point
    • Input: chargePointId, various profile filters
  • Get Composite Schedule

    • Retrieves the composite charging schedule
    • Input: chargePointId, connectorId, duration, chargingRateUnit
  • Set Charging Profile

    • Configures charging profiles
    • Input: chargePointId and profile configuration

Additional Commands

  • Data Transfer

    • Sends custom data to charging points
    • Input: chargePointId and transfer data
  • Unlock Connector

    • Unlocks a connector on a charging point
    • Input: chargePointId, connectorId
  • Update Firmware

    • Initiates firmware updates on charging points
    • Input: chargePointId and firmware details

Usage Example

Here's a basic example of how to trigger a status notification:

  • Add a longship-config node and configure your credentials
  • Add a trigger-message node and configure:
    • Server: Select your config node
    • Message Type: StatusNotification
    • Connector ID: 1
  • Inject a message with:
    {
        "chargePointId": "CP001"
    }
    

Error Handling

All nodes provide error feedback through:

  • Node status indicators
  • Error messages in the Node-RED debug panel
  • Error outputs in the message payload

License

MIT License

Author

Gaia Charge

Keywords

node-red

FAQs

Package last updated on 17 Feb 2025

Did you know?

Socket

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.

Install

Related posts