Epson Device

class epsonprojector.devices.epson.EpsonDevice(conn)
DEFAULT_TTY = '/dev/ttyUSB0'
_conf = None
build_command(command, parameter=None, status=False, *args, **kwargs)

Creates a command from Command and Parameter object

Parameters:
  • command – dict of command information from config
  • parameter – dict of parameter informations from config
Return any:

Command to send via Interface

config_file = 'epson.yaml'
connect()
get_config_file()

Get path to configfile

Return path:String path to configfile
initialize_config()

Initialize Config Loading

parse_command(answer, *args, **kwargs)

Try to parse responses from Projector

Parameters:answer – Data that returned from projector
Return ParsedResponse:
 Tuple with the parsed Information
read()
send(command)

Send command via Initialized Interface

Parameters:command – Projector Command
Returns:Parsed Projector answer