Giter Site home page Giter Site logo

rasplex_remote's Introduction

Rasplex Remote

I use an Onkyo receiver and wanted to control Rasplex with its remote. The behavior should be supported by Rasplex for a whole range of remotes but not for mine. Frustrated with any documentation on how to fix this problem I decided to fix it myself. Rasplex supplies an executable called cec-client, which listens to the cec input through HDMI from an outside source. I enabled cec passthrough on my receiver and when I started the cec-client the commands from my remote showed in the terminal. The script autostart.sh in .config pipes this output to the remote.py python script.

The autostart.sh should be placed in /storage/.config/ such that Rasplex will start in on bootup.

The remote.py parses the commands from the cec-client and send a jsonrpc command to Rasplex.

More documentation about how to use jsonrpc for Rasplex can be found here: https://kodi.wiki/view/JSON-RPC_API/v8. (Rasplex is an altered version of Kodi) When tweaking this software for use with your own remote, you should probably alter the key_map and params_map variables. They are key:value where the key is parsed from the cec-client input and the value the command or parameters I wanted to send to Rasplex.

rasplex_remote's People

Contributors

jellevanwezel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.