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

Error using JSON commands #16

Closed
ryanwoconnor opened this issue Jun 30, 2017 · 3 comments
Closed

Error using JSON commands #16

ryanwoconnor opened this issue Jun 30, 2017 · 3 comments

Comments

@ryanwoconnor
Copy link

ryanwoconnor commented Jun 30, 2017

ryBook:tplink-smartplug ryanoconnor$ python tplink-smartplug.py -t 192.168.1.225 -j {"emeter":{"get_daystat":{"month":6,"year":2017}}}

usage: tplink-smartplug.py [-h] -t (-c | -j )

tplink-smartplug.py: error: unrecognized arguments: {emeter:{get_daystat:year:2017}}

Any idea why this would be happening?

@percidae
Copy link

I've had the same problem. I experimented with the string and this solved it for me:
user@mylaptop ~/Downloads/tplink-smartplug $ python tplink-smartplug.py -t 192.168.178.57 -j '{"emeter":{"get_daystat":{"month":11,"year":2017}}}'

@ryanwoconnor
Copy link
Author

Interesting, it might just be an issue of needing single quotes? D’oh! I’ll give it a shot tonight and let you know if this resolves it.

Thanks!
Ryan

@softScheck
Copy link
Owner

Quotation issue. closed.

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

3 participants