volumio / volumio-plugins

165 stars 750 forks source link

Code rework for Kodi plugin #116

Closed volumio closed 6 years ago

volumio commented 6 years ago

@Saiyato

Before deploying the Kodi plugin there are few issues that need to be solved:

use always the full path: /opt/vc/bin/tvservice

Saiyato commented 6 years ago

I just patched the tvservice not found error, it needed a symlink in the install script.

I couldn't reproduce the JSON error, do you have more info for me? How can I test that?

The last error is caused by a memory shortage, you need a reboot after installation (/boot/config.txt is changed)

Saiyato commented 6 years ago

Never mind, I see what happened... you removed the zip file; the problem is with the directory name I used, I use a capital K and uploaded a non-capital k directory.

What do you think? Capital K or not? I have no real preference, just used the capital because it's a name.

Maybe even make it a naming convention, all lower or something like that.

volumio commented 6 years ago
Saiyato commented 6 years ago

Check! Will (try to) patch the directory name tomorrow.

The symlink is because the file is read from /usr/bin/ as opposed to /opt/vc/bin/, it's not really necessary, but the error is ugly imho. It might just work if I move the tvservice binary to /usr/bin/ not sure what that would mean for other applications (I think nothing, but it's just a theory).

I will also read into the alsa controller plugin... I know how to create the pop-up, just not after installation (from install.sh), don't know if the onInstall method works right now.

volumio commented 6 years ago
Saiyato commented 6 years ago

Added the PR for tv service, not sure if nopasswd is required. Heck, I don't even fully understand what it does, I believe it detects attached screens, but apart from that...

The pop-up in the API would help yes, haven't had the time to read into the alsa controller, but I presume that pop-up doesn't come from sh.

Testing the new directory name now first, hopefully I can push the version tonight.