Coder Social home page Coder Social logo

j-vizcaino / ir-remotes Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 75 KB

Tools for managing IR remotes with Broadlink RM Mini

License: GNU General Public License v3.0

Go 78.84% Makefile 1.26% HTML 19.90%
golang broadlink-rm cli rest-api broadlink-ir-blaster ir-remotes broadlink-rm-mini ir-remote

ir-remotes's People

Contributors

j-vizcaino avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ir-remotes's Issues

serve: add query option to select a different Broadlink device

The POST endpoint that sends IR code always use the first device listed in the devices.json file.
This obviously won't work when the local network has multiple devices.

Add a query option to select the target Broadlink device, falling back to the first one in the list if the option is not provided.
Or, make it optional if len(devices) == 1, required otherwise.

discover: prompt for new device name

Discover never prompts for device name and always uses unnamed.
Add promptui support for asking the user to give a name for the newly discovered device.

capture: use devices file

The capture command relies on network discovery.
The command should use the devices file to select the receiver to use.
When multiple devices are listed, either an interactive selector (promptui) or a command line option should be provided.

serve: remove hacky HTML template code

The implementation with the site provided as a JSON list of codes is pretty much useless and incomplete.
The template is hardcoded and the result is perfectible, since the JSON code is coupled with the template and its use of font-awesome.

Switch to serving a plain static site instead.

RM mini4

I'm trying to use the software to capture IR codes, the device is discovered and added, but when I try to capture I get the following error:

ERRO Failed to start capture mode error="failed to start capturing remote control code"
FATA Failed to capture IR command error="failed to start capturing remote control code"

Add support for bash/zsh completion

Cobra provides automatic generation of Bash and Zsh shell completion.
Enable that and add misc annotations for proper completion support, like cobra.MarkFlagFilename()

First release

Using goreleaser, release an initial version of the tool

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.