hyperion-project / hyperion.control

Kodi Addon to control Hyperion.
MIT License
31 stars 10 forks source link

doesn't work with kodi 19 #4

Closed BooStars closed 2 years ago

BooStars commented 4 years ago

HI all, is it possible to make this addon work with kodi 19 ? is guess somewhere they changed python support from python 2 to python 3.

greetings boostar

brindosch commented 4 years ago

Hello, You can try my PR: https://github.com/hyperion-project/hyperion.control/pull/5

Thank you for your feedback

BooStars commented 4 years ago

Hi brindosch, thanks for looking at this.

i tested your changes. the good news: the addon works again the bad: it can't find my hyperion server in the network.

The output from kodi: 2020-03-03 20:58:30.110 T:504 NOTICE: [script.service.hyperion-control] b'Settings updated!' 2020-03-03 20:58:30.110 T:504 NOTICE: [script.service.hyperion-control] b'Hyperion ip: 192.168.10.2' 2020-03-03 20:58:30.110 T:504 NOTICE: [script.service.hyperion-control] b'Hyperion port: 20444' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Enable H on start: True' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Disable H on stop: False' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'VideoMode enabled: False' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Hyperion target comp: GRABBER' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Screensaver enabled: False' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Video enabled: True' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Audio enabled: True' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Pause enabled: False' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Menu enabled: True' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Debug enabled: True' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'ChangelogOnUpdate: True' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'tasks: 0' 2020-03-03 20:58:30.111 T:504 NOTICE: [script.service.hyperion-control] b'Send to: http://192.168.10.2:20444/json-rpc payload: {"command":"componentstate", "componentstate":{"component": "ALL", "state": true }, "tan":1}' 2020-03-03 20:58:30.338 T:504 NOTICE: [script.service.hyperion-control] b'Send to: http://192.168.10.2:20444/json-rpc payload: {"command":"componentstate", "componentstate":{"component": "GRABBER", "state": true }, "tan":1}'

My hyperion-setup is installed on another raspberry "device" : { "name" : "AmbiLight", "type" : "tpm2", "output" : "/dev/ttyUSB1", "rate" : 500000, "colorOrder" : "rgb" }, other clients easily connect to the host.

shame on me but my hyerion version is a bit older Hyperion Ambilight Deamon (15063) Version : V1.03.2 (brindosch-99d9396/d3713a8-1469452981 Build Time: Jul 25 2016 06:54:40

brindosch commented 4 years ago

Thank you for your feedback, the server detection seems to be broken in some way (and i don't know why). Are you using this Addon on Linux? I need to play around with another implementation.

BooStars commented 4 years ago

No Problem, thanks for help. yes i'm using Linux it's LibreElec.

linx25 commented 3 years ago

it seems V10lator fixed the Kodi 19 (coreelec) problem https://github.com/V10lator/hyperion.control/tree/Kodi19Py3. There is a pull request open.

Lord-Grey commented 2 years ago

Please test with new version released.