Group Abstract Group Abstract

Message Boards Message Boards

Get time series data from FitBit service connection?

Posted 9 years ago

Working through the basic examples in the Wolfram documentation related to the FitBit service connection. I'm able to get a proper ServiceObject from:

fitbit = ServiceConnect["Fitbit", "New"]

Running ServiceExecute for the "ActivityData" requests as shown in the example returns results as expected. However, running a similar ServiceExecute on "StepsPlot" does not return any results. I've gone through several other available requests (e.g., "SleepDate", "UserDate", "CaloriesTimeSeries", etc.) and what I'm finding is that requests that take "StartDate" and "EndDate" parameters don't seem to work for me.

I'm running Mathematica "11.2.0 for Mac OS X x86 (64-bit) (September 11, 2017)". Again, not really doing anything fancy other than copy-n-pasting the examples from the documentation and slightly adjusting date ranges to reflect "real" data for my case. BTW, leaving the exact dates from the example seems to make no difference in behavior (e.g., still getting back symbolic result).

Any ideas on what I'm doing wrong or missing here?

Below is a screen shot of my notebook for reference.

FitBit Example Failing

POSTED BY: Mac Rod
16 Replies
Posted 9 years ago

Confirmed that in the original environment where I first saw (and reported) the issue, it now works as expected. Tested several time series type data / plots and got back all expected results. Also noticed that

ServiceExecute[fitbit, "ActivityData", {"Date" -> "May 15, 2017"}]

now returns data in Dataset format, which is great "side effect" of fix.

Thanks all for a great [first] community experience. Really impressed...

POSTED BY: Mac Rod

Thanks @macrod for your kind words. Feedback is super useful for us to to keep our connections working fine and up to date, specially because they depend on systems not controlled by us.

Also, it's very important for us to know how our users use our connections so we can have a better idea of what new features to add or improve.

Please let me know if you have more questions or issues.

Hi guys. The Fitbit fix should be available now. Just Quit your kernel and do

fitbit=ServiceConnect["Fitbit"]

and use it as intended. Wolfram Language should autoupdate that connection. Please can you confirm the fix is working?

I'm still looking into the dialogs issue Marco reported.

Thanks

POSTED BY: Marco Thiel

Thanks Marco for the update.

Just to be clear...

  1. Fitbit works for you now.

  2. Dialogs work fine now.

  3. You have an issue with Microsoft Translator. Can you please elaborate? Please note that Microsoft has been migrating their old Azure DataMarket platform to a new Azure Portal and things have changed a bit on their end. They used to require two tokens to authenticate, now they just ask for the subscription key (which its creation is not super obvious). Please let me know if you need help creating this on their new Azure portal.

POSTED BY: Marco Thiel

Thank you for your answer. I'm checking to escalate this to other group because it seems it's not a ServiceConnect issue. I'll keep an eye here though to be sure this gets fixed.

POSTED BY: Marco Thiel
POSTED BY: Arno Bosse
POSTED BY: Marco Thiel

Hi everyone. Thanks for reporting this. I'm not able to replicate this with Mathematica 11.2 release version on Linux. Can you please share your:

SystemInformation["Small"]

This is working fine for me at least:

screenshot

I'll run this on a Mac and report back

Posted 9 years ago
POSTED BY: Mac Rod

Ups, I just noticed that GoogleCustomSearch also seems to have an issue:

enter image description here

It shows $Abort in the input fields and the upper Abort cannot be deleted so that I cannot properly connect. ServiceExcecute for Twitter throws out an error message, too, but that might be a temporary issue:

enter image description here

RunKeeper and Flickr work. Factual also shows the $Abort and I cannot authenticate.

enter image description here

Microsoft Translator does not appear to work either:

enter image description here

The console shows messages like these:

enter image description here

Can anyone reproduce these problems?

Best wishes,

Marco

POSTED BY: Marco Thiel

Dear All,

I can confirm that, too. (OSX 10.12.6), MMA 11.2.

On the same machine the request does work on MMA 11.1.1

Best wishes,

Marco

POSTED BY: Marco Thiel

I see the same thing in v11.2, also with the other available FitBit requests.

POSTED BY: Arno Bosse
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard