---
created: <% tp.file.creation_date() %>
integration: fitbit
---
# Fitbit
<%*
  titleName =  "Fitbit data" + " " + tp.date.now("YYYY-MM-DD")
  await tp.file.rename(titleName)
  await tp.file.move("Fitness/Fitbit/"+ titleName);-%>

<%*  
  const results = await tp.user.script_fitbit();
  json_results = JSON.parse(results);
  for (i = 0; i < json_results.length; i++){
    tR += "- " + json_results[i]['Exercise'] + "\n"
  }
%>
