Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

CDPLogger Client for JavaScript

A simple JavaScript interface for communicating with CDP applications that include a CDPLogger component to retrieve historic data.

Installation

NPM Package (Recommended)

npm install cdplogger-client

Development Setup

Clone the repository and install dependencies:

git clone https://github.com/CDPTechnologies/JavascriptCDPLoggerClient.git
cd JavascriptCDPLoggerClient
npm install

Running Tests

To run the automatic tests with fake data, execute:

npm test

Note: these jest tests execute on every push and pull of the repo as well.

To test the time sync functionality using simulated response:

node test/testTimeSync.js

Usage

The value.js file contains a simple logger built for the CDP Studio example case.

  1. Set up and run the Logger in CDP Studio. (Refer to Help → Framework - Data Logging → How to Setup Logging in Automation System) https://cdpstudio.com/manual/cdp/cdplogger/cdplogger-configuration-example.html

  2. Run the value.js file from the command line:

node examples/value.js

For usage related to events run:

node examples/event.js

Contact

Email: [email protected]