A simple JavaScript interface for communicating with CDP applications that include a CDPLogger component to retrieve historic data.
- For documentation on the JS logger client see DOCUMENTATION.md.
- For a quickstart guide on how to set-up the npm project for either Node or Web see QUICKSTART.md
- For more information about CDP Studio see https://cdpstudio.com/.
Clone the repository and install dependencies:
npm install
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
The value.js file contains a simple logger built for the CDP Studio example case.
-
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
-
Run the value.js file from the command line:
node examples/value.js
For usage related to events run:
node examples/event.js
Email: support@cdptech.com