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...)
Answered! Go to the Best Answer.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
I don't think it's possible in studio. Perhaps try the command-line tools instead?
Best Answer
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
I don't think it's possible in studio. Perhaps try the command-line tools instead?
Best AnswerYeah, I tried CLI and it worked! Thank you very much!😀
Best Answersorry for being late
could you tell me what CLI is about?
I am struggling with the same problem
Best AnswerCLI 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 AnswerThank 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 AnswerI 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.
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