Skip to content

A simple Javascript interface to communicate with CDP applications containing a CDPLogger component to retrieve historic data.

License

Notifications You must be signed in to change notification settings

CDPTechnologies/JavascriptCDPLoggerClient

Repository files navigation

CDPLogger Client for JavaScript

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

Installation

Clone the repository and install dependencies:

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: support@cdptech.com

About

A simple Javascript interface to communicate with CDP applications containing a CDPLogger component to retrieve historic data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published