Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I copy console log perfectly from Fitbit Studio?

ANSWERED

Hi! I just want to use Fitbit Versa to collect some sensors' data for data analyzing on PC. I knew that I can just use console.log() to print it on the console. But Fitbit Studio is in Browser and it is quite hard to copy them. For example, I can only find "Clear logs" on the right-click menu, nothing like "export" or "copy to clipboard". If I just use ctrl+c and ctrl+v, which works to some degree, misalignment between two lines may happen so that the data will be wrong. And I can only do ctrl+c on the current window, first few lines will not be selected if I use the scrollbar to select more console log. So is there any way to solve it? 

(I tried to let the device communicate with my companion and copy the console log from my phone. But synchronize is always a problem. I can not get my console log...)

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I don't think it's possible in studio. Perhaps try the command-line tools instead?

 

https://dev.fitbit.com/build/guides/command-line-interface/

View best answer in original post

Best Answer
0 Votes
10 REPLIES 10

I don't think it's possible in studio. Perhaps try the command-line tools instead?

 

https://dev.fitbit.com/build/guides/command-line-interface/

Best Answer
0 Votes

Yeah, I tried CLI and it worked! Thank you very much!😀

Best Answer
0 Votes

sorry for being late

could you tell me what CLI is about?

I am struggling with the same problem

 

Best Answer
0 Votes

CLI is command line interface. You can refer to this page 

https://dev.fitbit.com/build/guides/command-line-interface/

you can just copy from a shell and paste them on another file to get the data

Best Answer
0 Votes

Thank you for this!

I successfully install CLI, and indeed it feel better to save the output log.

Is that "copy and paste" the only way to get log? Or there is another single command to save the output log into a file?

Best Answer
0 Votes

I know somebody has managed to capture the log using output redirection.

 

If you use something like Visual Studio Code, you can also manipulate the output log in that.

Peter McLennan
Gondwana Software
Best Answer

I am not so sure. But this is the most straightforward approach so far I used. Although it indeed feels a little bit stupid... 🙂  

Best Answer
0 Votes

Hello!

 

I try to use CLI but I wonder how to use the command to select the real target as a FitBit device, for example, Versa 3 

 

Thank you,

Best Answer

The 'connect device' command in CLI can be used to select a connected watch or sim.

Peter McLennan
Gondwana Software
Best Answer

Hello! Thank you for your help!. The target device is work. 

Parkpoom_0-1650750517887.png

 

Best Answer