You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
syssi
added a commit
to syssi/python-miio
that referenced
this issue
Jun 2, 2018
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'
The text was updated successfully, but these errors were encountered: