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
feat: update to Kodi Nexus and python 3.10 #46
Conversation
- refactorings to adhere to PEP8 and new add-on structure - take advantage of new settings API - move most of the logic to the Monitor subclass
Is there anyone here? thanks for the attention |
For what it's worth I've tried your plugin and it works perfectly, good job! I'm not affiliated with this project but would also like your changes to be merged, so hopefully someone will reply to this. |
@sanzoghenzo Thank you very much for your contribution and getting the add-on aligned to the latest standards. A couple of questions and feedback
I added my go as a patch on top of your PR: In addition, I addressed already some of the feedback provided by 2. 4.I assume that you and @al-madjus did not test the add-on on an rpi4, correct? |
Hi @Lord-Grey , thanks for taking the time to review this.
protobuf is simply missing from the official kodi repository for newer versions, so it needed to be re-uploaded (still waiting for the PR to be merged)
You are correct, I'm running my kodi on a thinkcentre (x64) machine. |
Can you see the comments now? Thanks for all the other answers and your go issuing a ProtoBuf PR! |
- use pillow for image processing - preserving aspect ratio - capture was issued only at connection - reconnect on host or port settings change - remove unused labels
Now we should be all set, I also handled the case where the connection parameters are changed while a video is still playing (I don't even know if it is possible, but better safe than sorry!) |
Hi, |
That is great. Would you mind granting me access to your repository? Then I would just do a commit... |
@sanzoghenzo Please have a look at the additional commits and updates. |
I fixed some wording in the readme, and while I was at it I added the Italian translation. I'm not sure about keeping the debug logs for the capture size and aspect ratio, since they are displayed at every screen grab and pollute the log big time. How do you feel if I remove it? @al-madjus would you be so nice to test the latest commits? I moved things around and is working fine for me, at least the image is sent to Hyperion (I still can't get my yeelight lights to cooperate!). If I watch the live video in the led Visualization it flickers a lot, but I don't know how it translates to to the actual leds. |
That you for the corrections. Looks I had fat-fingers… :) On the debug statements… I intended to have them removed before merging. |
Done! I also saw the hardcoded 500ms duration in the hyperion send_image method, aligned to the capture sleep_time |
Thank you! |
Thanks @Lord-Grey for taking the time to move this forward! What do you think about pushing the changes in the Official kodi repository? We should follow these instructions to create a single commit PR, and verify everything with the addon checker (it is run on CI, but it's better to be prepared before making the PR!) As per kodi repo mantainers instructions, I'm afraid it should be you the one that submits the PR as project owner 😉 |
For publishing the add.on to the official repository, let me discuss within the core team Neverheless, I addressed the findings raised by the kodi-addon-checker and created a new PR (but reused your kodi20 branch). As we are on the way cleaning up the Kodi add-ons.... |
Oh, I didn't even know the existence of hyperion.control. May I ask why it is a separate add-on? I think it would be handy for end users to have a single kodi add-on to handle everything hyperion related... or am I missing something? |
Hi, sorry for the delay. I've checked it on my Linux box running Kodi with a couple of videos, one from YouTube and another on my hard drive, and it works great, no issues detected. |
@sanzoghenzo PR4350 issued |
Hi there!
I tried to update the add-on to Kodi v20 (the version I'm using), hopefully useful (but not tested) also for v19 asked in #45.
I had to repackage the script.module.protobuf, I'll do a PR in the official kodi repository to ease the installation.
I suppose also this add-on can be merged in the offical repository; I can do it, but I think it would be better if it comes from the hyperion project itself!
Fixes #45