Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IR remote chuangmiir module #325

Closed
AlbrtoSam opened this issue May 28, 2018 · 0 comments
Closed

IR remote chuangmiir module #325

AlbrtoSam opened this issue May 28, 2018 · 0 comments

Comments

@AlbrtoSam
Copy link

I have got a IR module working using mirobo:

mirobo --ip 192.168.1.225 --token 12345 raw_command miIO.ir_play '{"freq": 38400, "code": "Z6VrAJwAAAAjAQAAugEAAHICAAAOAwAAfFoBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASEDAgQDAwEBAwMCAwEBAQMFASEDAgQDAwEBAwMCAwEBAQMFASEDAgQDAwEBAwMCAwEBAQMAA="}'
Sending cmd miIO.ir_play with params {'freq': 38400, 'code': 'Z6VrAJwAAAAjAQAAugEAAHICAAAOAwAAfFoBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASEDAgQDAwEBAwMCAwEBAQMFASEDAgQDAwEBAwMCAwEBAQMFASEDAgQDAwEBAwMCAwEBAQMAA='}

And it works fine.

Now i wanted to start using miiocli chuangmiir but i dont know the sintaxis, i also saw the help, but no luck:

Info works fine
miiocli chuangmiir --ip 192.168.1.225 --token be6778439fdc154b676c7c4376cc5968 info

But i dont know the sintaxis for play command: I got this error:

root@debian:/home/pi# miiocli chuangmiir --ip 192.168.1.225 --token be6778439fdc154b676c7c4376cc5968 play 2
Playing the supplied command
Traceback (most recent call last):
File "/usr/local/bin/miiocli", line 11, in
load_entry_point('python-miio==0.3.9', 'console_scripts', 'miiocli')()
File "/usr/local/lib/python3.5/dist-packages/miio/cli.py", line 43, in create_cli
return cli(auto_envvar_prefix="MIIO")
File "/usr/local/lib/python3.5/dist-packages/miio/click_common.py", line 53, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/miio/click_common.py", line 248, in wrap
kwargs['result'] = func(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/decorators.py", line 64, in new_func
return ctx.invoke(f, obj, *args[1:], **kwargs)
File "/usr/local/lib/python3.5/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
TypeError: command_callback() got multiple values for argument 'command'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant