OCPP WS IOOCPP WS IO
OCPP CLI

Development Tools

Utilities for mocking APIs and generating telemetry.

ocpp mock

A Mock API Server Generator. It creates a simple HTTP server with Server-Sent Events (SSE) that your frontend team can use to develop dashboards without needing a real running CSMS backend.

Usage

ocpp mock [options]

Options

OptionAliasDefaultDescription
--port-p8080The HTTP port to listen on.
--rate-r500The interval in milliseconds for generating random events.

How it works

  1. Starts an HTTP server at http://localhost:8080.
  2. Exposes an /events endpoint that streams random StatusNotification and MeterValues updates via SSE.
  3. Frontend apps can subscribe to this stream to visualize charging sessions in real-time.

On this page