sensor.leap#

class platypush.message.event.sensor.leap.LeapConnectEvent(*args, **kwargs)[source]#

Bases: Event

Event triggered when a Leap Motion sensor is connected

__init__(*args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event

class platypush.message.event.sensor.leap.LeapDisconnectEvent(*args, **kwargs)[source]#

Bases: Event

Event triggered when a Leap Motion sensor is disconnected

__init__(*args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event

class platypush.message.event.sensor.leap.LeapFrameEvent(hands, *args, **kwargs)[source]#

Bases: Event

Event triggered when a Leap Motion devices receives a new frame

__init__(hands, *args, **kwargs)[source]#
Parameters:

hands (dict) – Reference to the detected hands properties (palm and fingers X,Y,Z position, direction etc.)

class platypush.message.event.sensor.leap.LeapFrameStartEvent(*args, **kwargs)[source]#

Bases: Event

Event triggered when a new sequence of frames is detected by the Leap Motion sensor

__init__(*args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event

class platypush.message.event.sensor.leap.LeapFrameStopEvent(*args, **kwargs)[source]#

Bases: Event

Event triggered when a Leap Sensor stops detecting frames

__init__(*args, **kwargs)[source]#
Parameters:
  • target (str) – Target node

  • origin (str) – Origin node (default: current node)

  • id (str) – Event ID (default: auto-generated)

  • timestamp (float) – Event timestamp (default: current time)

  • logging_level – Logging level for this event (default: logging.INFO)

  • disable_web_clients_notification – Don’t send a notification of this event to the websocket clients

  • kwargs – Additional arguments for the event