Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libcec: build python wrapper #4186

Merged
merged 1 commit into from Jun 8, 2015
Merged

libcec: build python wrapper #4186

merged 1 commit into from Jun 8, 2015

Conversation

Forage
Copy link
Contributor

@Forage Forage commented Jun 6, 2015

Enables building the libcec Python wrapper included in libcec 3.0, in addition to the other wrappers.

It would handy to be able to control libcec from Python.
In my case I've got two cec adapters in my RPi, one to control Kodi, one to control a set-top box through a Python script running on the RPi.

@fritsch
Copy link
Contributor

fritsch commented Jun 6, 2015

That one is considered useful. If it does not break anything +1 from me.

@MilhouseVH
Copy link
Contributor

Presumably using the Python wrapper will "break" Kodi CEC communication in the same way cec-client already does, if Kodi is active whenever the wrapper/cec-client is used (as only one CEC client can be active at a time).

That's not an objection, just trying to understand/confirm any potential limitations.

@Forage
Copy link
Contributor Author

Forage commented Jun 6, 2015

@MilhouseVH: It will break communication if you touch the CEC adapter used by Kido yes. It can/will happen less often then cec-client though.
If you communicate directly to a different adapter then nothing will happen to the one used by Kodi.
Use a just a scan function like "DetectAdapters()", which tries all available adapters, and your connection will be broken.
cec-client does this straight away, using the wrapper it's up to you.

The wrapper can be tested by running "/usr/bin/pyCecClient.py"

@stefansaraev
Copy link
Contributor

I think this has been discussed before, but I cant find the issue.

@MilhouseVH is right. but I dont mind including this, IMO it's up to the user to break their own systems, or not. so, ACK.

up to @sraue

sraue added a commit that referenced this pull request Jun 8, 2015
libcec: build python wrapper
@sraue sraue merged commit fcac22a into OpenELEC:master Jun 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants