Closed maxdad closed 7 years ago
Here is what I get from a jason query, did I do anything wrong? The script runs fine with "-c info" and returned meaningful result.
./tplink-smartplug.py -t -j {"emeter":{"get_realtime":{}}} ('Sent: ', '{emeter:{get_realtime:{}}}') ('Received: ', '')
Never mind, I figured out that I have to escape the " in jason, like this: -j {\"emeter\":{\"get_realtime\":{}}}
Here is what I get from a jason query, did I do anything wrong? The script runs fine with "-c info" and returned meaningful result.
./tplink-smartplug.py -t -j {"emeter":{"get_realtime":{}}}
('Sent: ', '{emeter:{get_realtime:{}}}')
('Received: ', '')