Node.js Examples
Recommended Installation
We used Node.js 10.15.3 for these examples. If you don't use LSL, you can probably use versions 14.15.1+.
Install the dependencies:
npm installThis file provides a function to make Petal Metrics API calls.
This script contains an example of a Petal Metrics API call without connecting to any active LSL streams. You will need a valid developer API key to access. You will need a valid developer API key to access.
node api_standalone.js -k $API_KEYThis script demonstrates how to receive an LSL stream and call the Petal API in an endless loop. You will need a valid developer API key to access.
node api_lsl_call_loop.js -n SimulatedEEGStream -k $API_KEYLast updated
Was this helpful?