birkirb / hue-cli

Command Line Interface to the Philips Hue lighting system.
MIT License
63 stars 9 forks source link

wrong # of params #1

Closed evliu closed 10 years ago

evliu commented 10 years ago

any thoughts on this?

--> hue register
Please press the button on your bridge.
Once done, press Enter to continue with the registration.

/Users/user/.rvm/gems/ruby-2.1.0/gems/hue-lib-0.7.2/lib/hue.rb:108:in `initialize': wrong number of arguments (0 for 1..2) (ArgumentError)
    from /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `new'
    from /Users/user/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/timeout.rb:70:in `timeout'
    from /Users/user/.rvm/gems/ruby-2.1.0/gems/hue-lib-0.7.2/lib/hue.rb:69:in `discover'
    from /Users/user/.rvm/gems/ruby-2.1.0/gems/hue-lib-0.7.2/lib/hue.rb:92:in `register_bridges'
    from /Users/user/.rvm/gems/ruby-2.1.0/gems/hue-lib-0.7.2/lib/hue.rb:24:in `register_default'
    from /Users/user/.rvm/gems/ruby-2.1.0/gems/hue-cli-0.1.2/lib/hue/cli/commands/register.rb:22:in `default'
    from /Users/user/.rvm/gems/ruby-2.1.0/gems/hue-cli-0.1.2/lib/hue/cli/commands/register.rb:14:in `execute'
    from /Users/user/.rvm/gems/ruby-2.1.0/gems/hue-cli-0.1.2/lib/hue/cli.rb:29:in `run'
    from /Users/user/.rvm/gems/ruby-2.1.0/gems/hue-cli-0.1.2/bin/hue:5:in `<top (required)>'
    from /Users/user/.rvm/gems/ruby-2.1.0/bin/hue:23:in `load'
    from /Users/user/.rvm/gems/ruby-2.1.0/bin/hue:23:in `<main>'
    from /Users/user/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval'
    from /Users/user/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `<main>'
birkirb commented 10 years ago

Looks like a timeout error is not initialized properly. I'll fix the bug, but you need to make sure you are on the same network as the bridge.

evliu commented 10 years ago

Ahh thx. I only have one network at home so it's the same.

birkirb commented 10 years ago

Bridge on LAN and client on wi-fi?

evliu commented 10 years ago

yes

birkirb commented 10 years ago

Your router might have them setup as different networks. You can probably configure it to bridge them.

evliu commented 10 years ago

i checked, it's all a single network. Thanks for trying though. I'll use the node.js version of a hue-cli that someone else made.