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

Updating a Fitbit .NET plugin to OAuth2: Frustration is high!

I've written a plugin for HomeSeer (called FitbitSeer) that fetches Fitbit data and make them available in HomeSeer for smart homes. That way Fitbit data can be used as triggers and conditions for our homes. We have small kids and use it to get us to bed earlier ("if the time is 9:30 PM, AND sleep last night was less than 7 hours, THEN turn of the TV and speak "Get to bed, you KNOW you are tired!").

 

The Fitbit API is somewhat hard to understand for a novice programmer like me, so I based the plugin on the 1.0 Fitbit.NET, which had an excellent Desktop sample. It was so simple that it was easy to understand and adapt. It was just the matter of check for stored credentials, authenticate,  and then just fetch data.

 

I desperatly need something simple to convert my simple plugin to OAuth2. I tried the Fitbit.Net libraries, but the sample is a MVC asp.net application and the code is not self explanatory to me. It also requires an SQL server and other dependencies, so I haven't even been able to compile it. I'm used to struggle a bit when doing new things, but not this much. I wrote a new Windows 10 app called WinSeer in a week, and it was published within two weeks (the certification team picks on everything, each new find takes minimum 4 days to correct).

 

I'm even thinking about implementing the Fitbit APIs without Fitbit.Net, but browsing through these forums looks to be even worse.

 

What I'm wishing for is a Fitbit.NET sample that's a project with just a simple asp.net page or two that authenticates against Fitbit, and just displays some data ("Response.Write" is fine!). I can manage to do the rest, the Fitbit.Net package is very handy that way.

 

Do anybody have such a simple sample laying around?

Best Answer
0 Votes
0 REPLIES 0