miracle2k / onkyo-eiscp

Control Onkyo A/V receivers over the network; usuable as a script, or as a Python library.
MIT License
466 stars 110 forks source link

[REQUEST] Add simple example script to view all incoming messages #129

Open jetenginesupreme opened 3 years ago

jetenginesupreme commented 3 years ago

Could someone please lead me in the right direction? The code appears to be described in the README (but it errors out)

def message_received(message):
    print message

receiver = Receiver('...')
receiver.on_message = message_received

This small addition would help me and a lot of other people who just want to see the communication when interacting with the receiver (for adding commands to home automation systems etc.)

Also, this would be a nice feature to add in to the main onkyo script perhaps $onkyo --listen ?

Thank you in advance.