Go to content Go to menu

fitbit.png Some time ago I wrote a blog post about exporting FitBit fitness data into a Sqlite3 database or exporting it as a CSV file for further processing. This was done using a simple Node.js javascript script called “fitbit_dumper”. The original dumper used OAuth version 1 to access the FitBit API.

Since 2016 the FitBit API is only accessible using OAuth2. So this post describes the differences to the original post.
 
 
[Read More…]

node.js based LoST (RFC 5222) server

Friday, December 18, 2015

lost-head.jpg Sometimes you need a component for a project or some tests and there is no or at least no free implementation available. This happens to me when I wanted to translate a geographically position (lat/lon) into a corresponding service URN. RFC 5222 provides more information on that. After reading the RFC which looked not that complicated I decided to implement such a server myself. The goal was also that it should be lightweigt, easy to develop and to deploy into the cloud. So it was obvious to me that node.js and mongodb will be used.
[Read More…]

pharoGapi1.png While working on a project which uses some Google API’s I came across Googles API registry. Under https://www.googleapis.com/discovery/v1/apis/ all API’s for Google services like Google Drive or Gmail are described. More infos can be found at the Google APIs Discovery Service page. From the API registry a client could discover services and automatically build proxy classes and methods based on the provided metadata. Thats what I have done for Pharo Smalltalk. Other companies like Microsoft also provide some form of service discovery for their service API’s (see https://msdn.microsoft.com/en-us/office/office365/api/discovery-service-rest-operations)

[Read More…]

If you are using one of FitBit’s fitness tracker devices like the ‘One’ for some time you create a lot of data. When you synchronize your tracker all recorded data is sent to FitBit’s servers. The FitBit portal provides some features for graphically displaying and analyzing your data. It’s also possible to export it manually as CSV to process it further. But what if you want your data locally available without manual export to make own statistics. This is what the ‘fitbit_dumper’ is for.

Update: Since 2016 FitBit uses OAuth2. See this blog post for an update.

[Read More…]

cli_mirror.jpgGoogle’s Mirror API is, beside native GDK apps, one way to communicate with Google Glass. It is based on a range of OAuth authenticated web-service methods. The default way to use the Mirror API is to present the user a Web application where he could first register his Glass using a Google account. After this step the app or service is able to send info’s like text messages, contacts, images etc. to the users Glass device. But what if you just want to make a quick test and don’t want to develop even a simple web app or you need a way to quickly send info’s from a cron job every hour?
This is where cli_mirror comes in handy.

[Read More…]