Open clach04 opened 7 years ago
Hi @clach04,
First, thanks for you feedback. You're right, this chr
doesn't make sense if used on a sequence. This code was added by a contributor but I couldn't get a chance to try it on a firecracker.
Maybe you can try either to:
chr()
UsbX10Controller
class (see https://github.com/glibersat/python-x10/blob/master/x10/controllers/abstract.py#L159)If you need some assistance, feel free to ask, I'd be glad to have someone test this package against a real firecracker and confirm it's working.
Cheers,
Guillaume
I was able to successfully use http://www.averdevelopment.com/python/x10.html and https://bitbucket.org/cdelker/python-x10-firecracker-interface/ for CM17A control. The later is more pythonic in method naming (pep8) and under source code control but the first one has more features (e.g. all on/off support) and can work under Python 3.
I'm not likely to get around to hacking on this further as things are working for me in https://github.com/clach04/x10_rest. I'm certainly happy for you to ping me if you want a tester,
I tweaked/hacked the sample/demo in the
tests
demo to help with cross platform testing:It fails with the following traceback:
which is correct,
chr()
expects a single character, maybe this should be anaSequence.encode('latin1')
?This was with Windows and Python 2.7 but I don't think the platform/version have an impact.
As an FYI I've had success with the following firecracker (specific) modules under Linux and Windows: