-
Notifications
You must be signed in to change notification settings - Fork 298
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
JSON commands don't seem to work #99
Comments
Put the whole json string in single quotes like this: Erase All EMeter Statistics That worked for me. |
@aggillator I had the same issue as you (windows platform) and I found that I need to change the quotes to triple quotes, e.g., like this: |
Thanks for your tips. Now that I found the “Watt” app, can do it through
there. Game-changer.
…On Mon, Sep 12, 2022 at 7:26 AM NRollo ***@***.***> wrote:
@aggillator <https://github.com/aggillator> I had the same issue as you
(windows platform) and I found that I need to change the quotes to triple
quotes, e.g., like this:
tplink_smartplug.py -t 192.168.0.7 -j
{"""system""":{"""set_relay_state""":{"""state""":1}}}
—
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWBW75S7DDU4ZPY3E7PJMUDV54HPZANCNFSM5NDRQ23A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try doing a json command using the -j format but all I get back is a message saying it was sent, but under received, there is nothing listed. The command I would use is this [python3 ./tplink_smartplug.py -t 192.168.0.108 -j {"emeter":{"erase_emeter_stat":{}}}] for example, and all I receive is this [Sent: {emeter:{erase_emeter_stat:{}}}
Received: {}].
Any advice?
Thanks
The text was updated successfully, but these errors were encountered: