Code Monkey home page Code Monkey logo

onkyo_eiscp_ruby's People

Contributors

jeremybmerrill avatar mikerodrigues avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

onkyo_eiscp_ruby's Issues

Simple commands do not work with onkyo TX-NR636

It seems that the new models are more strict regarding the header parsing.
see here:
paulianttila/openhab@31cfe65

When I send a PWRQSTN to my TX-NR636, I get this:

$ ./onkyo.rb PWRQSTN
/home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/message.rb:60:in 'initialize': No value specified. (RuntimeError)
    from /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser/iscp_parser.rb:23:in 'new'
    from /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser/iscp_parser.rb:23:in 'parse'
    from /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/parser.rb:16:in 'parse'
    from /home/eric/.gem/ruby/2.2.0/gems/onkyo_eiscp_ruby-2.0.0/lib/eiscp/receiver.rb:164:in 'send_recv'
    from ./onkyo.rb:149:in '<main>'

Command validation and interpretation missing

There's some very basic stuff in command.rb

Translating between human readable names/descriptions for commands/parameters/values.

Would be nice to have something that allows command line arguments using names/descriptions as well, a la:

onkyo.rb system-power on

Possibly extending EISCP::Message.parse

DRY up receiver.rb

Lots of repetition in this file.

discover method should be a command that utilizes Receiver's code via include or something

ECNQSTN is basically just a command that's not in the yaml file, and it would be nice to able to do things like Receiver.discover, Receiver.pause, Receiver.input("TV) without defining each of those methods in Receiver. This might be a bit high level for me, maybe something like:

Receiver.system-power("on")
Receiver.system-power("01")
Receiver.input-selector("TV")

send_recv always reports net-usb-list-info

When using the send_recv the result is always the same response, !NLSC-P
It seems that this is because every time send_recv is called, a new connection to the receiver is made. Testing with TCPSocket.new seems to indicate that the message is sent to indicate a new connection to the server has been made.

The documentation does specify that the client should make a continuous connection to receive updates so I'll either need to do away with send_recv or have it handle the NLSC-P message everytime. Either way, any method that makes a connection is going to have to handle the NLSC-P response. Distinction should be made between the initial NLSC-P response (indicating that client's connection), and subsequent NSLC-P responses, indicate other clients have connected.

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.