"irnetbox" python module to control the RedRat irNetBox-III infrared emitter
"irnetbox" python module to control the RedRat irNetBox-III infrared emitter

The irNetBox-III is a network-controlled infrared emitter:
http://www.redrat.co.uk/products/irnetbox.html

The infrared signal details come from a configuration file produced by
RedRat's "IR Signal Database Utility":
http://www.redrat.co.uk/software/SignalDBUtil/index.html

This doesn't support config files with "double signals" (where 2
different signals were recorded from alternate presses of the same
button on the remote control unit). For my use case, the IR Signal
Database Utility *did* record double signals, but my set-top box treats
them both the same, so I manually edited the generated config file and
replaced pairs of "DMOD_SIG" entries with a single "MOD_SIG" entry.

I haven't yet tested IRNetBox.irsend_raw with signals with a
"max_num_lengths" parameter (in the config file) other than "16".

Note that the irNetBox device only allows one TCP connection at a time,
so one client emitting IR signals could cause other clients to fail. So
we retry the TCP connection to the irNetBox 5 times with exponential
backoff.

Re. the `power` parameter of `irsend_raw`: Even at the maximum power of
100, my neighbouring set-top boxes do not see the signal sent to the
targetted set-top box. So even at 100 there won't be any IR interference
across different set-top boxes, unless your set-top box's infrared
receiver is more sensitive than mine.

LewisHaley/stb-tester,martynjarvis/stb-tester,martynjarvis/stb-tester,wmanley/stb-tester,stb-tester/stb-tester,martynjarvis/stb-tester,stb-tester/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,LewisHaley/stb-tester,wmanley/stb-tester,martynjarvis/stb-tester,stb-tester/stb-tester,wmanley/stb-tester,wmanley/stb-tester,LewisHaley/stb-tester,stb-tester/stb-tester,LewisHaley/stb-tester,martynjarvis/stb-tester,martynjarvis/stb-tester,wmanley/stb-tester,LewisHaley/stb-tester,martynjarvis/stb-tester