Chorus2 redesign/port - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +---- Forum: GSoC (https://forum.kodi.tv/forumdisplay.php?fid=299) +----- Forum: GSOC 2020 (https://forum.kodi.tv/forumdisplay.php?fid=301) +----- Thread: Chorus2 redesign/port (/showthread.php?tid=352063) Pages:
1
2
|
RE: Chorus2 redesign/port - ionif - 2020-04-08 Alright sorry for the late update, its the last month of school so exams are coming up. I've been trying to get websockets to work in elm with little success. I tried following the instructions here: https://github.com/billstclair/elm-websocket-client/tree/4.1.0 to use ports but I guess I'm still unfamiliar with where to put the port definitions. Unless @Razze or someone else can offer some advice, I think I'm going to try and find a working elm 0.18 websocket example and try adapting that to communicate with Kodi. RE: Chorus2 redesign/port - ionif - 2020-04-09 Okay! Some success, I got this example running and communicating with Kodi: https://github.com/MattCheely/elm-port-examples. It uses Node as well as Elm which is kinda strange but I'm working on understanding it now and hopefully I can get a pure Elm solution running soon. RE: Chorus2 redesign/port - Razze - 2020-04-14 (2020-04-09, 03:20)ionif Wrote: Okay! Some success, I got this example running and communicating with Kodi: https://github.com/MattCheely/elm-port-examples. It uses Node as well as Elm which is kinda strange but I'm working on understanding it now and hopefully I can get a pure Elm solution running soon. That's expected, that's the whole point of ports This might be helpful: https://github.com/elm-community/js-integration-examples This might also be worth a read https://guide.elm-lang.org/interop/ports.html RE: Chorus2 redesign/port - ionif - 2020-04-14 (2020-04-14, 01:05)Razze Wrote:Ah thanks, yeah I'm slowly understanding the ecosystem of elm; its a little strange to me. I read the documentation you linked and I'm going to get the examples you linked running on my laptop next. Adapting those should be next.(2020-04-09, 03:20)ionif Wrote: Okay! Some success, I got this example running and communicating with Kodi: https://github.com/MattCheely/elm-port-examples. It uses Node as well as Elm which is kinda strange but I'm working on understanding it now and hopefully I can get a pure Elm solution running soon. RE: Chorus2 redesign/port - Razze - 2020-04-17 you might want to reread/ check the docs, as it has been updated in the last days https://guide.elm-lang.org/interop/ RE: Chorus2 redesign/port - ionif - 2020-04-26 Ah okay thanks for the heads up! So sending some actions like play/pause are pretty straightforward and I have those rigged up to buttons. The harder actions are ones where you have to wait to get the response and then update some information, I'm still figuring out how to do this but I wanted to give an update. RE: Chorus2 redesign/port - Razze - 2020-04-27 (2020-04-26, 03:10)ionif Wrote: Ah okay thanks for the heads up! So sending some actions like play/pause are pretty straightforward and I have those rigged up to buttons. The harder actions are ones where you have to wait to get the response and then update some information, I'm still figuring out how to do this but I wanted to give an update. Thank you, much appreciated. |