how can I send a rpc-message

  • Hi,

    I'm looking for a way to send a rpc-message from commandline.

    I tried to use a rpcclient compiled at armbian, but that did not work (of cause).

    Then I tried to use python, but python does not contain the rpyc or classic module ...

    I read, that its possible, to tweak kodi to use json-rpc, but that's no way for me.

    So what's the preferred way to send a rpc-message from libreelec?

  • Hi,

    thank you very much for your attention.

    Well, I didn't want to sent a message to kodi.

    I tested various rpc-variants, but none of them worked on an official LE image and I didn't want to create my own image.

    Then I thought, may be I don't need rpc-method and I tried simple socket programming.

    A small python script that sends a socket message on LE and a compiled socket server on the receiver side.

    Works fine.

    Together with the autostop script of LE I can now shutdown my nas when I shutdown LE.

    Works as expected.