Events
ConnectorDataEvent
dataclass
Bases: Event
ThinkGear Connector Data Event.
Attributes:
Name | Type | Description |
---|---|---|
data |
dict
|
Json formatted data received from the ThinkGear Connector. |
timestamp |
datetime
|
The timestamp when the Data was received. |
Source code in mindwave/connector.py
HeadsetStatusEvent
dataclass
HeadsetStatusEvent(status: ConnectionStatus, timestamp: datetime = None)
Bases: Event
Headset connection status change event.
Attributes:
Name | Type | Description |
---|---|---|
status |
ConnectionStatus
|
Current ConnectionStatus of the headset. |
timestamp |
datetime
|
The timestamp when the status changed. |
Source code in mindwave/headset.py
HeadsetDataEvent
dataclass
Bases: Event
Headset Data Event.
Attributes:
Name | Type | Description |
---|---|---|
data |
Data
|
The parsed data from the stream. |
timestamp |
datetime
|
The timestamp of the event. |
Source code in mindwave/utils/stream_parser.py
BlinkEvent
dataclass
Bases: Event
Blink detection event.
Attributes:
Name | Type | Description |
---|---|---|
blink_strength |
int
|
The strength of the detected blink. |
timestamp |
datetime
|
The timestamp when the blink was detected. |
Source code in mindwave/headset.py
SignalQualityEvent
dataclass
Bases: Event
Signal quality change event.
Attributes:
Name | Type | Description |
---|---|---|
signal_quality |
int
|
Integer representing signal quality value (0-100%). |
timestamp |
datetime
|
The timestamp when the signal quality changed. |
Source code in mindwave/headset.py
TimeoutEvent
dataclass
TimeoutEvent(timestamp: datetime = None)
Bases: Event
Timeout event.
Attributes:
Name | Type | Description |
---|---|---|
timestamp |
datetime
|
The timestamp when the timeout occurred. |
Source code in mindwave/headset.py
SessionEvent
dataclass
SessionEvent(signal: SessionSignal, class_name: str = None, timestamp: datetime = None)
Bases: Event
Session Event.
Attributes:
Name | Type | Description |
---|---|---|
signal |
SessionSignal
|
The signal emitted during the session. |
class_name |
str
|
The class name associated with the event. |
timestamp |
datetime
|
The timestamp of the event. |