platypush.backend.sensor.ir.zeroborg

class platypush.backend.sensor.ir.zeroborg.SensorIrZeroborgBackend(no_message_timeout=0.37, **kwargs)[source]

This backend will read for events on the infrared sensor of a ZeroBorg (https://www.piborg.org/motor-control-1135/zeroborg) circuitry for Raspberry Pi. You can see the codes associated to an IR event from any remote by running the scan utility:

python -m platypush.backend.sensor.ir.zeroborg.scan

Triggers:

__init__(no_message_timeout=0.37, **kwargs)[source]
Parameters:
  • bus – Reference to the bus object to be used in the backend
  • poll_seconds – If the backend implements a loop method, this parameter expresses how often the loop should run in seconds.
  • kwargs – Key-value configuration for the backend
run()[source]

Starts the backend thread. To be implemented in the derived classes if the loop method isn’t defined.