Petal Docs
  • Introduction
  • Connect to muse (Free)
    • Connect muse & Stream Raw Data
      • Connect muse to Mac
      • Connect muse to Windows
  • Receive Data Streams (Free)
    • Receive an LSL Stream
      • Python Examples
      • Node Examples
    • Receive an OSC Stream
      • Python Examples
      • Node Examples
    • Receive Webhooks
      • Python Examples
      • Node Examples
  • Log Data (Free)
    • Logging Data
  • Metrics API (Maker Plan)
    • API Integration
    • Make Metrics API calls
      • Python Examples
      • Node.js Examples
  • Receive Data Streams (Maker Plan)
    • Receive an LSL Stream
      • Python Examples
      • Node Examples
    • Receive an OSC Stream
      • Python Examples
      • Node Examples
    • Receive Webhooks
      • Python Examples
      • Node Examples
  • Glossary of Terms
    • Glossary of Terms
  • 🧪Markers
    • 🧪Markers User Guide
Powered by GitBook
On this page
  • Receiving Webhooks
  • Messages Examples

Was this helpful?

  1. Receive Data Streams (Free)

Receive Webhooks

PreviousNode ExamplesNextPython Examples

Last updated 3 years ago

Was this helpful?

Receiving Webhooks

Webhooks are a way to get notifications over the network by setting up a server and listening for post events. To set up a simple server to receive webhooks, you can also use some of the example scripts in the .

As of now, raw EEG data streaming is not supported over webhooks, but the connection status of the device is.

All messages are sent on the root path '/'.

Messages Examples

status

{
  data: {
    id: 4,
    device: { id: 'XlJkPjTVoQr+PJ2mzLks9Q==', name: 'MuseS-17EC' },
    status: 'connected',
    lsl_ts: 5431.3538874,
    unix_ts: 1633322947.932
  type: 'status',
  action: { value: 'connected', time: 5431.3538874 }
{
  data: {
    id: 5,
    device: { message: 'lostConnection', device: [Object] },
    status: 'disconnected',
    lsl_ts: 5444.0920081,
    unix_ts: 1633322960.67
  },
  type: 'status',
  action: { value: 'disconnected', time: 5444.0920081 }
}

getting started repo