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

Update chuangmi_ir.py to accept 2 arguments (frequency and length) #1091

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

mpsOxygen
Copy link
Contributor

Changed the arg_types variable to have a length of 2 in order to be able to use something like this (both frequency and length):
miiocli chuangmiir --ip 192.168.10.14 --token REDACTED play "raw:mc0mU0lkxm00mEsmkznEsmMzmM0AIqazYAPwA1Ag8BjwIfAy8DLwMvAZ8BnwIfAY8BjwA/AD8APwA/AD8APwA/AD8APwqPCo8PzwIfAD8APwSfFX8FHwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APxgfFw8APwKPAY+bA=:38000:224"

Changed the arg_types variable to have a length of 2 in order to be able to use something like this (both frequency and length): 
miiocli chuangmiir --ip 192.168.10.14 --token REDACTED play "raw:mc0mU0lkxm00mEsmkznEsmMzmM0AIqazYAPwA1Ag8BjwIfAy8DLwMvAZ8BnwIfAY8BjwA/AD8APwA/AD8APwA/AD8APwqPCo8PzwIfAD8APwSfFX8FHwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APxgfFw8APwKPAY+bA=:38000:224"
@rytilahti
Copy link
Owner

What's the model as reported by info? Could it be the the previous version uses the single argument format?

@mpsOxygen
Copy link
Contributor Author

Model: chuangmi.remote.v2
Hardware version: esp32

@Dozku
Copy link
Contributor

Dozku commented Jul 17, 2021

Thank @mpsOxygen for finding the issue. This bug was introduced from my previous pull request in #1043 which added length parameter for chuangmi.remote.v2 .

@rytilahti
Copy link
Owner

Ah, I see. Okay, I trust you on this and will merge it for the next release. Thanks for the PR @mpsOxygen!

@rytilahti rytilahti merged commit a11b944 into rytilahti:master Aug 12, 2021
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

Successfully merging this pull request may close these issues.

3 participants