alibaba/tidevice

Get energy without launching application

開放

#298 建立於 2023年3月17日

 (0 則留言) (0 個反應) (0 位負責人)Python (475 個分叉)github user discovery
help wanted

倉庫指標

星標
 (2,604 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

It is possible to get energy by providing pid only?

I have installed this package in local and tried to modify the code by providing pid in the command for ex : tidevice energy

Here is the modified code: Screenshot 2023-03-17 at 3 38 25 PM

But the data is not coming, so I've modified the code and print the result directly like this: Screenshot 2023-03-17 at 3 41 23 PM (last second line print(ret))

So after doing this I observed the output and it's always coming blank({}) even I'm using the application and have verified the pid as well using tidevice ps command.

Any idea why data is not coming and how should we resolve this?

貢獻者指南